From 87c44f07b31a178f10672b011693d21278550329 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 12 Jun 2026 23:53:27 +0000 Subject: [PATCH] chore: update schemas and regenerate all SDK clients Auto-generated by schema-propagation workflow. Source: constructive-db@d2497672ed --- .agents/skills/cli-admin/SKILL.md | 10 +- .../cli-admin/references/app-admin-grant.md | 4 +- .../skills/cli-admin/references/app-grant.md | 4 +- .../skills/cli-admin/references/app-invite.md | 6 +- .../cli-admin/references/app-owner-grant.md | 4 +- .../app-permission-default-grant.md | 68 + .../app-permission-default-permission.md | 68 + .../cli-admin/references/org-admin-grant.md | 4 +- .../skills/cli-admin/references/org-grant.md | 4 +- .../skills/cli-admin/references/org-invite.md | 6 +- .../cli-admin/references/org-owner-grant.md | 4 +- .../org-permission-default-grant.md | 68 + .../org-permission-default-permission.md | 68 + .../cli-agent/references/agent-message.md | 6 +- .../skills/cli-agent/references/agent-task.md | 6 +- .agents/skills/cli-api/SKILL.md | 5 +- .../cli-api/references/check-constraint.md | 6 +- .../cli-api/references/composite-type.md | 68 + .agents/skills/cli-api/references/enum.md | 6 +- .agents/skills/cli-api/references/field.md | 6 +- .../references/foreign-key-constraint.md | 6 +- .agents/skills/cli-api/references/index.md | 6 +- .agents/skills/cli-api/references/policy.md | 6 +- .../references/primary-key-constraint.md | 6 +- .agents/skills/cli-api/references/schema.md | 6 +- .../cli-api/references/spatial-relation.md | 6 +- .agents/skills/cli-api/references/table.md | 6 +- .agents/skills/cli-api/references/trigger.md | 6 +- .../cli-api/references/unique-constraint.md | 6 +- .../skills/cli-api/references/view-table.md | 6 +- .agents/skills/cli-api/references/view.md | 6 +- .agents/skills/cli-auth/SKILL.md | 7 +- .../cli-auth/references/link-identity.md | 19 + .../cli-auth/references/sign-in-sms-otp.md | 19 + .../skills/cli-auth/references/sign-up-sms.md | 19 + .agents/skills/cli-modules/SKILL.md | 31 +- .../cli-modules/references/agent-module.md | 6 +- .../cli-modules/references/billing-module.md | 6 +- .../references/compute-log-module.md | 6 +- .../references/config-secrets-module.md | 6 +- .../cli-modules/references/db-usage-module.md | 6 +- .../references/entity-type-provision.md | 6 +- .../cli-modules/references/events-module.md | 6 +- .../references/function-invocation-module.md | 68 + .../cli-modules/references/function-module.md | 6 +- .../cli-modules/references/graph-module.md | 6 +- .../references/hierarchy-module.md | 6 +- .../references/identity-providers-module.md | 6 +- .../references/inference-log-module.md | 6 +- .../cli-modules/references/invites-module.md | 6 +- .../cli-modules/references/limits-module.md | 6 +- .../references/memberships-module.md | 6 +- .../references/merkle-store-module.md | 6 +- .../references/namespace-module.md | 6 +- .../references/notifications-module.md | 6 +- .../references/permissions-module.md | 6 +- .../cli-modules/references/plans-module.md | 6 +- .../cli-modules/references/profiles-module.md | 6 +- .../references/rate-limit-meters-module.md | 6 +- .../references/storage-log-module.md | 6 +- .../cli-modules/references/storage-module.md | 6 +- .../references/transfer-log-module.md | 6 +- .agents/skills/hooks-admin/SKILL.md | 10 +- .../hooks-admin/references/app-invite.md | 8 +- .../app-permission-default-grant.md | 34 + .../app-permission-default-permission.md | 34 + .../hooks-admin/references/org-invite.md | 8 +- .../org-permission-default-grant.md | 34 + .../org-permission-default-permission.md | 34 + .../hooks-agent/references/agent-message.md | 8 +- .../hooks-agent/references/agent-task.md | 8 +- .agents/skills/hooks-api/SKILL.md | 5 +- .../hooks-api/references/check-constraint.md | 8 +- .../hooks-api/references/composite-type.md | 34 + .agents/skills/hooks-api/references/enum.md | 8 +- .agents/skills/hooks-api/references/field.md | 8 +- .../references/foreign-key-constraint.md | 8 +- .agents/skills/hooks-api/references/index.md | 8 +- .agents/skills/hooks-api/references/policy.md | 8 +- .../references/primary-key-constraint.md | 8 +- .agents/skills/hooks-api/references/schema.md | 8 +- .../hooks-api/references/spatial-relation.md | 8 +- .agents/skills/hooks-api/references/table.md | 8 +- .../skills/hooks-api/references/trigger.md | 8 +- .../hooks-api/references/unique-constraint.md | 8 +- .../skills/hooks-api/references/view-table.md | 8 +- .agents/skills/hooks-api/references/view.md | 8 +- .agents/skills/hooks-auth/SKILL.md | 7 +- .../hooks-auth/references/link-identity.md | 20 + .../hooks-auth/references/sign-in-sms-otp.md | 20 + .../hooks-auth/references/sign-up-sms.md | 20 + .agents/skills/hooks-modules/SKILL.md | 31 +- .../hooks-modules/references/agent-module.md | 8 +- .../references/billing-module.md | 8 +- .../references/compute-log-module.md | 8 +- .../references/config-secrets-module.md | 8 +- .../references/db-usage-module.md | 8 +- .../references/entity-type-provision.md | 8 +- .../hooks-modules/references/events-module.md | 8 +- .../references/function-invocation-module.md | 34 + .../references/function-module.md | 8 +- .../hooks-modules/references/graph-module.md | 8 +- .../references/hierarchy-module.md | 8 +- .../references/identity-providers-module.md | 8 +- .../references/inference-log-module.md | 8 +- .../references/invites-module.md | 8 +- .../hooks-modules/references/limits-module.md | 8 +- .../references/memberships-module.md | 8 +- .../references/merkle-store-module.md | 8 +- .../references/namespace-module.md | 8 +- .../references/notifications-module.md | 8 +- .../references/permissions-module.md | 8 +- .../hooks-modules/references/plans-module.md | 8 +- .../references/profiles-module.md | 8 +- .../references/rate-limit-meters-module.md | 8 +- .../references/storage-log-module.md | 8 +- .../references/storage-module.md | 8 +- .../references/transfer-log-module.md | 8 +- .agents/skills/orm-admin/SKILL.md | 12 +- .../skills/orm-admin/references/app-invite.md | 8 +- .../app-permission-default-grant.md | 34 + .../app-permission-default-permission.md | 34 + .../skills/orm-admin/references/org-invite.md | 8 +- .../org-permission-default-grant.md | 34 + .../org-permission-default-permission.md | 34 + .../orm-agent/references/agent-message.md | 8 +- .../skills/orm-agent/references/agent-task.md | 8 +- .agents/skills/orm-api/SKILL.md | 5 +- .../orm-api/references/check-constraint.md | 4 +- .../orm-api/references/composite-type.md | 34 + .agents/skills/orm-api/references/enum.md | 4 +- .agents/skills/orm-api/references/field.md | 4 +- .../references/foreign-key-constraint.md | 4 +- .agents/skills/orm-api/references/index.md | 4 +- .agents/skills/orm-api/references/policy.md | 4 +- .../references/primary-key-constraint.md | 4 +- .agents/skills/orm-api/references/schema.md | 4 +- .../orm-api/references/spatial-relation.md | 4 +- .agents/skills/orm-api/references/table.md | 4 +- .agents/skills/orm-api/references/trigger.md | 4 +- .../orm-api/references/unique-constraint.md | 4 +- .../skills/orm-api/references/view-table.md | 8 +- .agents/skills/orm-api/references/view.md | 4 +- .agents/skills/orm-auth/SKILL.md | 7 +- .../orm-auth/references/link-identity.md | 19 + .../orm-auth/references/sign-in-sms-otp.md | 19 + .../skills/orm-auth/references/sign-up-sms.md | 19 + .agents/skills/orm-modules/SKILL.md | 31 +- .../orm-modules/references/agent-module.md | 4 +- .../orm-modules/references/billing-module.md | 4 +- .../references/compute-log-module.md | 4 +- .../references/config-secrets-module.md | 4 +- .../orm-modules/references/db-usage-module.md | 4 +- .../references/entity-type-provision.md | 4 +- .../orm-modules/references/events-module.md | 4 +- .../references/function-invocation-module.md | 34 + .../orm-modules/references/function-module.md | 4 +- .../orm-modules/references/graph-module.md | 4 +- .../references/hierarchy-module.md | 4 +- .../references/identity-providers-module.md | 4 +- .../references/inference-log-module.md | 4 +- .../orm-modules/references/invites-module.md | 4 +- .../orm-modules/references/limits-module.md | 4 +- .../references/memberships-module.md | 4 +- .../references/merkle-store-module.md | 4 +- .../references/namespace-module.md | 4 +- .../references/notifications-module.md | 4 +- .../references/permissions-module.md | 4 +- .../orm-modules/references/plans-module.md | 4 +- .../orm-modules/references/profiles-module.md | 4 +- .../references/rate-limit-meters-module.md | 4 +- .../references/storage-log-module.md | 4 +- .../orm-modules/references/storage-module.md | 4 +- .../references/transfer-log-module.md | 4 +- sdk/constructive-cli/src/.targets | 1 + sdk/constructive-cli/src/admin/README.md | 2 +- sdk/constructive-cli/src/admin/cli/README.md | 203 +- .../src/admin/cli/commands.ts | 14 +- .../src/admin/cli/commands/app-admin-grant.ts | 4 +- .../src/admin/cli/commands/app-grant.ts | 4 +- .../src/admin/cli/commands/app-invite.ts | 44 + .../src/admin/cli/commands/app-owner-grant.ts | 4 +- .../commands/app-permission-default-grant.ts | 315 + .../app-permission-default-permission.ts | 271 + .../src/admin/cli/commands/org-admin-grant.ts | 4 +- .../src/admin/cli/commands/org-grant.ts | 4 +- .../src/admin/cli/commands/org-invite.ts | 44 + .../src/admin/cli/commands/org-owner-grant.ts | 4 +- .../commands/org-permission-default-grant.ts | 335 + .../org-permission-default-permission.ts | 291 + sdk/constructive-cli/src/admin/orm/README.md | 234 +- sdk/constructive-cli/src/admin/orm/index.ts | 12 +- .../src/admin/orm/input-types.ts | 1981 ++- .../orm/models/appPermissionDefaultGrant.ts | 246 + .../models/appPermissionDefaultPermission.ts | 272 + .../src/admin/orm/models/index.ts | 6 +- .../orm/models/orgPermissionDefaultGrant.ts | 246 + .../models/orgPermissionDefaultPermission.ts | 272 + sdk/constructive-cli/src/agent/cli/README.md | 9 +- .../src/agent/cli/commands/agent-message.ts | 46 +- .../src/agent/cli/commands/agent-task.ts | 24 +- .../src/agent/cli/embedder.ts | 18 +- sdk/constructive-cli/src/agent/orm/README.md | 21 +- .../src/agent/orm/input-types.ts | 345 +- sdk/constructive-cli/src/api/README.md | 2 +- sdk/constructive-cli/src/api/cli/README.md | 77 +- sdk/constructive-cli/src/api/cli/commands.ts | 4 +- .../src/api/cli/commands/check-constraint.ts | 22 - .../src/api/cli/commands/composite-type.ts | 445 + .../src/api/cli/commands/enum.ts | 22 - .../src/api/cli/commands/field.ts | 22 - .../cli/commands/foreign-key-constraint.ts | 22 - .../src/api/cli/commands/index.ts | 22 - .../src/api/cli/commands/policy.ts | 22 - .../cli/commands/primary-key-constraint.ts | 22 - .../src/api/cli/commands/schema.ts | 22 - .../src/api/cli/commands/spatial-relation.ts | 22 - .../src/api/cli/commands/table.ts | 34 +- .../src/api/cli/commands/trigger.ts | 22 - .../src/api/cli/commands/unique-constraint.ts | 22 - .../src/api/cli/commands/view-table.ts | 22 + .../src/api/cli/commands/view.ts | 22 - sdk/constructive-cli/src/api/orm/README.md | 142 +- sdk/constructive-cli/src/api/orm/index.ts | 2 + .../src/api/orm/input-types.ts | 1223 +- .../src/api/orm/models/compositeType.ts | 244 + .../src/api/orm/models/index.ts | 1 + sdk/constructive-cli/src/auth/README.md | 2 +- sdk/constructive-cli/src/auth/cli/README.md | 49 + sdk/constructive-cli/src/auth/cli/commands.ts | 8 +- .../src/auth/cli/commands/link-identity.ts | 51 + .../src/auth/cli/commands/sign-in-sms-otp.ts | 51 + .../src/auth/cli/commands/sign-up-sms.ts | 51 + sdk/constructive-cli/src/auth/orm/README.md | 45 + .../src/auth/orm/input-types.ts | 198 +- .../src/auth/orm/mutation/index.ts | 105 + sdk/constructive-cli/src/modules/README.md | 2 +- .../src/modules/cli/README.md | 971 +- .../src/modules/cli/commands.ts | 56 +- .../src/modules/cli/commands/agent-module.ts | 88 + .../modules/cli/commands/billing-module.ts | 66 + .../cli/commands/compute-log-module.ts | 44 + .../cli/commands/config-secrets-module.ts | 44 + .../modules/cli/commands/db-usage-module.ts | 66 + .../cli/commands/entity-type-provision.ts | 44 - .../src/modules/cli/commands/events-module.ts | 66 + .../commands/function-invocation-module.ts | 611 + .../modules/cli/commands/function-module.ts | 220 +- .../src/modules/cli/commands/graph-module.ts | 22 + .../modules/cli/commands/hierarchy-module.ts | 22 + .../cli/commands/identity-providers-module.ts | 44 + .../cli/commands/inference-log-module.ts | 44 + .../modules/cli/commands/invites-module.ts | 44 + .../src/modules/cli/commands/limits-module.ts | 44 + .../cli/commands/memberships-module.ts | 88 + .../cli/commands/merkle-store-module.ts | 22 + .../modules/cli/commands/namespace-module.ts | 22 + .../cli/commands/notifications-module.ts | 88 + .../cli/commands/permissions-module.ts | 44 + .../src/modules/cli/commands/plans-module.ts | 44 + .../modules/cli/commands/profiles-module.ts | 44 + .../cli/commands/rate-limit-meters-module.ts | 66 + .../cli/commands/storage-log-module.ts | 44 + .../modules/cli/commands/storage-module.ts | 66 + .../cli/commands/transfer-log-module.ts | 44 + .../src/modules/orm/README.md | 1084 +- sdk/constructive-cli/src/modules/orm/index.ts | 54 +- .../src/modules/orm/input-types.ts | 8278 ++++++---- .../orm/models/functionInvocationModule.ts | 246 + .../src/modules/orm/models/index.ts | 27 +- .../src/objects/orm/input-types.ts | 62 + .../src/usage/orm/input-types.ts | 333 +- sdk/constructive-react/src/.targets | 1 + sdk/constructive-react/src/admin/README.md | 2 +- .../src/admin/hooks/README.md | 162 +- .../src/admin/hooks/index.ts | 2 +- .../src/admin/hooks/invalidation.ts | 154 +- .../src/admin/hooks/mutation-keys.ts | 70 +- .../src/admin/hooks/mutations/index.ts | 18 +- ...CreateAppPermissionDefaultGrantMutation.ts | 97 + ...eAppPermissionDefaultPermissionMutation.ts | 105 + ...CreateOrgPermissionDefaultGrantMutation.ts | 97 + ...eOrgPermissionDefaultPermissionMutation.ts | 105 + ...DeleteAppPermissionDefaultGrantMutation.ts | 106 + ...eAppPermissionDefaultPermissionMutation.ts | 112 + ...DeleteOrgPermissionDefaultGrantMutation.ts | 106 + ...eOrgPermissionDefaultPermissionMutation.ts | 112 + ...UpdateAppPermissionDefaultGrantMutation.ts | 118 + ...eAppPermissionDefaultPermissionMutation.ts | 124 + ...UpdateOrgPermissionDefaultGrantMutation.ts | 118 + ...eOrgPermissionDefaultPermissionMutation.ts | 124 + .../src/admin/hooks/queries/index.ts | 12 +- .../useAppPermissionDefaultGrantQuery.ts | 151 + .../useAppPermissionDefaultGrantsQuery.ts | 182 + .../useAppPermissionDefaultPermissionQuery.ts | 157 + ...useAppPermissionDefaultPermissionsQuery.ts | 194 + .../useOrgPermissionDefaultGrantQuery.ts | 151 + .../useOrgPermissionDefaultGrantsQuery.ts | 182 + .../useOrgPermissionDefaultPermissionQuery.ts | 157 + ...useOrgPermissionDefaultPermissionsQuery.ts | 194 + .../src/admin/hooks/query-keys.ts | 66 +- .../src/admin/orm/README.md | 234 +- sdk/constructive-react/src/admin/orm/index.ts | 12 +- .../src/admin/orm/input-types.ts | 1981 ++- .../orm/models/appPermissionDefaultGrant.ts | 246 + .../models/appPermissionDefaultPermission.ts | 272 + .../src/admin/orm/models/index.ts | 6 +- .../orm/models/orgPermissionDefaultGrant.ts | 246 + .../models/orgPermissionDefaultPermission.ts | 272 + .../src/admin/schema-types.ts | 1099 +- sdk/constructive-react/src/admin/types.ts | 64 +- .../src/agent/hooks/README.md | 12 +- .../src/agent/orm/README.md | 21 +- .../src/agent/orm/input-types.ts | 345 +- .../src/agent/schema-types.ts | 59 +- sdk/constructive-react/src/agent/types.ts | 5 +- sdk/constructive-react/src/api/README.md | 2 +- .../src/api/hooks/README.md | 110 +- sdk/constructive-react/src/api/hooks/index.ts | 2 +- .../src/api/hooks/invalidation.ts | 26 + .../src/api/hooks/mutation-keys.ts | 10 + .../src/api/hooks/mutations/index.ts | 3 + .../useCreateCompositeTypeMutation.ts | 88 + .../useDeleteCompositeTypeMutation.ts | 98 + .../useUpdateCompositeTypeMutation.ts | 116 + .../src/api/hooks/queries/index.ts | 2 + .../hooks/queries/useCompositeTypeQuery.ts | 138 + .../hooks/queries/useCompositeTypesQuery.ts | 151 + .../src/api/hooks/query-keys.ts | 10 + sdk/constructive-react/src/api/orm/README.md | 142 +- sdk/constructive-react/src/api/orm/index.ts | 2 + .../src/api/orm/input-types.ts | 1223 +- .../src/api/orm/models/compositeType.ts | 244 + .../src/api/orm/models/index.ts | 1 + .../src/api/schema-types.ts | 1218 +- sdk/constructive-react/src/api/types.ts | 29 +- sdk/constructive-react/src/auth/README.md | 2 +- .../src/auth/hooks/README.md | 36 + .../src/auth/hooks/mutation-keys.ts | 12 + .../src/auth/hooks/mutations/index.ts | 3 + .../mutations/useLinkIdentityMutation.ts | 55 + .../mutations/useSignInSmsOtpMutation.ts | 55 + .../hooks/mutations/useSignUpSmsMutation.ts | 55 + sdk/constructive-react/src/auth/orm/README.md | 45 + .../src/auth/orm/input-types.ts | 198 +- .../src/auth/orm/mutation/index.ts | 105 + .../src/auth/schema-types.ts | 112 +- sdk/constructive-react/src/modules/README.md | 2 +- .../src/modules/hooks/README.md | 672 +- .../src/modules/hooks/index.ts | 2 +- .../src/modules/hooks/invalidation.ts | 460 +- .../src/modules/hooks/mutation-keys.ts | 279 +- .../src/modules/hooks/mutations/index.ts | 81 +- ...eCreateFunctionInvocationModuleMutation.ts | 91 + ...eDeleteFunctionInvocationModuleMutation.ts | 104 + ...eUpdateFunctionInvocationModuleMutation.ts | 116 + .../src/modules/hooks/queries/index.ts | 54 +- .../useFunctionInvocationModuleQuery.ts | 151 + .../useFunctionInvocationModulesQuery.ts | 182 + .../src/modules/hooks/query-keys.ts | 240 +- .../src/modules/orm/README.md | 1084 +- .../src/modules/orm/index.ts | 54 +- .../src/modules/orm/input-types.ts | 8278 ++++++---- .../orm/models/functionInvocationModule.ts | 246 + .../src/modules/orm/models/index.ts | 27 +- .../src/modules/schema-types.ts | 5199 ++++--- sdk/constructive-react/src/modules/types.ts | 529 +- .../src/objects/orm/input-types.ts | 62 + .../src/usage/orm/input-types.ts | 333 +- sdk/constructive-sdk/schemas/admin.graphql | 5692 ++++--- sdk/constructive-sdk/schemas/agent.graphql | 164 +- sdk/constructive-sdk/schemas/api.graphql | 2871 ++-- sdk/constructive-sdk/schemas/auth.graphql | 263 +- sdk/constructive-sdk/schemas/modules.graphql | 12613 ++++++++-------- sdk/constructive-sdk/src/.targets | 1 + sdk/constructive-sdk/src/admin/README.md | 2 +- sdk/constructive-sdk/src/admin/orm/README.md | 234 +- sdk/constructive-sdk/src/admin/orm/index.ts | 12 +- .../src/admin/orm/input-types.ts | 1981 ++- .../orm/models/appPermissionDefaultGrant.ts | 246 + .../models/appPermissionDefaultPermission.ts | 272 + .../src/admin/orm/models/index.ts | 6 +- .../orm/models/orgPermissionDefaultGrant.ts | 246 + .../models/orgPermissionDefaultPermission.ts | 272 + sdk/constructive-sdk/src/agent/orm/README.md | 21 +- .../src/agent/orm/input-types.ts | 345 +- sdk/constructive-sdk/src/api/README.md | 2 +- sdk/constructive-sdk/src/api/orm/README.md | 142 +- sdk/constructive-sdk/src/api/orm/index.ts | 2 + .../src/api/orm/input-types.ts | 1223 +- .../src/api/orm/models/compositeType.ts | 244 + .../src/api/orm/models/index.ts | 1 + sdk/constructive-sdk/src/auth/README.md | 2 +- sdk/constructive-sdk/src/auth/orm/README.md | 45 + .../src/auth/orm/input-types.ts | 198 +- .../src/auth/orm/mutation/index.ts | 105 + sdk/constructive-sdk/src/modules/README.md | 2 +- .../src/modules/orm/README.md | 1084 +- sdk/constructive-sdk/src/modules/orm/index.ts | 54 +- .../src/modules/orm/input-types.ts | 8278 ++++++---- .../orm/models/functionInvocationModule.ts | 246 + .../src/modules/orm/models/index.ts | 27 +- .../src/objects/orm/input-types.ts | 62 + .../src/usage/orm/input-types.ts | 333 +- sdk/migrate-client/schemas/migrate.graphql | 8 + sdk/migrate-client/src/migrate/orm/README.md | 7 +- .../src/migrate/orm/input-types.ts | 31 + 407 files changed, 63131 insertions(+), 28217 deletions(-) create mode 100644 .agents/skills/cli-admin/references/app-permission-default-grant.md create mode 100644 .agents/skills/cli-admin/references/app-permission-default-permission.md create mode 100644 .agents/skills/cli-admin/references/org-permission-default-grant.md create mode 100644 .agents/skills/cli-admin/references/org-permission-default-permission.md create mode 100644 .agents/skills/cli-api/references/composite-type.md create mode 100644 .agents/skills/cli-auth/references/link-identity.md create mode 100644 .agents/skills/cli-auth/references/sign-in-sms-otp.md create mode 100644 .agents/skills/cli-auth/references/sign-up-sms.md create mode 100644 .agents/skills/cli-modules/references/function-invocation-module.md create mode 100644 .agents/skills/hooks-admin/references/app-permission-default-grant.md create mode 100644 .agents/skills/hooks-admin/references/app-permission-default-permission.md create mode 100644 .agents/skills/hooks-admin/references/org-permission-default-grant.md create mode 100644 .agents/skills/hooks-admin/references/org-permission-default-permission.md create mode 100644 .agents/skills/hooks-api/references/composite-type.md create mode 100644 .agents/skills/hooks-auth/references/link-identity.md create mode 100644 .agents/skills/hooks-auth/references/sign-in-sms-otp.md create mode 100644 .agents/skills/hooks-auth/references/sign-up-sms.md create mode 100644 .agents/skills/hooks-modules/references/function-invocation-module.md create mode 100644 .agents/skills/orm-admin/references/app-permission-default-grant.md create mode 100644 .agents/skills/orm-admin/references/app-permission-default-permission.md create mode 100644 .agents/skills/orm-admin/references/org-permission-default-grant.md create mode 100644 .agents/skills/orm-admin/references/org-permission-default-permission.md create mode 100644 .agents/skills/orm-api/references/composite-type.md create mode 100644 .agents/skills/orm-auth/references/link-identity.md create mode 100644 .agents/skills/orm-auth/references/sign-in-sms-otp.md create mode 100644 .agents/skills/orm-auth/references/sign-up-sms.md create mode 100644 .agents/skills/orm-modules/references/function-invocation-module.md create mode 100644 sdk/constructive-cli/src/.targets create mode 100644 sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts create mode 100644 sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts create mode 100644 sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts create mode 100644 sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts create mode 100644 sdk/constructive-cli/src/api/cli/commands/composite-type.ts create mode 100644 sdk/constructive-cli/src/api/orm/models/compositeType.ts create mode 100644 sdk/constructive-cli/src/auth/cli/commands/link-identity.ts create mode 100644 sdk/constructive-cli/src/auth/cli/commands/sign-in-sms-otp.ts create mode 100644 sdk/constructive-cli/src/auth/cli/commands/sign-up-sms.ts create mode 100644 sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts create mode 100644 sdk/constructive-cli/src/modules/orm/models/functionInvocationModule.ts create mode 100644 sdk/constructive-react/src/.targets create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts create mode 100644 sdk/constructive-react/src/api/hooks/mutations/useCreateCompositeTypeMutation.ts create mode 100644 sdk/constructive-react/src/api/hooks/mutations/useDeleteCompositeTypeMutation.ts create mode 100644 sdk/constructive-react/src/api/hooks/mutations/useUpdateCompositeTypeMutation.ts create mode 100644 sdk/constructive-react/src/api/hooks/queries/useCompositeTypeQuery.ts create mode 100644 sdk/constructive-react/src/api/hooks/queries/useCompositeTypesQuery.ts create mode 100644 sdk/constructive-react/src/api/orm/models/compositeType.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useLinkIdentityMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignInSmsOtpMutation.ts create mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useSignUpSmsMutation.ts create mode 100644 sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.ts create mode 100644 sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.ts create mode 100644 sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.ts create mode 100644 sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModuleQuery.ts create mode 100644 sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModulesQuery.ts create mode 100644 sdk/constructive-react/src/modules/orm/models/functionInvocationModule.ts create mode 100644 sdk/constructive-sdk/src/.targets create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts create mode 100644 sdk/constructive-sdk/src/api/orm/models/compositeType.ts create mode 100644 sdk/constructive-sdk/src/modules/orm/models/functionInvocationModule.ts diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index a8e2a43dbd..ef3cfce07c 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 26 tables and 12 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 30 tables and 12 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 26 tables and 12 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 30 tables and 12 custom operations ## Usage @@ -59,10 +59,14 @@ 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) - [app-permission](references/app-permission.md) +- [app-permission-default-grant](references/app-permission-default-grant.md) - [org-permission](references/org-permission.md) +- [org-permission-default-permission](references/org-permission-default-permission.md) +- [org-permission-default-grant](references/org-permission-default-grant.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) - [org-permission-default](references/org-permission-default.md) +- [app-permission-default-permission](references/app-permission-default-permission.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) - [org-admin-grant](references/org-admin-grant.md) @@ -78,9 +82,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) -- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/cli-admin/references/app-admin-grant.md b/.agents/skills/cli-admin/references/app-admin-grant.md index 8567b49bcb..51c6a6384d 100644 --- a/.agents/skills/cli-admin/references/app-admin-grant.md +++ b/.agents/skills/cli-admin/references/app-admin-grant.md @@ -12,7 +12,7 @@ csdk app-admin-grant list --where.. --orderBy csdk app-admin-grant list --limit 10 --after csdk app-admin-grant find-first --where.. csdk app-admin-grant get --id -csdk app-admin-grant create --actorId [--isGrant ] [--grantorId ] +csdk app-admin-grant create [--isGrant ] [--actorId ] [--grantorId ] csdk app-admin-grant update --id [--isGrant ] [--actorId ] [--grantorId ] csdk app-admin-grant delete --id ``` @@ -58,7 +58,7 @@ csdk app-admin-grant list --where.id.equalTo --orderBy ID_ASC ### Create a appAdminGrant ```bash -csdk app-admin-grant create --actorId [--isGrant ] [--grantorId ] +csdk app-admin-grant create [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a appAdminGrant by id diff --git a/.agents/skills/cli-admin/references/app-grant.md b/.agents/skills/cli-admin/references/app-grant.md index 9880b87676..90ed882f8e 100644 --- a/.agents/skills/cli-admin/references/app-grant.md +++ b/.agents/skills/cli-admin/references/app-grant.md @@ -12,7 +12,7 @@ csdk app-grant list --where.. --orderBy csdk app-grant list --limit 10 --after csdk app-grant find-first --where.. csdk app-grant get --id -csdk app-grant create --actorId [--permissions ] [--isGrant ] [--grantorId ] +csdk app-grant create [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] csdk app-grant update --id [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] csdk app-grant delete --id ``` @@ -58,7 +58,7 @@ csdk app-grant list --where.id.equalTo --orderBy ID_ASC ### Create a appGrant ```bash -csdk app-grant create --actorId [--permissions ] [--isGrant ] [--grantorId ] +csdk app-grant create [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a appGrant by id diff --git a/.agents/skills/cli-admin/references/app-invite.md b/.agents/skills/cli-admin/references/app-invite.md index a67996f49f..5e959d5242 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 ] [--profileId ] [--expiresAt ] -csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk app-invite create [--channel ] [--email ] [--phone ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk app-invite update --id [--channel ] [--email ] [--phone ] [--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 ] [--profileId ] [--expiresAt ] +csdk app-invite create [--channel ] [--email ] [--phone ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] ``` ### Get a appInvite by id diff --git a/.agents/skills/cli-admin/references/app-owner-grant.md b/.agents/skills/cli-admin/references/app-owner-grant.md index 9884f4a524..14153d25fb 100644 --- a/.agents/skills/cli-admin/references/app-owner-grant.md +++ b/.agents/skills/cli-admin/references/app-owner-grant.md @@ -12,7 +12,7 @@ csdk app-owner-grant list --where.. --orderBy csdk app-owner-grant list --limit 10 --after csdk app-owner-grant find-first --where.. csdk app-owner-grant get --id -csdk app-owner-grant create --actorId [--isGrant ] [--grantorId ] +csdk app-owner-grant create [--isGrant ] [--actorId ] [--grantorId ] csdk app-owner-grant update --id [--isGrant ] [--actorId ] [--grantorId ] csdk app-owner-grant delete --id ``` @@ -58,7 +58,7 @@ csdk app-owner-grant list --where.id.equalTo --orderBy ID_ASC ### Create a appOwnerGrant ```bash -csdk app-owner-grant create --actorId [--isGrant ] [--grantorId ] +csdk app-owner-grant create [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a appOwnerGrant by id diff --git a/.agents/skills/cli-admin/references/app-permission-default-grant.md b/.agents/skills/cli-admin/references/app-permission-default-grant.md new file mode 100644 index 0000000000..ce62b3688c --- /dev/null +++ b/.agents/skills/cli-admin/references/app-permission-default-grant.md @@ -0,0 +1,68 @@ +# appPermissionDefaultGrant + + + +CRUD operations for AppPermissionDefaultGrant records via csdk CLI + +## Usage + +```bash +csdk app-permission-default-grant list +csdk app-permission-default-grant list --where.. --orderBy +csdk app-permission-default-grant list --limit 10 --after +csdk app-permission-default-grant find-first --where.. +csdk app-permission-default-grant get --id +csdk app-permission-default-grant create --permissionId [--isGrant ] [--grantorId ] +csdk app-permission-default-grant update --id [--permissionId ] [--isGrant ] [--grantorId ] +csdk app-permission-default-grant delete --id +``` + +## Examples + +### List appPermissionDefaultGrant records + +```bash +csdk app-permission-default-grant list +``` + +### List appPermissionDefaultGrant records with pagination + +```bash +csdk app-permission-default-grant list --limit 10 --offset 0 +``` + +### List appPermissionDefaultGrant records with cursor pagination + +```bash +csdk app-permission-default-grant list --limit 10 --after +``` + +### Find first matching appPermissionDefaultGrant + +```bash +csdk app-permission-default-grant find-first --where.id.equalTo +``` + +### List appPermissionDefaultGrant records with field selection + +```bash +csdk app-permission-default-grant list --select id,id +``` + +### List appPermissionDefaultGrant records with filtering and ordering + +```bash +csdk app-permission-default-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appPermissionDefaultGrant + +```bash +csdk app-permission-default-grant create --permissionId [--isGrant ] [--grantorId ] +``` + +### Get a appPermissionDefaultGrant by id + +```bash +csdk app-permission-default-grant get --id +``` diff --git a/.agents/skills/cli-admin/references/app-permission-default-permission.md b/.agents/skills/cli-admin/references/app-permission-default-permission.md new file mode 100644 index 0000000000..c85737e9ae --- /dev/null +++ b/.agents/skills/cli-admin/references/app-permission-default-permission.md @@ -0,0 +1,68 @@ +# appPermissionDefaultPermission + + + +CRUD operations for AppPermissionDefaultPermission records via csdk CLI + +## Usage + +```bash +csdk app-permission-default-permission list +csdk app-permission-default-permission list --where.. --orderBy +csdk app-permission-default-permission list --limit 10 --after +csdk app-permission-default-permission find-first --where.. +csdk app-permission-default-permission get --id +csdk app-permission-default-permission create --permissionId +csdk app-permission-default-permission update --id [--permissionId ] +csdk app-permission-default-permission delete --id +``` + +## Examples + +### List appPermissionDefaultPermission records + +```bash +csdk app-permission-default-permission list +``` + +### List appPermissionDefaultPermission records with pagination + +```bash +csdk app-permission-default-permission list --limit 10 --offset 0 +``` + +### List appPermissionDefaultPermission records with cursor pagination + +```bash +csdk app-permission-default-permission list --limit 10 --after +``` + +### Find first matching appPermissionDefaultPermission + +```bash +csdk app-permission-default-permission find-first --where.id.equalTo +``` + +### List appPermissionDefaultPermission records with field selection + +```bash +csdk app-permission-default-permission list --select id,id +``` + +### List appPermissionDefaultPermission records with filtering and ordering + +```bash +csdk app-permission-default-permission list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appPermissionDefaultPermission + +```bash +csdk app-permission-default-permission create --permissionId +``` + +### Get a appPermissionDefaultPermission by id + +```bash +csdk app-permission-default-permission get --id +``` diff --git a/.agents/skills/cli-admin/references/org-admin-grant.md b/.agents/skills/cli-admin/references/org-admin-grant.md index 82488b55ca..6f5712f388 100644 --- a/.agents/skills/cli-admin/references/org-admin-grant.md +++ b/.agents/skills/cli-admin/references/org-admin-grant.md @@ -12,7 +12,7 @@ csdk org-admin-grant list --where.. --orderBy csdk org-admin-grant list --limit 10 --after csdk org-admin-grant find-first --where.. csdk org-admin-grant get --id -csdk org-admin-grant create --actorId --entityId [--isGrant ] [--grantorId ] +csdk org-admin-grant create --entityId [--isGrant ] [--actorId ] [--grantorId ] csdk org-admin-grant update --id [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] csdk org-admin-grant delete --id ``` @@ -58,7 +58,7 @@ csdk org-admin-grant list --where.id.equalTo --orderBy ID_ASC ### Create a orgAdminGrant ```bash -csdk org-admin-grant create --actorId --entityId [--isGrant ] [--grantorId ] +csdk org-admin-grant create --entityId [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a orgAdminGrant by id diff --git a/.agents/skills/cli-admin/references/org-grant.md b/.agents/skills/cli-admin/references/org-grant.md index b03e477873..8fbb06ec93 100644 --- a/.agents/skills/cli-admin/references/org-grant.md +++ b/.agents/skills/cli-admin/references/org-grant.md @@ -12,7 +12,7 @@ csdk org-grant list --where.. --orderBy csdk org-grant list --limit 10 --after csdk org-grant find-first --where.. csdk org-grant get --id -csdk org-grant create --actorId --entityId [--permissions ] [--isGrant ] [--grantorId ] +csdk org-grant create --entityId [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] csdk org-grant update --id [--permissions ] [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] csdk org-grant delete --id ``` @@ -58,7 +58,7 @@ csdk org-grant list --where.id.equalTo --orderBy ID_ASC ### Create a orgGrant ```bash -csdk org-grant create --actorId --entityId [--permissions ] [--isGrant ] [--grantorId ] +csdk org-grant create --entityId [--permissions ] [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a orgGrant by id diff --git a/.agents/skills/cli-admin/references/org-invite.md b/.agents/skills/cli-admin/references/org-invite.md index b4881b522f..c1451c1dc6 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 ] [--profileId ] [--isReadOnly ] [--expiresAt ] -csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] [--entityId ] +csdk org-invite create --entityId [--channel ] [--email ] [--phone ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] +csdk org-invite update --id [--channel ] [--email ] [--phone ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--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 ] [--profileId ] [--isReadOnly ] [--expiresAt ] +csdk org-invite create --entityId [--channel ] [--email ] [--phone ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--isReadOnly ] [--expiresAt ] ``` ### Get a orgInvite by id diff --git a/.agents/skills/cli-admin/references/org-owner-grant.md b/.agents/skills/cli-admin/references/org-owner-grant.md index e354a4b4fe..3c9a82e228 100644 --- a/.agents/skills/cli-admin/references/org-owner-grant.md +++ b/.agents/skills/cli-admin/references/org-owner-grant.md @@ -12,7 +12,7 @@ csdk org-owner-grant list --where.. --orderBy csdk org-owner-grant list --limit 10 --after csdk org-owner-grant find-first --where.. csdk org-owner-grant get --id -csdk org-owner-grant create --actorId --entityId [--isGrant ] [--grantorId ] +csdk org-owner-grant create --entityId [--isGrant ] [--actorId ] [--grantorId ] csdk org-owner-grant update --id [--isGrant ] [--actorId ] [--entityId ] [--grantorId ] csdk org-owner-grant delete --id ``` @@ -58,7 +58,7 @@ csdk org-owner-grant list --where.id.equalTo --orderBy ID_ASC ### Create a orgOwnerGrant ```bash -csdk org-owner-grant create --actorId --entityId [--isGrant ] [--grantorId ] +csdk org-owner-grant create --entityId [--isGrant ] [--actorId ] [--grantorId ] ``` ### Get a orgOwnerGrant by id diff --git a/.agents/skills/cli-admin/references/org-permission-default-grant.md b/.agents/skills/cli-admin/references/org-permission-default-grant.md new file mode 100644 index 0000000000..9620cc7958 --- /dev/null +++ b/.agents/skills/cli-admin/references/org-permission-default-grant.md @@ -0,0 +1,68 @@ +# orgPermissionDefaultGrant + + + +CRUD operations for OrgPermissionDefaultGrant records via csdk CLI + +## Usage + +```bash +csdk org-permission-default-grant list +csdk org-permission-default-grant list --where.. --orderBy +csdk org-permission-default-grant list --limit 10 --after +csdk org-permission-default-grant find-first --where.. +csdk org-permission-default-grant get --id +csdk org-permission-default-grant create --permissionId --entityId [--isGrant ] [--grantorId ] +csdk org-permission-default-grant update --id [--permissionId ] [--isGrant ] [--grantorId ] [--entityId ] +csdk org-permission-default-grant delete --id +``` + +## Examples + +### List orgPermissionDefaultGrant records + +```bash +csdk org-permission-default-grant list +``` + +### List orgPermissionDefaultGrant records with pagination + +```bash +csdk org-permission-default-grant list --limit 10 --offset 0 +``` + +### List orgPermissionDefaultGrant records with cursor pagination + +```bash +csdk org-permission-default-grant list --limit 10 --after +``` + +### Find first matching orgPermissionDefaultGrant + +```bash +csdk org-permission-default-grant find-first --where.id.equalTo +``` + +### List orgPermissionDefaultGrant records with field selection + +```bash +csdk org-permission-default-grant list --select id,id +``` + +### List orgPermissionDefaultGrant records with filtering and ordering + +```bash +csdk org-permission-default-grant list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgPermissionDefaultGrant + +```bash +csdk org-permission-default-grant create --permissionId --entityId [--isGrant ] [--grantorId ] +``` + +### Get a orgPermissionDefaultGrant by id + +```bash +csdk org-permission-default-grant get --id +``` diff --git a/.agents/skills/cli-admin/references/org-permission-default-permission.md b/.agents/skills/cli-admin/references/org-permission-default-permission.md new file mode 100644 index 0000000000..9b1d5d2217 --- /dev/null +++ b/.agents/skills/cli-admin/references/org-permission-default-permission.md @@ -0,0 +1,68 @@ +# orgPermissionDefaultPermission + + + +CRUD operations for OrgPermissionDefaultPermission records via csdk CLI + +## Usage + +```bash +csdk org-permission-default-permission list +csdk org-permission-default-permission list --where.. --orderBy +csdk org-permission-default-permission list --limit 10 --after +csdk org-permission-default-permission find-first --where.. +csdk org-permission-default-permission get --id +csdk org-permission-default-permission create --permissionId --entityId +csdk org-permission-default-permission update --id [--permissionId ] [--entityId ] +csdk org-permission-default-permission delete --id +``` + +## Examples + +### List orgPermissionDefaultPermission records + +```bash +csdk org-permission-default-permission list +``` + +### List orgPermissionDefaultPermission records with pagination + +```bash +csdk org-permission-default-permission list --limit 10 --offset 0 +``` + +### List orgPermissionDefaultPermission records with cursor pagination + +```bash +csdk org-permission-default-permission list --limit 10 --after +``` + +### Find first matching orgPermissionDefaultPermission + +```bash +csdk org-permission-default-permission find-first --where.id.equalTo +``` + +### List orgPermissionDefaultPermission records with field selection + +```bash +csdk org-permission-default-permission list --select id,id +``` + +### List orgPermissionDefaultPermission records with filtering and ordering + +```bash +csdk org-permission-default-permission list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgPermissionDefaultPermission + +```bash +csdk org-permission-default-permission create --permissionId --entityId +``` + +### Get a orgPermissionDefaultPermission by id + +```bash +csdk org-permission-default-permission get --id +``` diff --git a/.agents/skills/cli-agent/references/agent-message.md b/.agents/skills/cli-agent/references/agent-message.md index 3abe123656..64d7734692 100644 --- a/.agents/skills/cli-agent/references/agent-message.md +++ b/.agents/skills/cli-agent/references/agent-message.md @@ -12,8 +12,8 @@ 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 --authorRole [--ownerId ] [--parts ] [--model ] -csdk agent-message update --id [--ownerId ] [--parts ] [--threadId ] [--authorRole ] [--model ] +csdk agent-message create --threadId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] +csdk agent-message update --id [--actorId ] [--parts ] [--threadId ] [--authorRole ] [--model ] [--agentId ] csdk agent-message delete --id ``` @@ -58,7 +58,7 @@ csdk agent-message list --where.id.equalTo --orderBy ID_ASC ### Create a agentMessage ```bash -csdk agent-message create --threadId --authorRole [--ownerId ] [--parts ] [--model ] +csdk agent-message create --threadId --authorRole [--actorId ] [--parts ] [--model ] [--agentId ] ``` ### Get a agentMessage by id diff --git a/.agents/skills/cli-agent/references/agent-task.md b/.agents/skills/cli-agent/references/agent-task.md index c16e8c9e04..7472fee63b 100644 --- a/.agents/skills/cli-agent/references/agent-task.md +++ b/.agents/skills/cli-agent/references/agent-task.md @@ -12,8 +12,8 @@ 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 --planId --description [--ownerId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] -csdk agent-task update --id [--ownerId ] [--status ] [--planId ] [--description ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task create --planId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task update --id [--actorId ] [--status ] [--planId ] [--description ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] csdk agent-task delete --id ``` @@ -58,7 +58,7 @@ csdk agent-task list --where.id.equalTo --orderBy ID_ASC ### Create a agentTask ```bash -csdk agent-task create --planId --description [--ownerId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] +csdk agent-task create --planId --description [--actorId ] [--status ] [--source ] [--error ] [--orderIndex ] [--requiresApproval ] [--approvalStatus ] [--approvedBy ] [--approvedAt ] [--approvalFeedback ] ``` ### Get a agentTask by id diff --git a/.agents/skills/cli-api/SKILL.md b/.agents/skills/cli-api/SKILL.md index 1f350ae642..1134d90299 100644 --- a/.agents/skills/cli-api/SKILL.md +++ b/.agents/skills/cli-api/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-api -description: CLI tool (csdk) for the api API — provides CRUD commands for 45 tables and 10 custom operations +description: CLI tool (csdk) for the api API — provides CRUD commands for 46 tables and 10 custom operations --- # cli-api -CLI tool (csdk) for the api API — provides CRUD commands for 45 tables and 10 custom operations +CLI tool (csdk) for the api API — provides CRUD commands for 46 tables and 10 custom operations ## Usage @@ -78,6 +78,7 @@ See the `references/` directory for detailed per-entity API documentation: - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) +- [composite-type](references/composite-type.md) - [api-schema](references/api-schema.md) - [api-module](references/api-module.md) - [domain](references/domain.md) diff --git a/.agents/skills/cli-api/references/check-constraint.md b/.agents/skills/cli-api/references/check-constraint.md index fcf131c5de..41a04735ca 100644 --- a/.agents/skills/cli-api/references/check-constraint.md +++ b/.agents/skills/cli-api/references/check-constraint.md @@ -12,8 +12,8 @@ csdk check-constraint list --where.. --orderBy csdk check-constraint list --limit 10 --after csdk check-constraint find-first --where.. csdk check-constraint get --id -csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk check-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk check-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--expr ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk check-constraint delete --id ``` @@ -58,7 +58,7 @@ csdk check-constraint list --where.id.equalTo --orderBy ID_ASC ### Create a checkConstraint ```bash -csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk check-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--expr ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a checkConstraint by id diff --git a/.agents/skills/cli-api/references/composite-type.md b/.agents/skills/cli-api/references/composite-type.md new file mode 100644 index 0000000000..8dcf4b7d2a --- /dev/null +++ b/.agents/skills/cli-api/references/composite-type.md @@ -0,0 +1,68 @@ +# compositeType + + + +CRUD operations for CompositeType records via csdk CLI + +## Usage + +```bash +csdk composite-type list +csdk composite-type list --where.. --orderBy +csdk composite-type list --limit 10 --after +csdk composite-type find-first --where.. +csdk composite-type get --id +csdk composite-type create --databaseId --schemaId --name [--label ] [--description ] [--attributes ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk composite-type update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--attributes ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk composite-type delete --id +``` + +## Examples + +### List compositeType records + +```bash +csdk composite-type list +``` + +### List compositeType records with pagination + +```bash +csdk composite-type list --limit 10 --offset 0 +``` + +### List compositeType records with cursor pagination + +```bash +csdk composite-type list --limit 10 --after +``` + +### Find first matching compositeType + +```bash +csdk composite-type find-first --where.id.equalTo +``` + +### List compositeType records with field selection + +```bash +csdk composite-type list --select id,id +``` + +### List compositeType records with filtering and ordering + +```bash +csdk composite-type list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a compositeType + +```bash +csdk composite-type create --databaseId --schemaId --name [--label ] [--description ] [--attributes ] [--smartTags ] [--category ] [--scope ] [--tags ] +``` + +### Get a compositeType by id + +```bash +csdk composite-type get --id +``` diff --git a/.agents/skills/cli-api/references/enum.md b/.agents/skills/cli-api/references/enum.md index 756eea869d..4f0b94633e 100644 --- a/.agents/skills/cli-api/references/enum.md +++ b/.agents/skills/cli-api/references/enum.md @@ -12,8 +12,8 @@ csdk enum list --where.. --orderBy csdk enum list --limit 10 --after csdk enum find-first --where.. csdk enum get --id -csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk enum update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk enum update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk enum delete --id ``` @@ -58,7 +58,7 @@ csdk enum list --where.id.equalTo --orderBy ID_ASC ### Create a enum ```bash -csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk enum create --databaseId --schemaId --name [--label ] [--description ] [--values ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a enum by id diff --git a/.agents/skills/cli-api/references/field.md b/.agents/skills/cli-api/references/field.md index 2c4d071dd7..1e3a705e81 100644 --- a/.agents/skills/cli-api/references/field.md +++ b/.agents/skills/cli-api/references/field.md @@ -12,8 +12,8 @@ csdk field list --where.. --orderBy csdk field list --limit 10 --after csdk field find-first --where.. csdk field get --id -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] -csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] +csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--scope ] +csdk field update --id [--databaseId ] [--tableId ] [--name ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--type ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--scope ] csdk field delete --id ``` @@ -58,7 +58,7 @@ csdk field list --where.id.equalTo --orderBy ID_ASC ### Create a field ```bash -csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--module ] [--scope ] +csdk field create --tableId --name --type [--databaseId ] [--label ] [--description ] [--smartTags ] [--isRequired ] [--apiRequired ] [--defaultValue ] [--fieldOrder ] [--regexp ] [--chk ] [--chkExpr ] [--min ] [--max ] [--tags ] [--category ] [--scope ] ``` ### Get a field by id diff --git a/.agents/skills/cli-api/references/foreign-key-constraint.md b/.agents/skills/cli-api/references/foreign-key-constraint.md index 4dd8dd2ef6..7fb2e4cc8f 100644 --- a/.agents/skills/cli-api/references/foreign-key-constraint.md +++ b/.agents/skills/cli-api/references/foreign-key-constraint.md @@ -12,8 +12,8 @@ csdk foreign-key-constraint list --where.. --orderBy csdk foreign-key-constraint list --limit 10 --after csdk foreign-key-constraint find-first --where.. csdk foreign-key-constraint get --id -csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] -csdk foreign-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--refTableId ] [--refFieldIds ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] +csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--scope ] [--tags ] +csdk foreign-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--refTableId ] [--refFieldIds ] [--deleteAction ] [--updateAction ] [--category ] [--scope ] [--tags ] csdk foreign-key-constraint delete --id ``` @@ -58,7 +58,7 @@ csdk foreign-key-constraint list --where.id.equalTo --orderBy ID_ASC ### Create a foreignKeyConstraint ```bash -csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--module ] [--scope ] [--tags ] +csdk foreign-key-constraint create --tableId --fieldIds --refTableId --refFieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--deleteAction ] [--updateAction ] [--category ] [--scope ] [--tags ] ``` ### Get a foreignKeyConstraint by id diff --git a/.agents/skills/cli-api/references/index.md b/.agents/skills/cli-api/references/index.md index 06ae4bee73..ce157b0e24 100644 --- a/.agents/skills/cli-api/references/index.md +++ b/.agents/skills/cli-api/references/index.md @@ -12,8 +12,8 @@ csdk index list --where.. --orderBy csdk index list --limit 10 --after csdk index find-first --where.. csdk index get --id -csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk index update --id [--databaseId ] [--tableId ] [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk index update --id [--databaseId ] [--tableId ] [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk index delete --id ``` @@ -58,7 +58,7 @@ csdk index list --where.id.equalTo --orderBy ID_ASC ### Create a index ```bash -csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk index create --databaseId --tableId [--name ] [--fieldIds ] [--includeFieldIds ] [--accessMethod ] [--indexParams ] [--whereClause ] [--isUnique ] [--options ] [--opClasses ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a index by id diff --git a/.agents/skills/cli-api/references/policy.md b/.agents/skills/cli-api/references/policy.md index db7ce17a5a..c7055e9135 100644 --- a/.agents/skills/cli-api/references/policy.md +++ b/.agents/skills/cli-api/references/policy.md @@ -12,8 +12,8 @@ csdk policy list --where.. --orderBy csdk policy list --limit 10 --after csdk policy find-first --where.. csdk policy get --id -csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk policy update --id [--databaseId ] [--tableId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk policy delete --id ``` @@ -58,7 +58,7 @@ csdk policy list --where.id.equalTo --orderBy ID_ASC ### Create a policy ```bash -csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk policy create --tableId [--databaseId ] [--name ] [--granteeName ] [--privilege ] [--permissive ] [--disabled ] [--policyType ] [--data ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a policy by id diff --git a/.agents/skills/cli-api/references/primary-key-constraint.md b/.agents/skills/cli-api/references/primary-key-constraint.md index 9980cec19c..c59450af1d 100644 --- a/.agents/skills/cli-api/references/primary-key-constraint.md +++ b/.agents/skills/cli-api/references/primary-key-constraint.md @@ -12,8 +12,8 @@ csdk primary-key-constraint list --where.. --orderBy csdk primary-key-constraint list --limit 10 --after csdk primary-key-constraint find-first --where.. csdk primary-key-constraint get --id -csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk primary-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk primary-key-constraint update --id [--databaseId ] [--tableId ] [--name ] [--type ] [--fieldIds ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk primary-key-constraint delete --id ``` @@ -58,7 +58,7 @@ csdk primary-key-constraint list --where.id.equalTo --orderBy ID_ASC ### Create a primaryKeyConstraint ```bash -csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk primary-key-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--type ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a primaryKeyConstraint by id diff --git a/.agents/skills/cli-api/references/schema.md b/.agents/skills/cli-api/references/schema.md index 6f0473ac78..ee926c43c5 100644 --- a/.agents/skills/cli-api/references/schema.md +++ b/.agents/skills/cli-api/references/schema.md @@ -12,8 +12,8 @@ csdk schema list --where.. --orderBy csdk schema list --limit 10 --after csdk schema find-first --where.. csdk schema get --id -csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] -csdk schema update --id [--databaseId ] [--name ] [--schemaName ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] +csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--tags ] [--isPublic ] +csdk schema update --id [--databaseId ] [--name ] [--schemaName ] [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--tags ] [--isPublic ] csdk schema delete --id ``` @@ -58,7 +58,7 @@ csdk schema list --where.id.equalTo --orderBy ID_ASC ### Create a schema ```bash -csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] [--isPublic ] +csdk schema create --databaseId --name --schemaName [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--tags ] [--isPublic ] ``` ### Get a schema by id diff --git a/.agents/skills/cli-api/references/spatial-relation.md b/.agents/skills/cli-api/references/spatial-relation.md index 130d99614b..b7e3445647 100644 --- a/.agents/skills/cli-api/references/spatial-relation.md +++ b/.agents/skills/cli-api/references/spatial-relation.md @@ -12,8 +12,8 @@ csdk spatial-relation list --where.. --orderBy csdk spatial-relation list --limit 10 --after csdk spatial-relation find-first --where.. csdk spatial-relation get --id -csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] -csdk spatial-relation update --id [--databaseId ] [--tableId ] [--fieldId ] [--refTableId ] [--refFieldId ] [--name ] [--operator ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] +csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--scope ] [--tags ] +csdk spatial-relation update --id [--databaseId ] [--tableId ] [--fieldId ] [--refTableId ] [--refFieldId ] [--name ] [--operator ] [--paramName ] [--category ] [--scope ] [--tags ] csdk spatial-relation delete --id ``` @@ -58,7 +58,7 @@ csdk spatial-relation list --where.id.equalTo --orderBy ID_ASC ### Create a spatialRelation ```bash -csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--module ] [--scope ] [--tags ] +csdk spatial-relation create --tableId --fieldId --refTableId --refFieldId --name --operator [--databaseId ] [--paramName ] [--category ] [--scope ] [--tags ] ``` ### Get a spatialRelation by id diff --git a/.agents/skills/cli-api/references/table.md b/.agents/skills/cli-api/references/table.md index 8f472367f4..d30c65ffb8 100644 --- a/.agents/skills/cli-api/references/table.md +++ b/.agents/skills/cli-api/references/table.md @@ -12,8 +12,8 @@ csdk table list --where.. --orderBy csdk table list --limit 10 --after csdk table find-first --where.. csdk table get --id -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] -csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table update --id [--databaseId ] [--schemaId ] [--name ] [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] csdk table delete --id ``` @@ -58,7 +58,7 @@ csdk table list --where.id.equalTo --orderBy ID_ASC ### Create a table ```bash -csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--module ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] +csdk table create --schemaId --name [--databaseId ] [--label ] [--description ] [--smartTags ] [--category ] [--scope ] [--useRls ] [--timestamps ] [--peoplestamps ] [--pluralName ] [--singularName ] [--tags ] [--partitioned ] [--partitionStrategy ] [--partitionKeyNames ] [--partitionKeyTypes ] [--inheritsId ] ``` ### Get a table by id diff --git a/.agents/skills/cli-api/references/trigger.md b/.agents/skills/cli-api/references/trigger.md index cb296d9140..81e79f3280 100644 --- a/.agents/skills/cli-api/references/trigger.md +++ b/.agents/skills/cli-api/references/trigger.md @@ -12,8 +12,8 @@ csdk trigger list --where.. --orderBy csdk trigger list --limit 10 --after csdk trigger find-first --where.. csdk trigger get --id -csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk trigger update --id [--databaseId ] [--tableId ] [--name ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk trigger update --id [--databaseId ] [--tableId ] [--name ] [--event ] [--functionName ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk trigger delete --id ``` @@ -58,7 +58,7 @@ csdk trigger list --where.id.equalTo --orderBy ID_ASC ### Create a trigger ```bash -csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk trigger create --tableId --name [--databaseId ] [--event ] [--functionName ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a trigger by id diff --git a/.agents/skills/cli-api/references/unique-constraint.md b/.agents/skills/cli-api/references/unique-constraint.md index 042d6dabbc..b16b518998 100644 --- a/.agents/skills/cli-api/references/unique-constraint.md +++ b/.agents/skills/cli-api/references/unique-constraint.md @@ -12,8 +12,8 @@ csdk unique-constraint list --where.. --orderBy csdk unique-constraint list --limit 10 --after csdk unique-constraint find-first --where.. csdk unique-constraint get --id -csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] -csdk unique-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--category ] [--module ] [--scope ] [--tags ] +csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--scope ] [--tags ] +csdk unique-constraint update --id [--databaseId ] [--tableId ] [--name ] [--description ] [--smartTags ] [--type ] [--fieldIds ] [--category ] [--scope ] [--tags ] csdk unique-constraint delete --id ``` @@ -58,7 +58,7 @@ csdk unique-constraint list --where.id.equalTo --orderBy ID_ASC ### Create a uniqueConstraint ```bash -csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--module ] [--scope ] [--tags ] +csdk unique-constraint create --tableId --fieldIds [--databaseId ] [--name ] [--description ] [--smartTags ] [--type ] [--category ] [--scope ] [--tags ] ``` ### Get a uniqueConstraint by id diff --git a/.agents/skills/cli-api/references/view-table.md b/.agents/skills/cli-api/references/view-table.md index 1e3697cef2..2849378753 100644 --- a/.agents/skills/cli-api/references/view-table.md +++ b/.agents/skills/cli-api/references/view-table.md @@ -12,8 +12,8 @@ csdk view-table list --where.. --orderBy csdk view-table list --limit 10 --after csdk view-table find-first --where.. csdk view-table get --id -csdk view-table create --viewId --tableId [--joinOrder ] -csdk view-table update --id [--viewId ] [--tableId ] [--joinOrder ] +csdk view-table create --viewId --tableId [--databaseId ] [--joinOrder ] +csdk view-table update --id [--databaseId ] [--viewId ] [--tableId ] [--joinOrder ] csdk view-table delete --id ``` @@ -58,7 +58,7 @@ csdk view-table list --where.id.equalTo --orderBy ID_ASC ### Create a viewTable ```bash -csdk view-table create --viewId --tableId [--joinOrder ] +csdk view-table create --viewId --tableId [--databaseId ] [--joinOrder ] ``` ### Get a viewTable by id diff --git a/.agents/skills/cli-api/references/view.md b/.agents/skills/cli-api/references/view.md index faca52a5a1..84589ff8fe 100644 --- a/.agents/skills/cli-api/references/view.md +++ b/.agents/skills/cli-api/references/view.md @@ -12,8 +12,8 @@ csdk view list --where.. --orderBy csdk view list --limit 10 --after csdk view find-first --where.. csdk view get --id -csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] -csdk view update --id [--databaseId ] [--schemaId ] [--name ] [--tableId ] [--viewType ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--scope ] [--tags ] +csdk view update --id [--databaseId ] [--schemaId ] [--name ] [--tableId ] [--viewType ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--scope ] [--tags ] csdk view delete --id ``` @@ -58,7 +58,7 @@ csdk view list --where.id.equalTo --orderBy ID_ASC ### Create a view ```bash -csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--module ] [--scope ] [--tags ] +csdk view create --schemaId --name --viewType [--databaseId ] [--tableId ] [--data ] [--filterType ] [--filterData ] [--securityInvoker ] [--isReadOnly ] [--smartTags ] [--category ] [--scope ] [--tags ] ``` ### Get a view by id diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index 721cbec15f..5e6256b4ed 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 27 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 30 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 27 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 30 custom operations ## Usage @@ -84,8 +84,11 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-sms-otp](references/sign-in-sms-otp.md) +- [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) +- [link-identity](references/link-identity.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) - [request-cross-origin-token](references/request-cross-origin-token.md) diff --git a/.agents/skills/cli-auth/references/link-identity.md b/.agents/skills/cli-auth/references/link-identity.md new file mode 100644 index 0000000000..896ed0ea56 --- /dev/null +++ b/.agents/skills/cli-auth/references/link-identity.md @@ -0,0 +1,19 @@ +# linkIdentity + + + +Execute the linkIdentity mutation + +## Usage + +```bash +csdk link-identity --input.clientMutationId --input.service --input.identifier --input.details +``` + +## Examples + +### Run linkIdentity + +```bash +csdk link-identity --input.clientMutationId --input.service --input.identifier --input.details +``` diff --git a/.agents/skills/cli-auth/references/sign-in-sms-otp.md b/.agents/skills/cli-auth/references/sign-in-sms-otp.md new file mode 100644 index 0000000000..01d567be1e --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-in-sms-otp.md @@ -0,0 +1,19 @@ +# signInSmsOtp + + + +Execute the signInSmsOtp mutation + +## Usage + +```bash +csdk sign-in-sms-otp --input.clientMutationId --input.phone --input.code --input.credentialKind --input.rememberMe --input.deviceToken +``` + +## Examples + +### Run signInSmsOtp + +```bash +csdk sign-in-sms-otp --input.clientMutationId --input.phone --input.code --input.credentialKind --input.rememberMe --input.deviceToken +``` diff --git a/.agents/skills/cli-auth/references/sign-up-sms.md b/.agents/skills/cli-auth/references/sign-up-sms.md new file mode 100644 index 0000000000..55c58e175f --- /dev/null +++ b/.agents/skills/cli-auth/references/sign-up-sms.md @@ -0,0 +1,19 @@ +# signUpSms + + + +Execute the signUpSms mutation + +## Usage + +```bash +csdk sign-up-sms --input.clientMutationId --input.phone --input.code --input.credentialKind --input.rememberMe --input.deviceToken +``` + +## Examples + +### Run signUpSms + +```bash +csdk sign-up-sms --input.clientMutationId --input.phone --input.code --input.credentialKind --input.rememberMe --input.deviceToken +``` diff --git a/.agents/skills/cli-modules/SKILL.md b/.agents/skills/cli-modules/SKILL.md index 24c9c5298f..c9266ba353 100644 --- a/.agents/skills/cli-modules/SKILL.md +++ b/.agents/skills/cli-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-modules -description: CLI tool (csdk) for the modules API — provides CRUD commands for 56 tables and 12 custom operations +description: CLI tool (csdk) for the modules API — provides CRUD commands for 57 tables and 12 custom operations --- # cli-modules -CLI tool (csdk) for the modules API — provides CRUD commands for 56 tables and 12 custom operations +CLI tool (csdk) for the modules API — provides CRUD commands for 57 tables and 12 custom operations ## Usage @@ -73,45 +73,46 @@ See the `references/` directory for detailed per-entity API documentation: - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) -- [identity-providers-module](references/identity-providers-module.md) - [denormalized-table-field](references/denormalized-table-field.md) +- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) - [blueprint-construction](references/blueprint-construction.md) - [crypto-auth-module](references/crypto-auth-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [sessions-module](references/sessions-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [secure-table-provision](references/secure-table-provision.md) - [merkle-store-module](references/merkle-store-module.md) - [graph-module](references/graph-module.md) -- [secure-table-provision](references/secure-table-provision.md) -- [invites-module](references/invites-module.md) - [database-provision-module](references/database-provision-module.md) -- [namespace-module](references/namespace-module.md) +- [config-secrets-module](references/config-secrets-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [realtime-module](references/realtime-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) +- [function-invocation-module](references/function-invocation-module.md) +- [function-module](references/function-module.md) +- [invites-module](references/invites-module.md) +- [namespace-module](references/namespace-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [notifications-module](references/notifications-module.md) - [plans-module](references/plans-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [profiles-module](references/profiles-module.md) +- [db-usage-module](references/db-usage-module.md) +- [hierarchy-module](references/hierarchy-module.md) - [permissions-module](references/permissions-module.md) +- [notifications-module](references/notifications-module.md) +- [profiles-module](references/profiles-module.md) +- [billing-module](references/billing-module.md) - [relation-provision](references/relation-provision.md) -- [function-module](references/function-module.md) - [user-auth-module](references/user-auth-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) - [memberships-module](references/memberships-module.md) +- [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) - [events-module](references/events-module.md) -- [entity-type-provision](references/entity-type-provision.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) diff --git a/.agents/skills/cli-modules/references/agent-module.md b/.agents/skills/cli-modules/references/agent-module.md index 730e632ea7..3d7cd19845 100644 --- a/.agents/skills/cli-modules/references/agent-module.md +++ b/.agents/skills/cli-modules/references/agent-module.md @@ -12,8 +12,8 @@ csdk agent-module list --where.. --orderBy csdk agent-module list --limit 10 --after csdk agent-module find-first --where.. csdk agent-module get --id -csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] -csdk agent-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] +csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] +csdk agent-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] csdk agent-module delete --id ``` @@ -58,7 +58,7 @@ csdk agent-module list --where.id.equalTo --orderBy ID_ASC ### Create a agentModule ```bash -csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] +csdk agent-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--threadTableId ] [--messageTableId ] [--taskTableId ] [--promptsTableId ] [--planTableId ] [--agentTableId ] [--personaTableId ] [--resourceTableId ] [--threadTableName ] [--messageTableName ] [--taskTableName ] [--promptsTableName ] [--planTableName ] [--agentTableName ] [--personaTableName ] [--resourceTableName ] [--hasPlans ] [--hasResources ] [--hasAgents ] [--shared ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--resources ] [--provisions ] [--defaultPermissions ] ``` ### Get a agentModule by id diff --git a/.agents/skills/cli-modules/references/billing-module.md b/.agents/skills/cli-modules/references/billing-module.md index 474b79e379..38ae1cca18 100644 --- a/.agents/skills/cli-modules/references/billing-module.md +++ b/.agents/skills/cli-modules/references/billing-module.md @@ -12,8 +12,8 @@ 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 ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] -csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk billing-module delete --id ``` @@ -58,7 +58,7 @@ 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 ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--meterCreditsTableId ] [--meterCreditsTableName ] [--meterSourcesTableId ] [--meterSourcesTableName ] [--meterDefaultsTableId ] [--meterDefaultsTableName ] [--recordUsageFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a billingModule by id diff --git a/.agents/skills/cli-modules/references/compute-log-module.md b/.agents/skills/cli-modules/references/compute-log-module.md index fae41b304f..8f8ef904e1 100644 --- a/.agents/skills/cli-modules/references/compute-log-module.md +++ b/.agents/skills/cli-modules/references/compute-log-module.md @@ -12,8 +12,8 @@ csdk compute-log-module list --where.. --orderBy csdk compute-log-module list --limit 10 --after csdk compute-log-module find-first --where.. csdk compute-log-module get --id -csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] csdk compute-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk compute-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a computeLogModule ```bash -csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk compute-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--computeLogTableId ] [--computeLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a computeLogModule by id diff --git a/.agents/skills/cli-modules/references/config-secrets-module.md b/.agents/skills/cli-modules/references/config-secrets-module.md index 88fb819534..824b8c7a80 100644 --- a/.agents/skills/cli-modules/references/config-secrets-module.md +++ b/.agents/skills/cli-modules/references/config-secrets-module.md @@ -12,8 +12,8 @@ csdk config-secrets-module list --where.. --orderBy csdk config-secrets-module list --limit 10 --after csdk config-secrets-module find-first --where.. csdk config-secrets-module get --id -csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] -csdk config-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +csdk config-secrets-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] csdk config-secrets-module delete --id ``` @@ -58,7 +58,7 @@ csdk config-secrets-module list --where.id.equalTo --orderBy ID_ASC ### Create a configSecretsModule ```bash -csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] +csdk config-secrets-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--configDefinitionsTableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--hasConfig ] ``` ### Get a configSecretsModule by id diff --git a/.agents/skills/cli-modules/references/db-usage-module.md b/.agents/skills/cli-modules/references/db-usage-module.md index 2f09fceeab..ab276f0a09 100644 --- a/.agents/skills/cli-modules/references/db-usage-module.md +++ b/.agents/skills/cli-modules/references/db-usage-module.md @@ -12,8 +12,8 @@ csdk db-usage-module list --where.. --orderBy csdk db-usage-module list --limit 10 --after csdk db-usage-module find-first --where.. csdk db-usage-module get --id -csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] -csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk db-usage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk db-usage-module delete --id ``` @@ -58,7 +58,7 @@ csdk db-usage-module list --where.id.equalTo --orderBy ID_ASC ### Create a dbUsageModule ```bash -csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--apiName ] [--privateApiName ] +csdk db-usage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableStatsLogTableId ] [--tableStatsLogTableName ] [--tableStatsDailyTableId ] [--tableStatsDailyTableName ] [--queryStatsLogTableId ] [--queryStatsLogTableName ] [--queryStatsDailyTableId ] [--queryStatsDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a dbUsageModule by id diff --git a/.agents/skills/cli-modules/references/entity-type-provision.md b/.agents/skills/cli-modules/references/entity-type-provision.md index 73c5c10cae..2eda353380 100644 --- a/.agents/skills/cli-modules/references/entity-type-provision.md +++ b/.agents/skills/cli-modules/references/entity-type-provision.md @@ -12,8 +12,8 @@ csdk entity-type-provision list --where.. --orderBy csdk entity-type-provision list --limit 10 --after csdk entity-type-provision find-first --where.. csdk entity-type-provision get --id -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] -csdk entity-type-provision update --id [--databaseId ] [--name ] [--prefix ] [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision update --id [--databaseId ] [--name ] [--prefix ] [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] csdk entity-type-provision delete --id ``` @@ -58,7 +58,7 @@ csdk entity-type-provision list --where.id.equalTo --orderBy ID_ASC ### Create a entityTypeProvision ```bash -csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outRequirementsTableId ] [--outConfigRequirementsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] +csdk entity-type-provision create --databaseId --name --prefix [--description ] [--parentEntity ] [--tableName ] [--isVisible ] [--hasLimits ] [--hasProfiles ] [--hasLevels ] [--hasInvites ] [--hasInviteAchievements ] [--storage ] [--namespaces ] [--functions ] [--graphs ] [--agents ] [--skipEntityPolicies ] [--tableProvision ] [--outMembershipType ] [--outEntityTableId ] [--outEntityTableName ] [--outInstalledModules ] [--outStorageModuleId ] [--outBucketsTableId ] [--outFilesTableId ] [--outPathSharesTableId ] [--outInvitesModuleId ] [--outNamespaceModuleId ] [--outNamespacesTableId ] [--outNamespaceEventsTableId ] [--outFunctionModuleId ] [--outDefinitionsTableId ] [--outInvocationsTableId ] [--outExecutionLogsTableId ] [--outSecretDefinitionsTableId ] [--outGraphModuleId ] [--outGraphsTableId ] [--outAgentModuleId ] ``` ### Get a entityTypeProvision by id diff --git a/.agents/skills/cli-modules/references/events-module.md b/.agents/skills/cli-modules/references/events-module.md index 684c5504a0..4d99a8335c 100644 --- a/.agents/skills/cli-modules/references/events-module.md +++ b/.agents/skills/cli-modules/references/events-module.md @@ -12,8 +12,8 @@ csdk events-module list --where.. --orderBy csdk events-module list --limit 10 --after csdk events-module find-first --where.. csdk events-module get --id -csdk events-module create --databaseId [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] -csdk events-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk events-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk events-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk events-module delete --id ``` @@ -58,7 +58,7 @@ csdk events-module list --where.id.equalTo --orderBy ID_ASC ### Create a eventsModule ```bash -csdk events-module create --databaseId [--schemaId ] [--privateSchemaId ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk events-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--eventsTableId ] [--eventsTableName ] [--eventAggregatesTableId ] [--eventAggregatesTableName ] [--eventTypesTableId ] [--eventTypesTableName ] [--levelsTableId ] [--levelsTableName ] [--levelRequirementsTableId ] [--levelRequirementsTableName ] [--levelGrantsTableId ] [--levelGrantsTableName ] [--achievementRewardsTableId ] [--achievementRewardsTableName ] [--recordEvent ] [--removeEvent ] [--tgEvent ] [--tgEventToggle ] [--tgEventToggleBool ] [--tgEventBool ] [--upsertAggregate ] [--tgUpdateAggregates ] [--pruneEvents ] [--stepsRequired ] [--levelAchieved ] [--tgCheckAchievements ] [--grantAchievement ] [--tgAchievementReward ] [--interval ] [--retention ] [--premake ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a eventsModule by id diff --git a/.agents/skills/cli-modules/references/function-invocation-module.md b/.agents/skills/cli-modules/references/function-invocation-module.md new file mode 100644 index 0000000000..9dbc899b8e --- /dev/null +++ b/.agents/skills/cli-modules/references/function-invocation-module.md @@ -0,0 +1,68 @@ +# functionInvocationModule + + + +CRUD operations for FunctionInvocationModule records via csdk CLI + +## Usage + +```bash +csdk function-invocation-module list +csdk function-invocation-module list --where.. --orderBy +csdk function-invocation-module list --limit 10 --after +csdk function-invocation-module find-first --where.. +csdk function-invocation-module get --id +csdk function-invocation-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-invocation-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-invocation-module delete --id +``` + +## Examples + +### List functionInvocationModule records + +```bash +csdk function-invocation-module list +``` + +### List functionInvocationModule records with pagination + +```bash +csdk function-invocation-module list --limit 10 --offset 0 +``` + +### List functionInvocationModule records with cursor pagination + +```bash +csdk function-invocation-module list --limit 10 --after +``` + +### Find first matching functionInvocationModule + +```bash +csdk function-invocation-module find-first --where.id.equalTo +``` + +### List functionInvocationModule records with field selection + +```bash +csdk function-invocation-module list --select id,id +``` + +### List functionInvocationModule records with filtering and ordering + +```bash +csdk function-invocation-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a functionInvocationModule + +```bash +csdk function-invocation-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--invocationsTableId ] [--executionLogsTableId ] [--invocationsTableName ] [--executionLogsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +``` + +### Get a functionInvocationModule by id + +```bash +csdk function-invocation-module get --id +``` diff --git a/.agents/skills/cli-modules/references/function-module.md b/.agents/skills/cli-modules/references/function-module.md index 96ec015393..842c7f2c64 100644 --- a/.agents/skills/cli-modules/references/function-module.md +++ b/.agents/skills/cli-modules/references/function-module.md @@ -12,8 +12,8 @@ csdk function-module list --where.. --orderBy csdk function-module list --limit 10 --after csdk function-module find-first --where.. csdk function-module get --id -csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] -csdk function-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk function-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] csdk function-module delete --id ``` @@ -58,7 +58,7 @@ csdk function-module list --where.id.equalTo --orderBy ID_ASC ### Create a functionModule ```bash -csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--invocationsTableId ] [--executionLogsTableId ] [--secretDefinitionsTableId ] [--requirementsTableId ] [--configDefinitionsTableId ] [--configRequirementsTableId ] [--definitionsTableName ] [--invocationsTableName ] [--executionLogsTableName ] [--secretDefinitionsTableName ] [--requirementsTableName ] [--configRequirementsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk function-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--definitionsTableId ] [--secretDefinitionsTableId ] [--definitionsTableName ] [--secretDefinitionsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### Get a functionModule by id diff --git a/.agents/skills/cli-modules/references/graph-module.md b/.agents/skills/cli-modules/references/graph-module.md index 2c783ffb39..1e3135b0b6 100644 --- a/.agents/skills/cli-modules/references/graph-module.md +++ b/.agents/skills/cli-modules/references/graph-module.md @@ -12,8 +12,8 @@ csdk graph-module list --where.. --orderBy csdk graph-module list --limit 10 --after csdk graph-module find-first --where.. csdk graph-module get --id -csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] -csdk graph-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] +csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk graph-module update --id [--databaseId ] [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--merkleStoreModuleId ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] csdk graph-module delete --id ``` @@ -58,7 +58,7 @@ csdk graph-module list --where.id.equalTo --orderBy ID_ASC ### Create a graphModule ```bash -csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] +csdk graph-module create --databaseId --merkleStoreModuleId [--publicSchemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--scope ] [--prefix ] [--graphsTableId ] [--executionsTableId ] [--outputsTableId ] [--apiName ] [--privateApiName ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### Get a graphModule by id diff --git a/.agents/skills/cli-modules/references/hierarchy-module.md b/.agents/skills/cli-modules/references/hierarchy-module.md index a009d516e7..d3e3ed3333 100644 --- a/.agents/skills/cli-modules/references/hierarchy-module.md +++ b/.agents/skills/cli-modules/references/hierarchy-module.md @@ -12,8 +12,8 @@ csdk hierarchy-module list --where.. --orderBy csdk hierarchy-module list --limit 10 --after csdk hierarchy-module find-first --where.. csdk hierarchy-module get --id -csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] -csdk hierarchy-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] +csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] +csdk hierarchy-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--entityTableId ] [--usersTableId ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] csdk hierarchy-module delete --id ``` @@ -58,7 +58,7 @@ csdk hierarchy-module list --where.id.equalTo --orderBy ID_ASC ### Create a hierarchyModule ```bash -csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] +csdk hierarchy-module create --databaseId --entityTableId --usersTableId [--schemaId ] [--privateSchemaId ] [--chartEdgesTableId ] [--chartEdgesTableName ] [--hierarchySprtTableId ] [--hierarchySprtTableName ] [--chartEdgeGrantsTableId ] [--chartEdgeGrantsTableName ] [--scope ] [--prefix ] [--privateSchemaName ] [--sprtTableName ] [--rebuildHierarchyFunction ] [--getSubordinatesFunction ] [--getManagersFunction ] [--isManagerOfFunction ] [--defaultPermissions ] ``` ### Get a hierarchyModule by id diff --git a/.agents/skills/cli-modules/references/identity-providers-module.md b/.agents/skills/cli-modules/references/identity-providers-module.md index 08f6a70894..c1226d0ec5 100644 --- a/.agents/skills/cli-modules/references/identity-providers-module.md +++ b/.agents/skills/cli-modules/references/identity-providers-module.md @@ -12,8 +12,8 @@ csdk identity-providers-module list --where.. --orderBy csdk identity-providers-module find-first --where.. csdk identity-providers-module get --id -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] -csdk identity-providers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] csdk identity-providers-module delete --id ``` @@ -58,7 +58,7 @@ csdk identity-providers-module list --where.id.equalTo --orderBy ID_ASC ### Create a identityProvidersModule ```bash -csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] +csdk identity-providers-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] ``` ### Get a identityProvidersModule by id diff --git a/.agents/skills/cli-modules/references/inference-log-module.md b/.agents/skills/cli-modules/references/inference-log-module.md index 0fc427abef..facbfd5037 100644 --- a/.agents/skills/cli-modules/references/inference-log-module.md +++ b/.agents/skills/cli-modules/references/inference-log-module.md @@ -12,8 +12,8 @@ csdk inference-log-module list --where.. --orderBy csdk inference-log-module list --limit 10 --after csdk inference-log-module find-first --where.. csdk inference-log-module get --id -csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] csdk inference-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk inference-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a inferenceLogModule ```bash -csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk inference-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--inferenceLogTableId ] [--inferenceLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a inferenceLogModule by id diff --git a/.agents/skills/cli-modules/references/invites-module.md b/.agents/skills/cli-modules/references/invites-module.md index 71b72674ec..11058b0ab3 100644 --- a/.agents/skills/cli-modules/references/invites-module.md +++ b/.agents/skills/cli-modules/references/invites-module.md @@ -12,8 +12,8 @@ csdk invites-module list --where.. --orderBy csdk invites-module list --limit 10 --after csdk invites-module find-first --where.. csdk invites-module get --id -csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] -csdk invites-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] csdk invites-module delete --id ``` @@ -58,7 +58,7 @@ csdk invites-module list --where.id.equalTo --orderBy ID_ASC ### Create a invitesModule ```bash -csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] +csdk invites-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--emailsTableId ] [--usersTableId ] [--invitesTableId ] [--claimedInvitesTableId ] [--invitesTableName ] [--claimedInvitesTableName ] [--submitInviteCodeFunction ] [--scope ] [--prefix ] [--entityTableId ] [--apiName ] [--privateApiName ] ``` ### Get a invitesModule by id diff --git a/.agents/skills/cli-modules/references/limits-module.md b/.agents/skills/cli-modules/references/limits-module.md index 980168e4e0..f7ec4cbfd7 100644 --- a/.agents/skills/cli-modules/references/limits-module.md +++ b/.agents/skills/cli-modules/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 [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] -csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] +csdk limits-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--limitCreditsTableId ] [--eventsTableId ] [--creditCodesTableId ] [--creditCodeItemsTableId ] [--creditRedemptionsTableId ] [--aggregateTableId ] [--limitCapsTableId ] [--limitCapsDefaultsTableId ] [--capCheckTrigger ] [--resolveCapFunction ] [--limitWarningsTableId ] [--limitWarningStateTableId ] [--limitCheckSoftFunction ] [--limitAggregateCheckSoftFunction ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--apiName ] [--privateApiName ] ``` ### Get a limitsModule by id diff --git a/.agents/skills/cli-modules/references/memberships-module.md b/.agents/skills/cli-modules/references/memberships-module.md index 010eb708b6..20a285ba06 100644 --- a/.agents/skills/cli-modules/references/memberships-module.md +++ b/.agents/skills/cli-modules/references/memberships-module.md @@ -12,8 +12,8 @@ csdk memberships-module list --where.. --orderBy csdk memberships-module list --limit 10 --after csdk memberships-module find-first --where.. csdk memberships-module get --id -csdk memberships-module create --databaseId [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--apiName ] [--privateApiName ] -csdk memberships-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] csdk memberships-module delete --id ``` @@ -58,7 +58,7 @@ csdk memberships-module list --where.id.equalTo --orderBy ID_ASC ### Create a membershipsModule ```bash -csdk memberships-module create --databaseId [--schemaId ] [--privateSchemaId ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--apiName ] [--privateApiName ] +csdk memberships-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--membershipsTableId ] [--membershipsTableName ] [--membersTableId ] [--membersTableName ] [--membershipDefaultsTableId ] [--membershipDefaultsTableName ] [--membershipSettingsTableId ] [--membershipSettingsTableName ] [--grantsTableId ] [--grantsTableName ] [--actorTableId ] [--limitsTableId ] [--defaultLimitsTableId ] [--permissionsTableId ] [--defaultPermissionsTableId ] [--sprtTableId ] [--adminGrantsTableId ] [--adminGrantsTableName ] [--ownerGrantsTableId ] [--ownerGrantsTableName ] [--scope ] [--prefix ] [--entityTableId ] [--entityTableOwnerId ] [--getOrgFn ] [--actorMaskCheck ] [--actorPermCheck ] [--entityIdsByMask ] [--entityIdsByPerm ] [--entityIdsFunction ] [--memberProfilesTableId ] [--permissionDefaultPermissionsTableId ] [--permissionDefaultGrantsTableId ] [--apiName ] [--privateApiName ] ``` ### Get a membershipsModule by id diff --git a/.agents/skills/cli-modules/references/merkle-store-module.md b/.agents/skills/cli-modules/references/merkle-store-module.md index 24d8f7a18a..b74a9fc03a 100644 --- a/.agents/skills/cli-modules/references/merkle-store-module.md +++ b/.agents/skills/cli-modules/references/merkle-store-module.md @@ -12,8 +12,8 @@ csdk merkle-store-module list --where.. --orderBy csdk merkle-store-module list --limit 10 --after csdk merkle-store-module find-first --where.. csdk merkle-store-module get --id -csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] -csdk merkle-store-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] +csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] +csdk merkle-store-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] csdk merkle-store-module delete --id ``` @@ -58,7 +58,7 @@ csdk merkle-store-module list --where.id.equalTo --orderBy ID_ASC ### Create a merkleStoreModule ```bash -csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] +csdk merkle-store-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--objectTableId ] [--storeTableId ] [--commitTableId ] [--refTableId ] [--prefix ] [--apiName ] [--privateApiName ] [--scope ] [--functionPrefix ] ``` ### Get a merkleStoreModule by id diff --git a/.agents/skills/cli-modules/references/namespace-module.md b/.agents/skills/cli-modules/references/namespace-module.md index 77eb1874d5..0d810a3da1 100644 --- a/.agents/skills/cli-modules/references/namespace-module.md +++ b/.agents/skills/cli-modules/references/namespace-module.md @@ -12,8 +12,8 @@ csdk namespace-module list --where.. --orderBy csdk namespace-module list --limit 10 --after csdk namespace-module find-first --where.. csdk namespace-module get --id -csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] -csdk namespace-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] +csdk namespace-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] csdk namespace-module delete --id ``` @@ -58,7 +58,7 @@ csdk namespace-module list --where.id.equalTo --orderBy ID_ASC ### Create a namespaceModule ```bash -csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] +csdk namespace-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--namespacesTableId ] [--namespaceEventsTableId ] [--namespacesTableName ] [--namespaceEventsTableName ] [--apiName ] [--privateApiName ] [--scope ] [--prefix ] [--entityTableId ] [--policies ] [--provisions ] [--defaultPermissions ] ``` ### Get a namespaceModule by id diff --git a/.agents/skills/cli-modules/references/notifications-module.md b/.agents/skills/cli-modules/references/notifications-module.md index e1b22bf2fa..2b153ab786 100644 --- a/.agents/skills/cli-modules/references/notifications-module.md +++ b/.agents/skills/cli-modules/references/notifications-module.md @@ -12,8 +12,8 @@ csdk notifications-module list --where.. --orderBy csdk notifications-module list --limit 10 --after csdk notifications-module find-first --where.. csdk notifications-module get --id -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] -csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] +csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk notifications-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk notifications-module delete --id ``` @@ -58,7 +58,7 @@ csdk notifications-module list --where.id.equalTo --orderBy ID_ASC ### Create a notificationsModule ```bash -csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--apiName ] [--privateApiName ] +csdk notifications-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--notificationsTableId ] [--readStateTableId ] [--preferencesTableId ] [--channelsTableId ] [--deliveryLogTableId ] [--suppressionsTableId ] [--ownerTableId ] [--userSettingsTableId ] [--organizationSettingsTableId ] [--hasChannels ] [--hasPreferences ] [--hasSettingsExtension ] [--hasDigestMetadata ] [--hasSubscriptions ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a notificationsModule by id diff --git a/.agents/skills/cli-modules/references/permissions-module.md b/.agents/skills/cli-modules/references/permissions-module.md index ec637d3d08..21b4905727 100644 --- a/.agents/skills/cli-modules/references/permissions-module.md +++ b/.agents/skills/cli-modules/references/permissions-module.md @@ -12,8 +12,8 @@ csdk permissions-module list --where.. --orderBy csdk permissions-module list --limit 10 --after csdk permissions-module find-first --where.. csdk permissions-module get --id -csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] -csdk permissions-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] csdk permissions-module delete --id ``` @@ -58,7 +58,7 @@ csdk permissions-module list --where.id.equalTo --orderBy ID_ASC ### Create a permissionsModule ```bash -csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] +csdk permissions-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--bitlen ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--getPaddedMask ] [--getMask ] [--getByMask ] [--getMaskByName ] [--apiName ] [--privateApiName ] ``` ### Get a permissionsModule by id diff --git a/.agents/skills/cli-modules/references/plans-module.md b/.agents/skills/cli-modules/references/plans-module.md index 6e0aee12d5..97ba520ffd 100644 --- a/.agents/skills/cli-modules/references/plans-module.md +++ b/.agents/skills/cli-modules/references/plans-module.md @@ -12,8 +12,8 @@ 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 ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] -csdk plans-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk plans-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] csdk plans-module delete --id ``` @@ -58,7 +58,7 @@ 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 ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--planPricingTableId ] [--planOverridesTableId ] [--planMeterLimitsTableId ] [--planCapsTableId ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--applyBillingPlanFunction ] [--applyPlanCapsFunction ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a plansModule by id diff --git a/.agents/skills/cli-modules/references/profiles-module.md b/.agents/skills/cli-modules/references/profiles-module.md index 61aa11b5c1..2d72d397e3 100644 --- a/.agents/skills/cli-modules/references/profiles-module.md +++ b/.agents/skills/cli-modules/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 [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] -csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] 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 [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] +csdk profiles-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--scope ] [--prefix ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--apiName ] [--privateApiName ] ``` ### Get a profilesModule by id diff --git a/.agents/skills/cli-modules/references/rate-limit-meters-module.md b/.agents/skills/cli-modules/references/rate-limit-meters-module.md index 472d3747bd..73dd3928da 100644 --- a/.agents/skills/cli-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/cli-modules/references/rate-limit-meters-module.md @@ -12,8 +12,8 @@ csdk rate-limit-meters-module list --where.. --orderBy csdk rate-limit-meters-module find-first --where.. csdk rate-limit-meters-module get --id -csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] -csdk rate-limit-meters-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk rate-limit-meters-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] csdk rate-limit-meters-module delete --id ``` @@ -58,7 +58,7 @@ csdk rate-limit-meters-module list --where.id.equalTo --orderBy ID_ASC ### Create a rateLimitMetersModule ```bash -csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--apiName ] [--privateApiName ] +csdk rate-limit-meters-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--rateLimitStateTableId ] [--rateLimitStateTableName ] [--rateLimitOverridesTableId ] [--rateLimitOverridesTableName ] [--rateWindowLimitsTableId ] [--rateWindowLimitsTableName ] [--checkRateLimitFunction ] [--prefix ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a rateLimitMetersModule by id diff --git a/.agents/skills/cli-modules/references/storage-log-module.md b/.agents/skills/cli-modules/references/storage-log-module.md index 2be64f9702..4c037dbd8e 100644 --- a/.agents/skills/cli-modules/references/storage-log-module.md +++ b/.agents/skills/cli-modules/references/storage-log-module.md @@ -12,8 +12,8 @@ csdk storage-log-module list --where.. --orderBy csdk storage-log-module list --limit 10 --after csdk storage-log-module find-first --where.. csdk storage-log-module get --id -csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] csdk storage-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageLogModule ```bash -csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk storage-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--storageLogTableId ] [--storageLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a storageLogModule by id diff --git a/.agents/skills/cli-modules/references/storage-module.md b/.agents/skills/cli-modules/references/storage-module.md index 31ba836e65..1441fe2646 100644 --- a/.agents/skills/cli-modules/references/storage-module.md +++ b/.agents/skills/cli-modules/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 ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--apiName ] [--privateApiName ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--apiName ] [--privateApiName ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] 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 ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--apiName ] [--privateApiName ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--scope ] [--prefix ] [--policies ] [--provisions ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--hasPathShares ] [--pathSharesTableId ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] [--maxBulkFiles ] [--maxBulkTotalSize ] [--hasVersioning ] [--hasContentHash ] [--hasCustomKeys ] [--hasAuditLog ] [--hasConfirmUpload ] [--confirmUploadDelay ] [--fileEventsTableId ] [--defaultPermissions ] [--apiName ] [--privateApiName ] ``` ### Get a storageModule by id diff --git a/.agents/skills/cli-modules/references/transfer-log-module.md b/.agents/skills/cli-modules/references/transfer-log-module.md index 07cd7142a2..ce61325050 100644 --- a/.agents/skills/cli-modules/references/transfer-log-module.md +++ b/.agents/skills/cli-modules/references/transfer-log-module.md @@ -12,8 +12,8 @@ csdk transfer-log-module list --where.. --orderBy csdk transfer-log-module list --limit 10 --after csdk transfer-log-module find-first --where.. csdk transfer-log-module get --id -csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] -csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] csdk transfer-log-module delete --id ``` @@ -58,7 +58,7 @@ csdk transfer-log-module list --where.id.equalTo --orderBy ID_ASC ### Create a transferLogModule ```bash -csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] +csdk transfer-log-module create --databaseId [--schemaId ] [--privateSchemaId ] [--publicSchemaName ] [--privateSchemaName ] [--transferLogTableId ] [--transferLogTableName ] [--usageDailyTableId ] [--usageDailyTableName ] [--interval ] [--retention ] [--premake ] [--scope ] [--actorFkTableId ] [--entityFkTableId ] [--prefix ] [--apiName ] [--privateApiName ] ``` ### Get a transferLogModule by id diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index 1886822986..dba34cd893 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 26 tables and 12 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 30 tables and 12 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 26 tables and 12 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 30 tables and 12 custom operations ## Usage @@ -41,10 +41,14 @@ 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) - [app-permission](references/app-permission.md) +- [app-permission-default-grant](references/app-permission-default-grant.md) - [org-permission](references/org-permission.md) +- [org-permission-default-permission](references/org-permission-default-permission.md) +- [org-permission-default-grant](references/org-permission-default-grant.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) - [org-permission-default](references/org-permission-default.md) +- [app-permission-default-permission](references/app-permission-default-permission.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) - [org-admin-grant](references/org-admin-grant.md) @@ -60,9 +64,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) -- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/hooks-admin/references/app-invite.md b/.agents/skills/hooks-admin/references/app-invite.md index 8697f64c50..878cb495fe 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, 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 } } }) +useAppInvitesQuery({ selection: { fields: { id: true, channel: true, email: true, phone: 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, channel: true, email: true, phone: 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, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, channel: true, email: true, phone: 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: '', profileId: '', expiresAt: '' }); +mutate({ channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-permission-default-grant.md b/.agents/skills/hooks-admin/references/app-permission-default-grant.md new file mode 100644 index 0000000000..4876973c1b --- /dev/null +++ b/.agents/skills/hooks-admin/references/app-permission-default-grant.md @@ -0,0 +1,34 @@ +# appPermissionDefaultGrant + + + +Audit log of permission additions and removals from the defaults bitmask + +## Usage + +```typescript +useAppPermissionDefaultGrantsQuery({ selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useAppPermissionDefaultGrantQuery({ id: '', selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } } }) +useCreateAppPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionDefaultGrantMutation({}) +``` + +## Examples + +### List all appPermissionDefaultGrants + +```typescript +const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appPermissionDefaultGrant + +```typescript +const { mutate } = useCreateAppPermissionDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissionId: '', isGrant: '', grantorId: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/app-permission-default-permission.md b/.agents/skills/hooks-admin/references/app-permission-default-permission.md new file mode 100644 index 0000000000..9a092e66e4 --- /dev/null +++ b/.agents/skills/hooks-admin/references/app-permission-default-permission.md @@ -0,0 +1,34 @@ +# appPermissionDefaultPermission + + + +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +useAppPermissionDefaultPermissionsQuery({ selection: { fields: { id: true, permissionId: true, createdAt: true, updatedAt: true } } }) +useAppPermissionDefaultPermissionQuery({ id: '', selection: { fields: { id: true, permissionId: true, createdAt: true, updatedAt: true } } }) +useCreateAppPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateAppPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteAppPermissionDefaultPermissionMutation({}) +``` + +## Examples + +### List all appPermissionDefaultPermissions + +```typescript +const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ + selection: { fields: { id: true, permissionId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a appPermissionDefaultPermission + +```typescript +const { mutate } = useCreateAppPermissionDefaultPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissionId: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-invite.md b/.agents/skills/hooks-admin/references/org-invite.md index 50f21ac319..684163dcd3 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, profileId: true, isReadOnly: 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, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInvitesQuery({ selection: { fields: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInviteQuery({ id: '', selection: { fields: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); +mutate({ channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-permission-default-grant.md b/.agents/skills/hooks-admin/references/org-permission-default-grant.md new file mode 100644 index 0000000000..62ea869229 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-permission-default-grant.md @@ -0,0 +1,34 @@ +# orgPermissionDefaultGrant + + + +Audit log of permission additions and removals from the defaults bitmask + +## Usage + +```typescript +useOrgPermissionDefaultGrantsQuery({ selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } } }) +useOrgPermissionDefaultGrantQuery({ id: '', selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionDefaultGrantMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionDefaultGrantMutation({}) +``` + +## Examples + +### List all orgPermissionDefaultGrants + +```typescript +const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgPermissionDefaultGrant + +```typescript +const { mutate } = useCreateOrgPermissionDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissionId: '', isGrant: '', grantorId: '', entityId: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-permission-default-permission.md b/.agents/skills/hooks-admin/references/org-permission-default-permission.md new file mode 100644 index 0000000000..2a02189394 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-permission-default-permission.md @@ -0,0 +1,34 @@ +# orgPermissionDefaultPermission + + + +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +useOrgPermissionDefaultPermissionsQuery({ selection: { fields: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } } }) +useOrgPermissionDefaultPermissionQuery({ id: '', selection: { fields: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } } }) +useCreateOrgPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) +useUpdateOrgPermissionDefaultPermissionMutation({ selection: { fields: { id: true } } }) +useDeleteOrgPermissionDefaultPermissionMutation({}) +``` + +## Examples + +### List all orgPermissionDefaultPermissions + +```typescript +const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ + selection: { fields: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); +``` + +### Create a orgPermissionDefaultPermission + +```typescript +const { mutate } = useCreateOrgPermissionDefaultPermissionMutation({ + selection: { fields: { id: true } }, +}); +mutate({ permissionId: '', entityId: '' }); +``` diff --git a/.agents/skills/hooks-agent/references/agent-message.md b/.agents/skills/hooks-agent/references/agent-message.md index 776d5de58e..7bc764a653 100644 --- a/.agents/skills/hooks-agent/references/agent-message.md +++ b/.agents/skills/hooks-agent/references/agent-message.md @@ -7,8 +7,8 @@ Message within an agent thread with TextPart/ToolPart jsonb parts ## Usage ```typescript -useAgentMessagesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } } }) -useAgentMessageQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } } }) +useAgentMessagesQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } } }) +useAgentMessageQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } } }) useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) useDeleteAgentMessageMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentMessageMutation({}) ```typescript const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentMessagesQuery({ const { mutate } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }); +mutate({ actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }); ``` diff --git a/.agents/skills/hooks-agent/references/agent-task.md b/.agents/skills/hooks-agent/references/agent-task.md index d3db1b356f..72763d673d 100644 --- a/.agents/skills/hooks-agent/references/agent-task.md +++ b/.agents/skills/hooks-agent/references/agent-task.md @@ -7,8 +7,8 @@ Task within a plan, with ordering and optional approval gates ## Usage ```typescript -useAgentTasksQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) -useAgentTaskQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) +useAgentTasksQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) +useAgentTaskQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } } }) useCreateAgentTaskMutation({ selection: { fields: { id: true } } }) useUpdateAgentTaskMutation({ selection: { fields: { id: true } } }) useDeleteAgentTaskMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentTaskMutation({}) ```typescript const { data, isLoading } = useAgentTasksQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentTasksQuery({ const { mutate } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -mutate({ ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); +mutate({ actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); ``` diff --git a/.agents/skills/hooks-api/SKILL.md b/.agents/skills/hooks-api/SKILL.md index 88c8427972..c6a9c147bb 100644 --- a/.agents/skills/hooks-api/SKILL.md +++ b/.agents/skills/hooks-api/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-api -description: React Query hooks for the api API — provides typed query and mutation hooks for 45 tables and 10 custom operations +description: React Query hooks for the api API — provides typed query and mutation hooks for 46 tables and 10 custom operations --- # hooks-api -React Query hooks for the api API — provides typed query and mutation hooks for 45 tables and 10 custom operations +React Query hooks for the api API — provides typed query and mutation hooks for 46 tables and 10 custom operations ## Usage @@ -60,6 +60,7 @@ See the `references/` directory for detailed per-entity API documentation: - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) +- [composite-type](references/composite-type.md) - [api-schema](references/api-schema.md) - [api-module](references/api-module.md) - [domain](references/domain.md) diff --git a/.agents/skills/hooks-api/references/check-constraint.md b/.agents/skills/hooks-api/references/check-constraint.md index acd3e522da..7962fe3bd6 100644 --- a/.agents/skills/hooks-api/references/check-constraint.md +++ b/.agents/skills/hooks-api/references/check-constraint.md @@ -7,8 +7,8 @@ React Query hooks for CheckConstraint data operations ## Usage ```typescript -useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCheckConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useCheckConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateCheckConstraintMutation({ selection: { fields: { id: true } } }) useUpdateCheckConstraintMutation({ selection: { fields: { id: true } } }) useDeleteCheckConstraintMutation({}) @@ -20,7 +20,7 @@ useDeleteCheckConstraintMutation({}) ```typescript const { data, isLoading } = useCheckConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useCheckConstraintsQuery({ const { mutate } = useCreateCheckConstraintMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/composite-type.md b/.agents/skills/hooks-api/references/composite-type.md new file mode 100644 index 0000000000..2597ef3cc1 --- /dev/null +++ b/.agents/skills/hooks-api/references/composite-type.md @@ -0,0 +1,34 @@ +# compositeType + + + +React Query hooks for CompositeType data operations + +## Usage + +```typescript +useCompositeTypesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } } }) +useCompositeTypeQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } } }) +useCreateCompositeTypeMutation({ selection: { fields: { id: true } } }) +useUpdateCompositeTypeMutation({ selection: { fields: { id: true } } }) +useDeleteCompositeTypeMutation({}) +``` + +## Examples + +### List all compositeTypes + +```typescript +const { data, isLoading } = useCompositeTypesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }, +}); +``` + +### Create a compositeType + +```typescript +const { mutate } = useCreateCompositeTypeMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }); +``` diff --git a/.agents/skills/hooks-api/references/enum.md b/.agents/skills/hooks-api/references/enum.md index 0e052d7af9..f1f447ac30 100644 --- a/.agents/skills/hooks-api/references/enum.md +++ b/.agents/skills/hooks-api/references/enum.md @@ -7,8 +7,8 @@ React Query hooks for Enum data operations ## Usage ```typescript -useEnumsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useEnumQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useEnumsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } } }) +useEnumQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } } }) useCreateEnumMutation({ selection: { fields: { id: true } } }) useUpdateEnumMutation({ selection: { fields: { id: true } } }) useDeleteEnumMutation({}) @@ -20,7 +20,7 @@ useDeleteEnumMutation({}) ```typescript const { data, isLoading } = useEnumsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useEnumsQuery({ const { mutate } = useCreateEnumMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/field.md b/.agents/skills/hooks-api/references/field.md index 6a2a372467..520dfa6759 100644 --- a/.agents/skills/hooks-api/references/field.md +++ b/.agents/skills/hooks-api/references/field.md @@ -7,8 +7,8 @@ React Query hooks for Field data operations ## Usage ```typescript -useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) -useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } } }) +useFieldsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } } }) +useFieldQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } } }) useCreateFieldMutation({ selection: { fields: { id: true } } }) useUpdateFieldMutation({ selection: { fields: { id: true } } }) useDeleteFieldMutation({}) @@ -20,7 +20,7 @@ useDeleteFieldMutation({}) ```typescript const { data, isLoading } = useFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFieldsQuery({ const { mutate } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); +mutate({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }); ``` diff --git a/.agents/skills/hooks-api/references/foreign-key-constraint.md b/.agents/skills/hooks-api/references/foreign-key-constraint.md index 424a575721..4bffb55fb9 100644 --- a/.agents/skills/hooks-api/references/foreign-key-constraint.md +++ b/.agents/skills/hooks-api/references/foreign-key-constraint.md @@ -7,8 +7,8 @@ React Query hooks for ForeignKeyConstraint data operations ## Usage ```typescript -useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useForeignKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useForeignKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) useUpdateForeignKeyConstraintMutation({ selection: { fields: { id: true } } }) useDeleteForeignKeyConstraintMutation({}) @@ -20,7 +20,7 @@ useDeleteForeignKeyConstraintMutation({}) ```typescript const { data, isLoading } = useForeignKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useForeignKeyConstraintsQuery({ const { mutate } = useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/index.md b/.agents/skills/hooks-api/references/index.md index a27d1307b3..42d9c3d517 100644 --- a/.agents/skills/hooks-api/references/index.md +++ b/.agents/skills/hooks-api/references/index.md @@ -7,8 +7,8 @@ React Query hooks for Index data operations ## Usage ```typescript -useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useIndicesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useIndexQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateIndexMutation({ selection: { fields: { id: true } } }) useUpdateIndexMutation({ selection: { fields: { id: true } } }) useDeleteIndexMutation({}) @@ -20,7 +20,7 @@ useDeleteIndexMutation({}) ```typescript const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useIndicesQuery({ const { mutate } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/policy.md b/.agents/skills/hooks-api/references/policy.md index cc92cfd044..160fda6637 100644 --- a/.agents/skills/hooks-api/references/policy.md +++ b/.agents/skills/hooks-api/references/policy.md @@ -7,8 +7,8 @@ React Query hooks for Policy data operations ## Usage ```typescript -usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePoliciesQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePolicyQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreatePolicyMutation({ selection: { fields: { id: true } } }) useUpdatePolicyMutation({ selection: { fields: { id: true } } }) useDeletePolicyMutation({}) @@ -20,7 +20,7 @@ useDeletePolicyMutation({}) ```typescript const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePoliciesQuery({ const { mutate } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/primary-key-constraint.md b/.agents/skills/hooks-api/references/primary-key-constraint.md index 8f79348d32..87b2022c2b 100644 --- a/.agents/skills/hooks-api/references/primary-key-constraint.md +++ b/.agents/skills/hooks-api/references/primary-key-constraint.md @@ -7,8 +7,8 @@ React Query hooks for PrimaryKeyConstraint data operations ## Usage ```typescript -usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePrimaryKeyConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +usePrimaryKeyConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) useUpdatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } } }) useDeletePrimaryKeyConstraintMutation({}) @@ -20,7 +20,7 @@ useDeletePrimaryKeyConstraintMutation({}) ```typescript const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePrimaryKeyConstraintsQuery({ const { mutate } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/schema.md b/.agents/skills/hooks-api/references/schema.md index a4fb5146d4..dc0804c3ec 100644 --- a/.agents/skills/hooks-api/references/schema.md +++ b/.agents/skills/hooks-api/references/schema.md @@ -7,8 +7,8 @@ React Query hooks for Schema data operations ## Usage ```typescript -useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) -useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useSchemasQuery({ selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) +useSchemaQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } } }) useCreateSchemaMutation({ selection: { fields: { id: true } } }) useUpdateSchemaMutation({ selection: { fields: { id: true } } }) useDeleteSchemaMutation({}) @@ -20,7 +20,7 @@ useDeleteSchemaMutation({}) ```typescript const { data, isLoading } = useSchemasQuery({ - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSchemasQuery({ const { mutate } = useCreateSchemaMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +mutate({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }); ``` diff --git a/.agents/skills/hooks-api/references/spatial-relation.md b/.agents/skills/hooks-api/references/spatial-relation.md index 2ace884042..5fa5fa34ba 100644 --- a/.agents/skills/hooks-api/references/spatial-relation.md +++ b/.agents/skills/hooks-api/references/spatial-relation.md @@ -7,8 +7,8 @@ React Query hooks for SpatialRelation data operations ## Usage ```typescript -useSpatialRelationsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useSpatialRelationQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useSpatialRelationsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useSpatialRelationQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateSpatialRelationMutation({ selection: { fields: { id: true } } }) useUpdateSpatialRelationMutation({ selection: { fields: { id: true } } }) useDeleteSpatialRelationMutation({}) @@ -20,7 +20,7 @@ useDeleteSpatialRelationMutation({}) ```typescript const { data, isLoading } = useSpatialRelationsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useSpatialRelationsQuery({ const { mutate } = useCreateSpatialRelationMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/table.md b/.agents/skills/hooks-api/references/table.md index e251a89a15..7a243b6a12 100644 --- a/.agents/skills/hooks-api/references/table.md +++ b/.agents/skills/hooks-api/references/table.md @@ -7,8 +7,8 @@ React Query hooks for Table data operations ## Usage ```typescript -useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) -useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } } }) +useTablesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) +useTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } } }) useCreateTableMutation({ selection: { fields: { id: true } } }) useUpdateTableMutation({ selection: { fields: { id: true } } }) useDeleteTableMutation({}) @@ -20,7 +20,7 @@ useDeleteTableMutation({}) ```typescript const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTablesQuery({ const { mutate } = useCreateTableMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +mutate({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); ``` diff --git a/.agents/skills/hooks-api/references/trigger.md b/.agents/skills/hooks-api/references/trigger.md index b0f481c71a..861ac20239 100644 --- a/.agents/skills/hooks-api/references/trigger.md +++ b/.agents/skills/hooks-api/references/trigger.md @@ -7,8 +7,8 @@ React Query hooks for Trigger data operations ## Usage ```typescript -useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useTriggersQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useTriggerQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateTriggerMutation({ selection: { fields: { id: true } } }) useUpdateTriggerMutation({ selection: { fields: { id: true } } }) useDeleteTriggerMutation({}) @@ -20,7 +20,7 @@ useDeleteTriggerMutation({}) ```typescript const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTriggersQuery({ const { mutate } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/unique-constraint.md b/.agents/skills/hooks-api/references/unique-constraint.md index 2b1628b940..3d8db0dde8 100644 --- a/.agents/skills/hooks-api/references/unique-constraint.md +++ b/.agents/skills/hooks-api/references/unique-constraint.md @@ -7,8 +7,8 @@ React Query hooks for UniqueConstraint data operations ## Usage ```typescript -useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) -useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useUniqueConstraintsQuery({ selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) +useUniqueConstraintQuery({ id: '', selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } } }) useCreateUniqueConstraintMutation({ selection: { fields: { id: true } } }) useUpdateUniqueConstraintMutation({ selection: { fields: { id: true } } }) useDeleteUniqueConstraintMutation({}) @@ -20,7 +20,7 @@ useDeleteUniqueConstraintMutation({}) ```typescript const { data, isLoading } = useUniqueConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useUniqueConstraintsQuery({ const { mutate } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-api/references/view-table.md b/.agents/skills/hooks-api/references/view-table.md index 651a00cb72..0a82ed02d2 100644 --- a/.agents/skills/hooks-api/references/view-table.md +++ b/.agents/skills/hooks-api/references/view-table.md @@ -7,8 +7,8 @@ Junction table linking views to their joined tables for referential integrity ## Usage ```typescript -useViewTablesQuery({ selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) -useViewTableQuery({ id: '', selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } } }) +useViewTablesQuery({ selection: { fields: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } } }) +useViewTableQuery({ id: '', selection: { fields: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } } }) useCreateViewTableMutation({ selection: { fields: { id: true } } }) useUpdateViewTableMutation({ selection: { fields: { id: true } } }) useDeleteViewTableMutation({}) @@ -20,7 +20,7 @@ useDeleteViewTableMutation({}) ```typescript const { data, isLoading } = useViewTablesQuery({ - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useViewTablesQuery({ const { mutate } = useCreateViewTableMutation({ selection: { fields: { id: true } }, }); -mutate({ viewId: '', tableId: '', joinOrder: '' }); +mutate({ databaseId: '', viewId: '', tableId: '', joinOrder: '' }); ``` diff --git a/.agents/skills/hooks-api/references/view.md b/.agents/skills/hooks-api/references/view.md index b3f08a5d0d..e5add4af74 100644 --- a/.agents/skills/hooks-api/references/view.md +++ b/.agents/skills/hooks-api/references/view.md @@ -7,8 +7,8 @@ React Query hooks for View data operations ## Usage ```typescript -useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) -useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } } }) +useViewsQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } } }) +useViewQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } } }) useCreateViewMutation({ selection: { fields: { id: true } } }) useUpdateViewMutation({ selection: { fields: { id: true } } }) useDeleteViewMutation({}) @@ -20,7 +20,7 @@ useDeleteViewMutation({}) ```typescript const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useViewsQuery({ const { mutate } = useCreateViewMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +mutate({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index c48f4f2347..740f8e251c 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 27 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 30 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 27 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 30 custom operations ## Usage @@ -66,8 +66,11 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-sms-otp](references/sign-in-sms-otp.md) +- [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) +- [link-identity](references/link-identity.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) - [request-cross-origin-token](references/request-cross-origin-token.md) diff --git a/.agents/skills/hooks-auth/references/link-identity.md b/.agents/skills/hooks-auth/references/link-identity.md new file mode 100644 index 0000000000..857630d91c --- /dev/null +++ b/.agents/skills/hooks-auth/references/link-identity.md @@ -0,0 +1,20 @@ +# linkIdentity + + + +React Query mutation hook for linkIdentity + +## Usage + +```typescript +const { mutate } = useLinkIdentityMutation(); mutate({ input: { service: '', identifier: '', details: '' } }); +``` + +## Examples + +### Use useLinkIdentityMutation + +```typescript +const { mutate, isLoading } = useLinkIdentityMutation(); +mutate({ input: { service: '', identifier: '', details: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/sign-in-sms-otp.md b/.agents/skills/hooks-auth/references/sign-in-sms-otp.md new file mode 100644 index 0000000000..fdc4389fbe --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-in-sms-otp.md @@ -0,0 +1,20 @@ +# signInSmsOtp + + + +React Query mutation hook for signInSmsOtp + +## Usage + +```typescript +const { mutate } = useSignInSmsOtpMutation(); mutate({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }); +``` + +## Examples + +### Use useSignInSmsOtpMutation + +```typescript +const { mutate, isLoading } = useSignInSmsOtpMutation(); +mutate({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }); +``` diff --git a/.agents/skills/hooks-auth/references/sign-up-sms.md b/.agents/skills/hooks-auth/references/sign-up-sms.md new file mode 100644 index 0000000000..894ed47ad8 --- /dev/null +++ b/.agents/skills/hooks-auth/references/sign-up-sms.md @@ -0,0 +1,20 @@ +# signUpSms + + + +React Query mutation hook for signUpSms + +## Usage + +```typescript +const { mutate } = useSignUpSmsMutation(); mutate({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }); +``` + +## Examples + +### Use useSignUpSmsMutation + +```typescript +const { mutate, isLoading } = useSignUpSmsMutation(); +mutate({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }); +``` diff --git a/.agents/skills/hooks-modules/SKILL.md b/.agents/skills/hooks-modules/SKILL.md index a5e6af7e2b..e01ad64149 100644 --- a/.agents/skills/hooks-modules/SKILL.md +++ b/.agents/skills/hooks-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-modules -description: React Query hooks for the modules API — provides typed query and mutation hooks for 56 tables and 12 custom operations +description: React Query hooks for the modules API — provides typed query and mutation hooks for 57 tables and 12 custom operations --- # hooks-modules -React Query hooks for the modules API — provides typed query and mutation hooks for 56 tables and 12 custom operations +React Query hooks for the modules API — provides typed query and mutation hooks for 57 tables and 12 custom operations ## Usage @@ -55,45 +55,46 @@ See the `references/` directory for detailed per-entity API documentation: - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) -- [identity-providers-module](references/identity-providers-module.md) - [denormalized-table-field](references/denormalized-table-field.md) +- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) - [blueprint-construction](references/blueprint-construction.md) - [crypto-auth-module](references/crypto-auth-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [sessions-module](references/sessions-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [secure-table-provision](references/secure-table-provision.md) - [merkle-store-module](references/merkle-store-module.md) - [graph-module](references/graph-module.md) -- [secure-table-provision](references/secure-table-provision.md) -- [invites-module](references/invites-module.md) - [database-provision-module](references/database-provision-module.md) -- [namespace-module](references/namespace-module.md) +- [config-secrets-module](references/config-secrets-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [realtime-module](references/realtime-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) +- [function-invocation-module](references/function-invocation-module.md) +- [function-module](references/function-module.md) +- [invites-module](references/invites-module.md) +- [namespace-module](references/namespace-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [notifications-module](references/notifications-module.md) - [plans-module](references/plans-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [profiles-module](references/profiles-module.md) +- [db-usage-module](references/db-usage-module.md) +- [hierarchy-module](references/hierarchy-module.md) - [permissions-module](references/permissions-module.md) +- [notifications-module](references/notifications-module.md) +- [profiles-module](references/profiles-module.md) +- [billing-module](references/billing-module.md) - [relation-provision](references/relation-provision.md) -- [function-module](references/function-module.md) - [user-auth-module](references/user-auth-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) - [memberships-module](references/memberships-module.md) +- [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) - [events-module](references/events-module.md) -- [entity-type-provision](references/entity-type-provision.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) diff --git a/.agents/skills/hooks-modules/references/agent-module.md b/.agents/skills/hooks-modules/references/agent-module.md index 76bf2577fc..779dec4564 100644 --- a/.agents/skills/hooks-modules/references/agent-module.md +++ b/.agents/skills/hooks-modules/references/agent-module.md @@ -7,8 +7,8 @@ React Query hooks for AgentModule data operations ## Usage ```typescript -useAgentModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } } }) -useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } } }) +useAgentModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) +useAgentModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } } }) useCreateAgentModuleMutation({ selection: { fields: { id: true } } }) useUpdateAgentModuleMutation({ selection: { fields: { id: true } } }) useDeleteAgentModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteAgentModuleMutation({}) ```typescript const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAgentModulesQuery({ const { mutate } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/billing-module.md b/.agents/skills/hooks-modules/references/billing-module.md index ccb75ca7d6..ea9bba54ad 100644 --- a/.agents/skills/hooks-modules/references/billing-module.md +++ b/.agents/skills/hooks-modules/references/billing-module.md @@ -7,8 +7,8 @@ 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) useDeleteBillingModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteBillingModuleMutation({}) ```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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useBillingModulesQuery({ const { mutate } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/compute-log-module.md b/.agents/skills/hooks-modules/references/compute-log-module.md index e94765f1f6..d706a10173 100644 --- a/.agents/skills/hooks-modules/references/compute-log-module.md +++ b/.agents/skills/hooks-modules/references/compute-log-module.md @@ -7,8 +7,8 @@ React Query hooks for ComputeLogModule data operations ## Usage ```typescript -useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useComputeLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useComputeLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateComputeLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteComputeLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteComputeLogModuleMutation({}) ```typescript const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useComputeLogModulesQuery({ const { mutate } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/config-secrets-module.md b/.agents/skills/hooks-modules/references/config-secrets-module.md index ab2ced4336..b47d2ce099 100644 --- a/.agents/skills/hooks-modules/references/config-secrets-module.md +++ b/.agents/skills/hooks-modules/references/config-secrets-module.md @@ -9,8 +9,8 @@ Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level ( ## Usage ```typescript -useConfigSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) -useConfigSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) +useConfigSecretsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) +useConfigSecretsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } } }) useCreateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) useUpdateConfigSecretsModuleMutation({ selection: { fields: { id: true } } }) useDeleteConfigSecretsModuleMutation({}) @@ -22,7 +22,7 @@ useDeleteConfigSecretsModuleMutation({}) ```typescript const { data, isLoading } = useConfigSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, }); ``` @@ -32,5 +32,5 @@ const { data, isLoading } = useConfigSecretsModulesQuery({ const { mutate } = useCreateConfigSecretsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/db-usage-module.md b/.agents/skills/hooks-modules/references/db-usage-module.md index a7d2fd7842..f22cffa460 100644 --- a/.agents/skills/hooks-modules/references/db-usage-module.md +++ b/.agents/skills/hooks-modules/references/db-usage-module.md @@ -7,8 +7,8 @@ React Query hooks for DbUsageModule data operations ## Usage ```typescript -useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } } }) -useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } } }) +useDbUsageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useDbUsageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useUpdateDbUsageModuleMutation({ selection: { fields: { id: true } } }) useDeleteDbUsageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteDbUsageModuleMutation({}) ```typescript const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useDbUsageModulesQuery({ const { mutate } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/entity-type-provision.md b/.agents/skills/hooks-modules/references/entity-type-provision.md index ed4222c7c6..34bc5a38a7 100644 --- a/.agents/skills/hooks-modules/references/entity-type-provision.md +++ b/.agents/skills/hooks-modules/references/entity-type-provision.md @@ -14,8 +14,8 @@ Provisions a new membership entity type. Each INSERT creates an entity table, re ## Usage ```typescript -useEntityTypeProvisionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) -useEntityTypeProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) +useEntityTypeProvisionsQuery({ selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) +useEntityTypeProvisionQuery({ id: '', selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } } }) useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) useUpdateEntityTypeProvisionMutation({ selection: { fields: { id: true } } }) useDeleteEntityTypeProvisionMutation({}) @@ -27,7 +27,7 @@ useDeleteEntityTypeProvisionMutation({}) ```typescript const { data, isLoading } = useEntityTypeProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, }); ``` @@ -37,5 +37,5 @@ const { data, isLoading } = useEntityTypeProvisionsQuery({ const { mutate } = useCreateEntityTypeProvisionMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +mutate({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/events-module.md b/.agents/skills/hooks-modules/references/events-module.md index aa809df311..3ce739e438 100644 --- a/.agents/skills/hooks-modules/references/events-module.md +++ b/.agents/skills/hooks-modules/references/events-module.md @@ -7,8 +7,8 @@ React Query hooks for EventsModule data operations ## Usage ```typescript -useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) -useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useEventsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useEventsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateEventsModuleMutation({ selection: { fields: { id: true } } }) useUpdateEventsModuleMutation({ selection: { fields: { id: true } } }) useDeleteEventsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteEventsModuleMutation({}) ```typescript const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useEventsModulesQuery({ const { mutate } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/function-invocation-module.md b/.agents/skills/hooks-modules/references/function-invocation-module.md new file mode 100644 index 0000000000..7d50d11122 --- /dev/null +++ b/.agents/skills/hooks-modules/references/function-invocation-module.md @@ -0,0 +1,34 @@ +# functionInvocationModule + + + +React Query hooks for FunctionInvocationModule data operations + +## Usage + +```typescript +useFunctionInvocationModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionInvocationModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useCreateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) +useUpdateFunctionInvocationModuleMutation({ selection: { fields: { id: true } } }) +useDeleteFunctionInvocationModuleMutation({}) +``` + +## Examples + +### List all functionInvocationModules + +```typescript +const { data, isLoading } = useFunctionInvocationModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); +``` + +### Create a functionInvocationModule + +```typescript +const { mutate } = useCreateFunctionInvocationModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +``` diff --git a/.agents/skills/hooks-modules/references/function-module.md b/.agents/skills/hooks-modules/references/function-module.md index 0b2fc4e060..6f7b7f2f7b 100644 --- a/.agents/skills/hooks-modules/references/function-module.md +++ b/.agents/skills/hooks-modules/references/function-module.md @@ -7,8 +7,8 @@ React Query hooks for FunctionModule data operations ## Usage ```typescript -useFunctionModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) -useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useFunctionModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useFunctionModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateFunctionModuleMutation({ selection: { fields: { id: true } } }) useUpdateFunctionModuleMutation({ selection: { fields: { id: true } } }) useDeleteFunctionModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteFunctionModuleMutation({}) ```typescript const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useFunctionModulesQuery({ const { mutate } = useCreateFunctionModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/graph-module.md b/.agents/skills/hooks-modules/references/graph-module.md index 1e789c6dd0..def0e762c9 100644 --- a/.agents/skills/hooks-modules/references/graph-module.md +++ b/.agents/skills/hooks-modules/references/graph-module.md @@ -7,8 +7,8 @@ React Query hooks for GraphModule data operations ## Usage ```typescript -useGraphModulesQuery({ selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) -useGraphModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } } }) +useGraphModulesQuery({ selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) +useGraphModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } } }) useCreateGraphModuleMutation({ selection: { fields: { id: true } } }) useUpdateGraphModuleMutation({ selection: { fields: { id: true } } }) useDeleteGraphModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteGraphModuleMutation({}) ```typescript const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useGraphModulesQuery({ const { mutate } = useCreateGraphModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }); +mutate({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/hierarchy-module.md b/.agents/skills/hooks-modules/references/hierarchy-module.md index 4cfa08b1e4..648531b64f 100644 --- a/.agents/skills/hooks-modules/references/hierarchy-module.md +++ b/.agents/skills/hooks-modules/references/hierarchy-module.md @@ -7,8 +7,8 @@ React Query hooks for HierarchyModule data operations ## Usage ```typescript -useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) -useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } } }) +useHierarchyModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) +useHierarchyModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } } }) useCreateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useUpdateHierarchyModuleMutation({ selection: { fields: { id: true } } }) useDeleteHierarchyModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteHierarchyModuleMutation({}) ```typescript const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useHierarchyModulesQuery({ const { mutate } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/identity-providers-module.md b/.agents/skills/hooks-modules/references/identity-providers-module.md index 6919e47f4d..114d5b84ed 100644 --- a/.agents/skills/hooks-modules/references/identity-providers-module.md +++ b/.agents/skills/hooks-modules/references/identity-providers-module.md @@ -16,8 +16,8 @@ Entity-aware config row for the identity_providers_module, which provisions a pe ## Usage ```typescript -useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) -useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useIdentityProvidersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) +useIdentityProvidersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } } }) useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) useUpdateIdentityProvidersModuleMutation({ selection: { fields: { id: true } } }) useDeleteIdentityProvidersModuleMutation({}) @@ -29,7 +29,7 @@ useDeleteIdentityProvidersModuleMutation({}) ```typescript const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); ``` @@ -39,5 +39,5 @@ const { data, isLoading } = useIdentityProvidersModulesQuery({ const { mutate } = useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/inference-log-module.md b/.agents/skills/hooks-modules/references/inference-log-module.md index aaa1953f61..e28a33600f 100644 --- a/.agents/skills/hooks-modules/references/inference-log-module.md +++ b/.agents/skills/hooks-modules/references/inference-log-module.md @@ -7,8 +7,8 @@ React Query hooks for InferenceLogModule data operations ## Usage ```typescript -useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useInferenceLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useInferenceLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateInferenceLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteInferenceLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteInferenceLogModuleMutation({}) ```typescript const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useInferenceLogModulesQuery({ const { mutate } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/invites-module.md b/.agents/skills/hooks-modules/references/invites-module.md index edf74095f4..a1d26c7136 100644 --- a/.agents/skills/hooks-modules/references/invites-module.md +++ b/.agents/skills/hooks-modules/references/invites-module.md @@ -7,8 +7,8 @@ React Query hooks for InvitesModule data operations ## Usage ```typescript -useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) -useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) +useInvitesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) +useInvitesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } } }) useCreateInvitesModuleMutation({ selection: { fields: { id: true } } }) useUpdateInvitesModuleMutation({ selection: { fields: { id: true } } }) useDeleteInvitesModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteInvitesModuleMutation({}) ```typescript const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useInvitesModulesQuery({ const { mutate } = useCreateInvitesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/limits-module.md b/.agents/skills/hooks-modules/references/limits-module.md index 18647438aa..9f6d6e9668 100644 --- a/.agents/skills/hooks-modules/references/limits-module.md +++ b/.agents/skills/hooks-modules/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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } } }) +useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/memberships-module.md b/.agents/skills/hooks-modules/references/memberships-module.md index c58dd87bbe..617f4cc989 100644 --- a/.agents/skills/hooks-modules/references/memberships-module.md +++ b/.agents/skills/hooks-modules/references/memberships-module.md @@ -7,8 +7,8 @@ React Query hooks for MembershipsModule data operations ## Usage ```typescript -useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } } }) -useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } } }) +useMembershipsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) +useMembershipsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } } }) useCreateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useUpdateMembershipsModuleMutation({ selection: { fields: { id: true } } }) useDeleteMembershipsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMembershipsModuleMutation({}) ```typescript const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMembershipsModulesQuery({ const { mutate } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/merkle-store-module.md b/.agents/skills/hooks-modules/references/merkle-store-module.md index 0f2eccf66b..407d61ef3e 100644 --- a/.agents/skills/hooks-modules/references/merkle-store-module.md +++ b/.agents/skills/hooks-modules/references/merkle-store-module.md @@ -7,8 +7,8 @@ React Query hooks for MerkleStoreModule data operations ## Usage ```typescript -useMerkleStoreModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } } }) -useMerkleStoreModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } } }) +useMerkleStoreModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } } }) +useMerkleStoreModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } } }) useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useUpdateMerkleStoreModuleMutation({ selection: { fields: { id: true } } }) useDeleteMerkleStoreModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteMerkleStoreModuleMutation({}) ```typescript const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useMerkleStoreModulesQuery({ const { mutate } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/namespace-module.md b/.agents/skills/hooks-modules/references/namespace-module.md index 62edf6fdd0..e9b8e5405d 100644 --- a/.agents/skills/hooks-modules/references/namespace-module.md +++ b/.agents/skills/hooks-modules/references/namespace-module.md @@ -7,8 +7,8 @@ React Query hooks for NamespaceModule data operations ## Usage ```typescript -useNamespaceModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) -useNamespaceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } } }) +useNamespaceModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) +useNamespaceModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } } }) useCreateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useUpdateNamespaceModuleMutation({ selection: { fields: { id: true } } }) useDeleteNamespaceModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNamespaceModuleMutation({}) ```typescript const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNamespaceModulesQuery({ const { mutate } = useCreateNamespaceModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/notifications-module.md b/.agents/skills/hooks-modules/references/notifications-module.md index 35291eac06..ef448261a0 100644 --- a/.agents/skills/hooks-modules/references/notifications-module.md +++ b/.agents/skills/hooks-modules/references/notifications-module.md @@ -7,8 +7,8 @@ React Query hooks for NotificationsModule data operations ## Usage ```typescript -useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } } }) -useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } } }) +useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useNotificationsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } }) useDeleteNotificationsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteNotificationsModuleMutation({}) ```typescript const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({ const { mutate } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/permissions-module.md b/.agents/skills/hooks-modules/references/permissions-module.md index f75fc17352..d04caf4a28 100644 --- a/.agents/skills/hooks-modules/references/permissions-module.md +++ b/.agents/skills/hooks-modules/references/permissions-module.md @@ -7,8 +7,8 @@ React Query hooks for PermissionsModule data operations ## Usage ```typescript -usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) -usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) +usePermissionsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) +usePermissionsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } } }) useCreatePermissionsModuleMutation({ selection: { fields: { id: true } } }) useUpdatePermissionsModuleMutation({ selection: { fields: { id: true } } }) useDeletePermissionsModuleMutation({}) @@ -20,7 +20,7 @@ useDeletePermissionsModuleMutation({}) ```typescript const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePermissionsModulesQuery({ const { mutate } = useCreatePermissionsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/plans-module.md b/.agents/skills/hooks-modules/references/plans-module.md index 28c03c39b5..e013ba2828 100644 --- a/.agents/skills/hooks-modules/references/plans-module.md +++ b/.agents/skills/hooks-modules/references/plans-module.md @@ -7,8 +7,8 @@ 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, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } } }) -usePlansModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +usePlansModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +usePlansModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } } }) useCreatePlansModuleMutation({ selection: { fields: { id: true } } }) useUpdatePlansModuleMutation({ selection: { fields: { id: true } } }) useDeletePlansModuleMutation({}) @@ -20,7 +20,7 @@ useDeletePlansModuleMutation({}) ```typescript const { data, isLoading } = usePlansModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = usePlansModulesQuery({ const { mutate } = useCreatePlansModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/profiles-module.md b/.agents/skills/hooks-modules/references/profiles-module.md index 3a358f185e..b45581e6c5 100644 --- a/.agents/skills/hooks-modules/references/profiles-module.md +++ b/.agents/skills/hooks-modules/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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/rate-limit-meters-module.md b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md index bbf4a1f6cc..ddcab34584 100644 --- a/.agents/skills/hooks-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/hooks-modules/references/rate-limit-meters-module.md @@ -7,8 +7,8 @@ React Query hooks for RateLimitMetersModule data operations ## Usage ```typescript -useRateLimitMetersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } } }) -useRateLimitMetersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } } }) +useRateLimitMetersModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useRateLimitMetersModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) useUpdateRateLimitMetersModuleMutation({ selection: { fields: { id: true } } }) useDeleteRateLimitMetersModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteRateLimitMetersModuleMutation({}) ```typescript const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useRateLimitMetersModulesQuery({ const { mutate } = useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-log-module.md b/.agents/skills/hooks-modules/references/storage-log-module.md index 913c387531..20bd028341 100644 --- a/.agents/skills/hooks-modules/references/storage-log-module.md +++ b/.agents/skills/hooks-modules/references/storage-log-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageLogModule data operations ## Usage ```typescript -useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useStorageLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useStorageLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageLogModuleMutation({}) ```typescript const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageLogModulesQuery({ const { mutate } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/storage-module.md b/.agents/skills/hooks-modules/references/storage-module.md index 3d2e020100..38bc9440e5 100644 --- a/.agents/skills/hooks-modules/references/storage-module.md +++ b/.agents/skills/hooks-modules/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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: 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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/hooks-modules/references/transfer-log-module.md b/.agents/skills/hooks-modules/references/transfer-log-module.md index c0b16afc36..aca4de0536 100644 --- a/.agents/skills/hooks-modules/references/transfer-log-module.md +++ b/.agents/skills/hooks-modules/references/transfer-log-module.md @@ -7,8 +7,8 @@ React Query hooks for TransferLogModule data operations ## Usage ```typescript -useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) -useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useTransferLogModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) +useTransferLogModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } } }) useCreateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useUpdateTransferLogModuleMutation({ selection: { fields: { id: true } } }) useDeleteTransferLogModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteTransferLogModuleMutation({}) ```typescript const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useTransferLogModulesQuery({ const { mutate } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index 49d516efd0..e031dcaad2 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 26 tables and 12 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 30 tables and 12 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 26 tables and 12 custom operations +ORM client for the admin API — provides typed CRUD operations for 30 tables and 12 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the admin API — provides typed CRUD operations for 26 tables an // Import the ORM client import { db } from './orm'; -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, orgPermission, orgMember, appPermissionDefault, orgPermissionDefault, appAdminGrant, ... +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, appPermission, appPermissionDefaultGrant, orgPermission, orgPermissionDefaultPermission, orgPermissionDefaultGrant, orgMember, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -40,10 +40,14 @@ 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) - [app-permission](references/app-permission.md) +- [app-permission-default-grant](references/app-permission-default-grant.md) - [org-permission](references/org-permission.md) +- [org-permission-default-permission](references/org-permission-default-permission.md) +- [org-permission-default-grant](references/org-permission-default-grant.md) - [org-member](references/org-member.md) - [app-permission-default](references/app-permission-default.md) - [org-permission-default](references/org-permission-default.md) +- [app-permission-default-permission](references/app-permission-default-permission.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) - [org-admin-grant](references/org-admin-grant.md) @@ -59,9 +63,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-chart-edge](references/org-chart-edge.md) - [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) -- [app-invite](references/app-invite.md) - [org-membership](references/org-membership.md) - [org-member-profile](references/org-member-profile.md) +- [app-invite](references/app-invite.md) - [org-invite](references/org-invite.md) - [app-permissions-get-padded-mask](references/app-permissions-get-padded-mask.md) - [org-permissions-get-padded-mask](references/org-permissions-get-padded-mask.md) diff --git a/.agents/skills/orm-admin/references/app-invite.md b/.agents/skills/orm-admin/references/app-invite.md index 6e9410ddde..ca4eea5a9e 100644 --- a/.agents/skills/orm-admin/references/app-invite.md +++ b/.agents/skills/orm-admin/references/app-invite.md @@ -9,8 +9,8 @@ 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: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute() -db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.appInvite.create({ data: { channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute() +db.appInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.appInvite.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.appInvite.delete({ where: { id: '' } }).execute() ```typescript const items = await db.appInvite.findMany({ - select: { id: true, email: true } + select: { id: true, channel: true } }).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: '', profileId: '', expiresAt: '' }, + data: { channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/app-permission-default-grant.md b/.agents/skills/orm-admin/references/app-permission-default-grant.md new file mode 100644 index 0000000000..34fa01b3f9 --- /dev/null +++ b/.agents/skills/orm-admin/references/app-permission-default-grant.md @@ -0,0 +1,34 @@ +# appPermissionDefaultGrant + + + +Audit log of permission additions and removals from the defaults bitmask + +## Usage + +```typescript +db.appPermissionDefaultGrant.findMany({ select: { id: true } }).execute() +db.appPermissionDefaultGrant.findOne({ id: '', select: { id: true } }).execute() +db.appPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '' }, select: { id: true } }).execute() +db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute() +db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefaultGrant records + +```typescript +const items = await db.appPermissionDefaultGrant.findMany({ + select: { id: true, permissionId: true } +}).execute(); +``` + +### Create a appPermissionDefaultGrant + +```typescript +const item = await db.appPermissionDefaultGrant.create({ + data: { permissionId: '', isGrant: '', grantorId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/app-permission-default-permission.md b/.agents/skills/orm-admin/references/app-permission-default-permission.md new file mode 100644 index 0000000000..7d62eb36fb --- /dev/null +++ b/.agents/skills/orm-admin/references/app-permission-default-permission.md @@ -0,0 +1,34 @@ +# appPermissionDefaultPermission + + + +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +db.appPermissionDefaultPermission.findMany({ select: { id: true } }).execute() +db.appPermissionDefaultPermission.findOne({ id: '', select: { id: true } }).execute() +db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute() +db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute() +db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appPermissionDefaultPermission records + +```typescript +const items = await db.appPermissionDefaultPermission.findMany({ + select: { id: true, permissionId: true } +}).execute(); +``` + +### Create a appPermissionDefaultPermission + +```typescript +const item = await db.appPermissionDefaultPermission.create({ + data: { permissionId: '' }, + 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 1b03e67831..8c9c5e1dba 100644 --- a/.agents/skills/orm-admin/references/org-invite.md +++ b/.agents/skills/orm-admin/references/org-invite.md @@ -9,8 +9,8 @@ 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() -db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() +db.orgInvite.create({ data: { channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute() db.orgInvite.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.orgInvite.delete({ where: { id: '' } }).execute() ```typescript const items = await db.orgInvite.findMany({ - select: { id: true, email: true } + select: { id: true, channel: true } }).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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, + data: { channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-permission-default-grant.md b/.agents/skills/orm-admin/references/org-permission-default-grant.md new file mode 100644 index 0000000000..380c58732e --- /dev/null +++ b/.agents/skills/orm-admin/references/org-permission-default-grant.md @@ -0,0 +1,34 @@ +# orgPermissionDefaultGrant + + + +Audit log of permission additions and removals from the defaults bitmask + +## Usage + +```typescript +db.orgPermissionDefaultGrant.findMany({ select: { id: true } }).execute() +db.orgPermissionDefaultGrant.findOne({ id: '', select: { id: true } }).execute() +db.orgPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute() +db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefaultGrant records + +```typescript +const items = await db.orgPermissionDefaultGrant.findMany({ + select: { id: true, permissionId: true } +}).execute(); +``` + +### Create a orgPermissionDefaultGrant + +```typescript +const item = await db.orgPermissionDefaultGrant.create({ + data: { permissionId: '', isGrant: '', grantorId: '', entityId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-permission-default-permission.md b/.agents/skills/orm-admin/references/org-permission-default-permission.md new file mode 100644 index 0000000000..befdbb2cb1 --- /dev/null +++ b/.agents/skills/orm-admin/references/org-permission-default-permission.md @@ -0,0 +1,34 @@ +# orgPermissionDefaultPermission + + + +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + +## Usage + +```typescript +db.orgPermissionDefaultPermission.findMany({ select: { id: true } }).execute() +db.orgPermissionDefaultPermission.findOne({ id: '', select: { id: true } }).execute() +db.orgPermissionDefaultPermission.create({ data: { permissionId: '', entityId: '' }, select: { id: true } }).execute() +db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute() +db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgPermissionDefaultPermission records + +```typescript +const items = await db.orgPermissionDefaultPermission.findMany({ + select: { id: true, permissionId: true } +}).execute(); +``` + +### Create a orgPermissionDefaultPermission + +```typescript +const item = await db.orgPermissionDefaultPermission.create({ + data: { permissionId: '', entityId: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-agent/references/agent-message.md b/.agents/skills/orm-agent/references/agent-message.md index 0ed2dc2a7b..d2b179734b 100644 --- a/.agents/skills/orm-agent/references/agent-message.md +++ b/.agents/skills/orm-agent/references/agent-message.md @@ -9,8 +9,8 @@ Message within an agent thread with TextPart/ToolPart jsonb parts ```typescript db.agentMessage.findMany({ select: { id: true } }).execute() db.agentMessage.findOne({ id: '', select: { id: true } }).execute() -db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute() -db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute() +db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.agentMessage.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.agentMessage.delete({ where: { id: '' } }).execute() ```typescript const items = await db.agentMessage.findMany({ - select: { id: true, ownerId: true } + select: { id: true, actorId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.agentMessage.findMany({ ```typescript const item = await db.agentMessage.create({ - data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, + data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-agent/references/agent-task.md b/.agents/skills/orm-agent/references/agent-task.md index 7a1aaf29cb..dbbe6b5c72 100644 --- a/.agents/skills/orm-agent/references/agent-task.md +++ b/.agents/skills/orm-agent/references/agent-task.md @@ -9,8 +9,8 @@ Task within a plan, with ordering and optional approval gates ```typescript db.agentTask.findMany({ select: { id: true } }).execute() db.agentTask.findOne({ id: '', select: { id: true } }).execute() -db.agentTask.create({ data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute() -db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute() +db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute() +db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute() db.agentTask.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.agentTask.delete({ where: { id: '' } }).execute() ```typescript const items = await db.agentTask.findMany({ - select: { id: true, ownerId: true } + select: { id: true, actorId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.agentTask.findMany({ ```typescript const item = await db.agentTask.create({ - data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, + data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/SKILL.md b/.agents/skills/orm-api/SKILL.md index 35fe0dfd6f..4dbef8383a 100644 --- a/.agents/skills/orm-api/SKILL.md +++ b/.agents/skills/orm-api/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-api -description: ORM client for the api API — provides typed CRUD operations for 45 tables and 10 custom operations +description: ORM client for the api API — provides typed CRUD operations for 46 tables and 10 custom operations --- # orm-api -ORM client for the api API — provides typed CRUD operations for 45 tables and 10 custom operations +ORM client for the api API — provides typed CRUD operations for 46 tables and 10 custom operations ## Usage @@ -59,6 +59,7 @@ See the `references/` directory for detailed per-entity API documentation: - [schema-grant](references/schema-grant.md) - [default-privilege](references/default-privilege.md) - [enum](references/enum.md) +- [composite-type](references/composite-type.md) - [api-schema](references/api-schema.md) - [api-module](references/api-module.md) - [domain](references/domain.md) diff --git a/.agents/skills/orm-api/references/check-constraint.md b/.agents/skills/orm-api/references/check-constraint.md index c00c7ff287..a044922fcf 100644 --- a/.agents/skills/orm-api/references/check-constraint.md +++ b/.agents/skills/orm-api/references/check-constraint.md @@ -9,7 +9,7 @@ ORM operations for CheckConstraint records ```typescript db.checkConstraint.findMany({ select: { id: true } }).execute() db.checkConstraint.findOne({ id: '', select: { id: true } }).execute() -db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.checkConstraint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.checkConstraint.findMany({ ```typescript const item = await db.checkConstraint.create({ - data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/composite-type.md b/.agents/skills/orm-api/references/composite-type.md new file mode 100644 index 0000000000..4a6a20601d --- /dev/null +++ b/.agents/skills/orm-api/references/composite-type.md @@ -0,0 +1,34 @@ +# compositeType + + + +ORM operations for CompositeType records + +## Usage + +```typescript +db.compositeType.findMany({ select: { id: true } }).execute() +db.compositeType.findOne({ id: '', select: { id: true } }).execute() +db.compositeType.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.compositeType.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.compositeType.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all compositeType records + +```typescript +const items = await db.compositeType.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a compositeType + +```typescript +const item = await db.compositeType.create({ + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-api/references/enum.md b/.agents/skills/orm-api/references/enum.md index a7a06ae94a..b0344d9619 100644 --- a/.agents/skills/orm-api/references/enum.md +++ b/.agents/skills/orm-api/references/enum.md @@ -9,7 +9,7 @@ ORM operations for Enum records ```typescript db.enum.findMany({ select: { id: true } }).execute() db.enum.findOne({ id: '', select: { id: true } }).execute() -db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.enum.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.enum.findMany({ ```typescript const item = await db.enum.create({ - data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/field.md b/.agents/skills/orm-api/references/field.md index e9f555e20b..7495352970 100644 --- a/.agents/skills/orm-api/references/field.md +++ b/.agents/skills/orm-api/references/field.md @@ -9,7 +9,7 @@ ORM operations for Field records ```typescript db.field.findMany({ select: { id: true } }).execute() db.field.findOne({ id: '', select: { id: true } }).execute() -db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute() +db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }, select: { id: true } }).execute() db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.field.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.field.findMany({ ```typescript const item = await db.field.create({ - data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, + data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/foreign-key-constraint.md b/.agents/skills/orm-api/references/foreign-key-constraint.md index 213fb4e273..0f2c383dee 100644 --- a/.agents/skills/orm-api/references/foreign-key-constraint.md +++ b/.agents/skills/orm-api/references/foreign-key-constraint.md @@ -9,7 +9,7 @@ ORM operations for ForeignKeyConstraint records ```typescript db.foreignKeyConstraint.findMany({ select: { id: true } }).execute() db.foreignKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.foreignKeyConstraint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.foreignKeyConstraint.findMany({ ```typescript const item = await db.foreignKeyConstraint.create({ - data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/index.md b/.agents/skills/orm-api/references/index.md index f996b32ae4..b81305f12c 100644 --- a/.agents/skills/orm-api/references/index.md +++ b/.agents/skills/orm-api/references/index.md @@ -9,7 +9,7 @@ ORM operations for Index records ```typescript db.index.findMany({ select: { id: true } }).execute() db.index.findOne({ id: '', select: { id: true } }).execute() -db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.index.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.index.findMany({ ```typescript const item = await db.index.create({ - data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/policy.md b/.agents/skills/orm-api/references/policy.md index a96ff2dc53..eb98e30b1e 100644 --- a/.agents/skills/orm-api/references/policy.md +++ b/.agents/skills/orm-api/references/policy.md @@ -9,7 +9,7 @@ ORM operations for Policy records ```typescript db.policy.findMany({ select: { id: true } }).execute() db.policy.findOne({ id: '', select: { id: true } }).execute() -db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.policy.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.policy.findMany({ ```typescript const item = await db.policy.create({ - data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/primary-key-constraint.md b/.agents/skills/orm-api/references/primary-key-constraint.md index a8036ef905..ca2ab26df5 100644 --- a/.agents/skills/orm-api/references/primary-key-constraint.md +++ b/.agents/skills/orm-api/references/primary-key-constraint.md @@ -9,7 +9,7 @@ ORM operations for PrimaryKeyConstraint records ```typescript db.primaryKeyConstraint.findMany({ select: { id: true } }).execute() db.primaryKeyConstraint.findOne({ id: '', select: { id: true } }).execute() -db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.primaryKeyConstraint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.primaryKeyConstraint.findMany({ ```typescript const item = await db.primaryKeyConstraint.create({ - data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/schema.md b/.agents/skills/orm-api/references/schema.md index e028a6438f..e91d296af8 100644 --- a/.agents/skills/orm-api/references/schema.md +++ b/.agents/skills/orm-api/references/schema.md @@ -9,7 +9,7 @@ ORM operations for Schema records ```typescript db.schema.findMany({ select: { id: true } }).execute() db.schema.findOne({ id: '', select: { id: true } }).execute() -db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() +db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute() db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.schema.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.schema.findMany({ ```typescript const item = await db.schema.create({ - data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, + data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/spatial-relation.md b/.agents/skills/orm-api/references/spatial-relation.md index c0094eb821..d7e71e1afb 100644 --- a/.agents/skills/orm-api/references/spatial-relation.md +++ b/.agents/skills/orm-api/references/spatial-relation.md @@ -9,7 +9,7 @@ ORM operations for SpatialRelation records ```typescript db.spatialRelation.findMany({ select: { id: true } }).execute() db.spatialRelation.findOne({ id: '', select: { id: true } }).execute() -db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.spatialRelation.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.spatialRelation.findMany({ ```typescript const item = await db.spatialRelation.create({ - data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/table.md b/.agents/skills/orm-api/references/table.md index e10c909b0d..ff12027972 100644 --- a/.agents/skills/orm-api/references/table.md +++ b/.agents/skills/orm-api/references/table.md @@ -9,7 +9,7 @@ ORM operations for Table records ```typescript db.table.findMany({ select: { id: true } }).execute() db.table.findOne({ id: '', select: { id: true } }).execute() -db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute() +db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute() db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.table.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.table.findMany({ ```typescript const item = await db.table.create({ - data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, + data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/trigger.md b/.agents/skills/orm-api/references/trigger.md index ed25868a14..e2d5dc246a 100644 --- a/.agents/skills/orm-api/references/trigger.md +++ b/.agents/skills/orm-api/references/trigger.md @@ -9,7 +9,7 @@ ORM operations for Trigger records ```typescript db.trigger.findMany({ select: { id: true } }).execute() db.trigger.findOne({ id: '', select: { id: true } }).execute() -db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.trigger.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.trigger.findMany({ ```typescript const item = await db.trigger.create({ - data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/unique-constraint.md b/.agents/skills/orm-api/references/unique-constraint.md index 3202c59c00..61f7d92ccb 100644 --- a/.agents/skills/orm-api/references/unique-constraint.md +++ b/.agents/skills/orm-api/references/unique-constraint.md @@ -9,7 +9,7 @@ ORM operations for UniqueConstraint records ```typescript db.uniqueConstraint.findMany({ select: { id: true } }).execute() db.uniqueConstraint.findOne({ id: '', select: { id: true } }).execute() -db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.uniqueConstraint.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.uniqueConstraint.findMany({ ```typescript const item = await db.uniqueConstraint.create({ - data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/view-table.md b/.agents/skills/orm-api/references/view-table.md index cc8dc554c9..7d20e0a848 100644 --- a/.agents/skills/orm-api/references/view-table.md +++ b/.agents/skills/orm-api/references/view-table.md @@ -9,8 +9,8 @@ Junction table linking views to their joined tables for referential integrity ```typescript db.viewTable.findMany({ select: { id: true } }).execute() db.viewTable.findOne({ id: '', select: { id: true } }).execute() -db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() -db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute() +db.viewTable.create({ data: { databaseId: '', viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute() +db.viewTable.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.viewTable.delete({ where: { id: '' } }).execute() ``` @@ -20,7 +20,7 @@ db.viewTable.delete({ where: { id: '' } }).execute() ```typescript const items = await db.viewTable.findMany({ - select: { id: true, viewId: true } + select: { id: true, databaseId: true } }).execute(); ``` @@ -28,7 +28,7 @@ const items = await db.viewTable.findMany({ ```typescript const item = await db.viewTable.create({ - data: { viewId: '', tableId: '', joinOrder: '' }, + data: { databaseId: '', viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-api/references/view.md b/.agents/skills/orm-api/references/view.md index d68d36500a..3c22efb116 100644 --- a/.agents/skills/orm-api/references/view.md +++ b/.agents/skills/orm-api/references/view.md @@ -9,7 +9,7 @@ ORM operations for View records ```typescript db.view.findMany({ select: { id: true } }).execute() db.view.findOne({ id: '', select: { id: true } }).execute() -db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute() +db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute() db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.view.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.view.findMany({ ```typescript const item = await db.view.create({ - data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, + data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index f0d0d3d01a..846cc82899 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 27 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 9 tables and 30 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 9 tables and 27 custom operations +ORM client for the auth API — provides typed CRUD operations for 9 tables and 30 custom operations ## Usage @@ -65,8 +65,11 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-new-user](references/provision-new-user.md) - [reset-password](references/reset-password.md) - [sign-in-cross-origin](references/sign-in-cross-origin.md) +- [sign-in-sms-otp](references/sign-in-sms-otp.md) +- [sign-up-sms](references/sign-up-sms.md) - [sign-up](references/sign-up.md) - [sign-in](references/sign-in.md) +- [link-identity](references/link-identity.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) - [request-cross-origin-token](references/request-cross-origin-token.md) diff --git a/.agents/skills/orm-auth/references/link-identity.md b/.agents/skills/orm-auth/references/link-identity.md new file mode 100644 index 0000000000..c409ae4620 --- /dev/null +++ b/.agents/skills/orm-auth/references/link-identity.md @@ -0,0 +1,19 @@ +# linkIdentity + + + +Execute the linkIdentity mutation + +## Usage + +```typescript +db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute() +``` + +## Examples + +### Run linkIdentity + +```typescript +const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/sign-in-sms-otp.md b/.agents/skills/orm-auth/references/sign-in-sms-otp.md new file mode 100644 index 0000000000..c88cf25227 --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-in-sms-otp.md @@ -0,0 +1,19 @@ +# signInSmsOtp + + + +Execute the signInSmsOtp mutation + +## Usage + +```typescript +db.mutation.signInSmsOtp({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute() +``` + +## Examples + +### Run signInSmsOtp + +```typescript +const result = await db.mutation.signInSmsOtp({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` diff --git a/.agents/skills/orm-auth/references/sign-up-sms.md b/.agents/skills/orm-auth/references/sign-up-sms.md new file mode 100644 index 0000000000..215e76c734 --- /dev/null +++ b/.agents/skills/orm-auth/references/sign-up-sms.md @@ -0,0 +1,19 @@ +# signUpSms + + + +Execute the signUpSms mutation + +## Usage + +```typescript +db.mutation.signUpSms({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute() +``` + +## Examples + +### Run signUpSms + +```typescript +const result = await db.mutation.signUpSms({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` diff --git a/.agents/skills/orm-modules/SKILL.md b/.agents/skills/orm-modules/SKILL.md index 08238a6aea..f7c35458bf 100644 --- a/.agents/skills/orm-modules/SKILL.md +++ b/.agents/skills/orm-modules/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-modules -description: ORM client for the modules API — provides typed CRUD operations for 56 tables and 12 custom operations +description: ORM client for the modules API — provides typed CRUD operations for 57 tables and 12 custom operations --- # orm-modules -ORM client for the modules API — provides typed CRUD operations for 56 tables and 12 custom operations +ORM client for the modules API — provides typed CRUD operations for 57 tables and 12 custom operations ## Usage @@ -54,45 +54,46 @@ See the `references/` directory for detailed per-entity API documentation: - [users-module](references/users-module.md) - [webauthn-credentials-module](references/webauthn-credentials-module.md) - [crypto-addresses-module](references/crypto-addresses-module.md) -- [identity-providers-module](references/identity-providers-module.md) - [denormalized-table-field](references/denormalized-table-field.md) +- [identity-providers-module](references/identity-providers-module.md) - [rls-module](references/rls-module.md) - [blueprint](references/blueprint.md) - [blueprint-template](references/blueprint-template.md) - [blueprint-construction](references/blueprint-construction.md) - [crypto-auth-module](references/crypto-auth-module.md) -- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [sessions-module](references/sessions-module.md) -- [config-secrets-module](references/config-secrets-module.md) +- [secure-table-provision](references/secure-table-provision.md) - [merkle-store-module](references/merkle-store-module.md) - [graph-module](references/graph-module.md) -- [secure-table-provision](references/secure-table-provision.md) -- [invites-module](references/invites-module.md) - [database-provision-module](references/database-provision-module.md) -- [namespace-module](references/namespace-module.md) +- [config-secrets-module](references/config-secrets-module.md) +- [rate-limit-meters-module](references/rate-limit-meters-module.md) - [realtime-module](references/realtime-module.md) - [webauthn-auth-module](references/webauthn-auth-module.md) +- [function-invocation-module](references/function-invocation-module.md) +- [function-module](references/function-module.md) +- [invites-module](references/invites-module.md) +- [namespace-module](references/namespace-module.md) - [compute-log-module](references/compute-log-module.md) - [inference-log-module](references/inference-log-module.md) - [storage-log-module](references/storage-log-module.md) - [transfer-log-module](references/transfer-log-module.md) -- [db-usage-module](references/db-usage-module.md) -- [notifications-module](references/notifications-module.md) - [plans-module](references/plans-module.md) -- [hierarchy-module](references/hierarchy-module.md) -- [billing-module](references/billing-module.md) - [billing-provider-module](references/billing-provider-module.md) -- [profiles-module](references/profiles-module.md) +- [db-usage-module](references/db-usage-module.md) +- [hierarchy-module](references/hierarchy-module.md) - [permissions-module](references/permissions-module.md) +- [notifications-module](references/notifications-module.md) +- [profiles-module](references/profiles-module.md) +- [billing-module](references/billing-module.md) - [relation-provision](references/relation-provision.md) -- [function-module](references/function-module.md) - [user-auth-module](references/user-auth-module.md) - [agent-module](references/agent-module.md) - [limits-module](references/limits-module.md) - [memberships-module](references/memberships-module.md) +- [entity-type-provision](references/entity-type-provision.md) - [storage-module](references/storage-module.md) - [events-module](references/events-module.md) -- [entity-type-provision](references/entity-type-provision.md) - [resolve-blueprint-field](references/resolve-blueprint-field.md) - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [construct-blueprint](references/construct-blueprint.md) diff --git a/.agents/skills/orm-modules/references/agent-module.md b/.agents/skills/orm-modules/references/agent-module.md index dd9c32ea3b..ce3e15aaf9 100644 --- a/.agents/skills/orm-modules/references/agent-module.md +++ b/.agents/skills/orm-modules/references/agent-module.md @@ -9,7 +9,7 @@ ORM operations for AgentModule records ```typescript db.agentModule.findMany({ select: { id: true } }).execute() db.agentModule.findOne({ id: '', select: { id: true } }).execute() -db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }, select: { id: true } }).execute() +db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.agentModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.agentModule.findMany({ ```typescript const item = await db.agentModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/billing-module.md b/.agents/skills/orm-modules/references/billing-module.md index 9b80264333..523505ca8d 100644 --- a/.agents/skills/orm-modules/references/billing-module.md +++ b/.agents/skills/orm-modules/references/billing-module.md @@ -9,7 +9,7 @@ ORM operations for BillingModule records ```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: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.billingModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.billingModule.findMany({ ```typescript const item = await db.billingModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/compute-log-module.md b/.agents/skills/orm-modules/references/compute-log-module.md index 77507642c9..9336f96614 100644 --- a/.agents/skills/orm-modules/references/compute-log-module.md +++ b/.agents/skills/orm-modules/references/compute-log-module.md @@ -9,7 +9,7 @@ ORM operations for ComputeLogModule records ```typescript db.computeLogModule.findMany({ select: { id: true } }).execute() db.computeLogModule.findOne({ id: '', select: { id: true } }).execute() -db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.computeLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.computeLogModule.findMany({ ```typescript const item = await db.computeLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/config-secrets-module.md b/.agents/skills/orm-modules/references/config-secrets-module.md index afdefeb55c..76552d5f33 100644 --- a/.agents/skills/orm-modules/references/config-secrets-module.md +++ b/.agents/skills/orm-modules/references/config-secrets-module.md @@ -11,7 +11,7 @@ Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level ( ```typescript db.configSecretsModule.findMany({ select: { id: true } }).execute() db.configSecretsModule.findOne({ id: '', select: { id: true } }).execute() -db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute() +db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute() db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.configSecretsModule.delete({ where: { id: '' } }).execute() ``` @@ -30,7 +30,7 @@ const items = await db.configSecretsModule.findMany({ ```typescript const item = await db.configSecretsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/db-usage-module.md b/.agents/skills/orm-modules/references/db-usage-module.md index 0e638627f8..1d9a5b06dd 100644 --- a/.agents/skills/orm-modules/references/db-usage-module.md +++ b/.agents/skills/orm-modules/references/db-usage-module.md @@ -9,7 +9,7 @@ ORM operations for DbUsageModule records ```typescript db.dbUsageModule.findMany({ select: { id: true } }).execute() db.dbUsageModule.findOne({ id: '', select: { id: true } }).execute() -db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.dbUsageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.dbUsageModule.findMany({ ```typescript const item = await db.dbUsageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/entity-type-provision.md b/.agents/skills/orm-modules/references/entity-type-provision.md index 4cc98c486c..9d8c8736f9 100644 --- a/.agents/skills/orm-modules/references/entity-type-provision.md +++ b/.agents/skills/orm-modules/references/entity-type-provision.md @@ -16,7 +16,7 @@ Provisions a new membership entity type. Each INSERT creates an entity table, re ```typescript db.entityTypeProvision.findMany({ select: { id: true } }).execute() db.entityTypeProvision.findOne({ id: '', select: { id: true } }).execute() -db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() +db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute() db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.entityTypeProvision.delete({ where: { id: '' } }).execute() ``` @@ -35,7 +35,7 @@ const items = await db.entityTypeProvision.findMany({ ```typescript const item = await db.entityTypeProvision.create({ - data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, + data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/events-module.md b/.agents/skills/orm-modules/references/events-module.md index 21582ac9d5..cdc1d51b6f 100644 --- a/.agents/skills/orm-modules/references/events-module.md +++ b/.agents/skills/orm-modules/references/events-module.md @@ -9,7 +9,7 @@ ORM operations for EventsModule records ```typescript db.eventsModule.findMany({ select: { id: true } }).execute() db.eventsModule.findOne({ id: '', select: { id: true } }).execute() -db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.eventsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.eventsModule.findMany({ ```typescript const item = await db.eventsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/function-invocation-module.md b/.agents/skills/orm-modules/references/function-invocation-module.md new file mode 100644 index 0000000000..a1f66f7ac7 --- /dev/null +++ b/.agents/skills/orm-modules/references/function-invocation-module.md @@ -0,0 +1,34 @@ +# functionInvocationModule + + + +ORM operations for FunctionInvocationModule records + +## Usage + +```typescript +db.functionInvocationModule.findMany({ select: { id: true } }).execute() +db.functionInvocationModule.findOne({ id: '', select: { id: true } }).execute() +db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() +db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.functionInvocationModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all functionInvocationModule records + +```typescript +const items = await db.functionInvocationModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a functionInvocationModule + +```typescript +const item = await db.functionInvocationModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-modules/references/function-module.md b/.agents/skills/orm-modules/references/function-module.md index 2ff69254c5..997fe736ef 100644 --- a/.agents/skills/orm-modules/references/function-module.md +++ b/.agents/skills/orm-modules/references/function-module.md @@ -9,7 +9,7 @@ ORM operations for FunctionModule records ```typescript db.functionModule.findMany({ select: { id: true } }).execute() db.functionModule.findOne({ id: '', select: { id: true } }).execute() -db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.functionModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.functionModule.findMany({ ```typescript const item = await db.functionModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/graph-module.md b/.agents/skills/orm-modules/references/graph-module.md index 71240d73ba..b325b31083 100644 --- a/.agents/skills/orm-modules/references/graph-module.md +++ b/.agents/skills/orm-modules/references/graph-module.md @@ -9,7 +9,7 @@ ORM operations for GraphModule records ```typescript db.graphModule.findMany({ select: { id: true } }).execute() db.graphModule.findOne({ id: '', select: { id: true } }).execute() -db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.graphModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.graphModule.findMany({ ```typescript const item = await db.graphModule.create({ - data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, + data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/hierarchy-module.md b/.agents/skills/orm-modules/references/hierarchy-module.md index d6d344bfff..c87a016fb0 100644 --- a/.agents/skills/orm-modules/references/hierarchy-module.md +++ b/.agents/skills/orm-modules/references/hierarchy-module.md @@ -9,7 +9,7 @@ ORM operations for HierarchyModule records ```typescript db.hierarchyModule.findMany({ select: { id: true } }).execute() db.hierarchyModule.findOne({ id: '', select: { id: true } }).execute() -db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute() +db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute() db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.hierarchyModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.hierarchyModule.findMany({ ```typescript const item = await db.hierarchyModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/identity-providers-module.md b/.agents/skills/orm-modules/references/identity-providers-module.md index 591235ff85..03aa875482 100644 --- a/.agents/skills/orm-modules/references/identity-providers-module.md +++ b/.agents/skills/orm-modules/references/identity-providers-module.md @@ -18,7 +18,7 @@ Entity-aware config row for the identity_providers_module, which provisions a pe ```typescript db.identityProvidersModule.findMany({ select: { id: true } }).execute() db.identityProvidersModule.findOne({ id: '', select: { id: true } }).execute() -db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute() +db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute() db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.identityProvidersModule.delete({ where: { id: '' } }).execute() ``` @@ -37,7 +37,7 @@ const items = await db.identityProvidersModule.findMany({ ```typescript const item = await db.identityProvidersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/inference-log-module.md b/.agents/skills/orm-modules/references/inference-log-module.md index 6f1b9d3c32..2906f034f0 100644 --- a/.agents/skills/orm-modules/references/inference-log-module.md +++ b/.agents/skills/orm-modules/references/inference-log-module.md @@ -9,7 +9,7 @@ ORM operations for InferenceLogModule records ```typescript db.inferenceLogModule.findMany({ select: { id: true } }).execute() db.inferenceLogModule.findOne({ id: '', select: { id: true } }).execute() -db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.inferenceLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.inferenceLogModule.findMany({ ```typescript const item = await db.inferenceLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/invites-module.md b/.agents/skills/orm-modules/references/invites-module.md index 31ee702ec8..405401d640 100644 --- a/.agents/skills/orm-modules/references/invites-module.md +++ b/.agents/skills/orm-modules/references/invites-module.md @@ -9,7 +9,7 @@ ORM operations for InvitesModule records ```typescript db.invitesModule.findMany({ select: { id: true } }).execute() db.invitesModule.findOne({ id: '', select: { id: true } }).execute() -db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.invitesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.invitesModule.findMany({ ```typescript const item = await db.invitesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/limits-module.md b/.agents/skills/orm-modules/references/limits-module.md index 3a4c24fdb7..917b193b4e 100644 --- a/.agents/skills/orm-modules/references/limits-module.md +++ b/.agents/skills/orm-modules/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: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, 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: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/memberships-module.md b/.agents/skills/orm-modules/references/memberships-module.md index 486652042d..d2111d9a01 100644 --- a/.agents/skills/orm-modules/references/memberships-module.md +++ b/.agents/skills/orm-modules/references/memberships-module.md @@ -9,7 +9,7 @@ ORM operations for MembershipsModule records ```typescript db.membershipsModule.findMany({ select: { id: true } }).execute() db.membershipsModule.findOne({ id: '', select: { id: true } }).execute() -db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.membershipsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.membershipsModule.findMany({ ```typescript const item = await db.membershipsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/merkle-store-module.md b/.agents/skills/orm-modules/references/merkle-store-module.md index e64a0f239b..12d4c3baa8 100644 --- a/.agents/skills/orm-modules/references/merkle-store-module.md +++ b/.agents/skills/orm-modules/references/merkle-store-module.md @@ -9,7 +9,7 @@ ORM operations for MerkleStoreModule records ```typescript db.merkleStoreModule.findMany({ select: { id: true } }).execute() db.merkleStoreModule.findOne({ id: '', select: { id: true } }).execute() -db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }, select: { id: true } }).execute() +db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }, select: { id: true } }).execute() db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.merkleStoreModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.merkleStoreModule.findMany({ ```typescript const item = await db.merkleStoreModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/namespace-module.md b/.agents/skills/orm-modules/references/namespace-module.md index a9da479ee3..4a0202accb 100644 --- a/.agents/skills/orm-modules/references/namespace-module.md +++ b/.agents/skills/orm-modules/references/namespace-module.md @@ -9,7 +9,7 @@ ORM operations for NamespaceModule records ```typescript db.namespaceModule.findMany({ select: { id: true } }).execute() db.namespaceModule.findOne({ id: '', select: { id: true } }).execute() -db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute() +db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute() db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.namespaceModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.namespaceModule.findMany({ ```typescript const item = await db.namespaceModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/notifications-module.md b/.agents/skills/orm-modules/references/notifications-module.md index 5b3ddc2e11..a13ba34724 100644 --- a/.agents/skills/orm-modules/references/notifications-module.md +++ b/.agents/skills/orm-modules/references/notifications-module.md @@ -9,7 +9,7 @@ ORM operations for NotificationsModule records ```typescript db.notificationsModule.findMany({ select: { id: true } }).execute() db.notificationsModule.findOne({ id: '', select: { id: true } }).execute() -db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.notificationsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({ ```typescript const item = await db.notificationsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/permissions-module.md b/.agents/skills/orm-modules/references/permissions-module.md index d0475f4e06..c85ccea0b8 100644 --- a/.agents/skills/orm-modules/references/permissions-module.md +++ b/.agents/skills/orm-modules/references/permissions-module.md @@ -9,7 +9,7 @@ ORM operations for PermissionsModule records ```typescript db.permissionsModule.findMany({ select: { id: true } }).execute() db.permissionsModule.findOne({ id: '', select: { id: true } }).execute() -db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.permissionsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.permissionsModule.findMany({ ```typescript const item = await db.permissionsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/plans-module.md b/.agents/skills/orm-modules/references/plans-module.md index 68eaa42072..d51dab6b47 100644 --- a/.agents/skills/orm-modules/references/plans-module.md +++ b/.agents/skills/orm-modules/references/plans-module.md @@ -9,7 +9,7 @@ ORM operations for PlansModule records ```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: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.plansModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.plansModule.findMany({ ```typescript const item = await db.plansModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/profiles-module.md b/.agents/skills/orm-modules/references/profiles-module.md index cdce9b15da..02e5602769 100644 --- a/.agents/skills/orm-modules/references/profiles-module.md +++ b/.agents/skills/orm-modules/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: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, 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: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/rate-limit-meters-module.md b/.agents/skills/orm-modules/references/rate-limit-meters-module.md index 244d9a8fe7..5c8f2e2343 100644 --- a/.agents/skills/orm-modules/references/rate-limit-meters-module.md +++ b/.agents/skills/orm-modules/references/rate-limit-meters-module.md @@ -9,7 +9,7 @@ ORM operations for RateLimitMetersModule records ```typescript db.rateLimitMetersModule.findMany({ select: { id: true } }).execute() db.rateLimitMetersModule.findOne({ id: '', select: { id: true } }).execute() -db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.rateLimitMetersModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.rateLimitMetersModule.findMany({ ```typescript const item = await db.rateLimitMetersModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-log-module.md b/.agents/skills/orm-modules/references/storage-log-module.md index 47aab822c9..870539c71b 100644 --- a/.agents/skills/orm-modules/references/storage-log-module.md +++ b/.agents/skills/orm-modules/references/storage-log-module.md @@ -9,7 +9,7 @@ ORM operations for StorageLogModule records ```typescript db.storageLogModule.findMany({ select: { id: true } }).execute() db.storageLogModule.findOne({ id: '', select: { id: true } }).execute() -db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageLogModule.findMany({ ```typescript const item = await db.storageLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/storage-module.md b/.agents/skills/orm-modules/references/storage-module.md index ad3e5375c9..3ab657edbf 100644 --- a/.agents/skills/orm-modules/references/storage-module.md +++ b/.agents/skills/orm-modules/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: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, 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: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-modules/references/transfer-log-module.md b/.agents/skills/orm-modules/references/transfer-log-module.md index 45a9e9b9e3..8507a5cb2e 100644 --- a/.agents/skills/orm-modules/references/transfer-log-module.md +++ b/.agents/skills/orm-modules/references/transfer-log-module.md @@ -9,7 +9,7 @@ ORM operations for TransferLogModule records ```typescript db.transferLogModule.findMany({ select: { id: true } }).execute() db.transferLogModule.findOne({ id: '', select: { id: true } }).execute() -db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() +db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute() db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.transferLogModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.transferLogModule.findMany({ ```typescript const item = await db.transferLogModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/src/.targets b/sdk/constructive-cli/src/.targets new file mode 100644 index 0000000000..bf4de0b16a --- /dev/null +++ b/sdk/constructive-cli/src/.targets @@ -0,0 +1 @@ +["admin","agent","api","auth","modules","objects","usage"] diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index 19e780852e..656c4cf338 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 26 +- **Tables:** 30 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index b812a61b38..db23b5441e 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -29,10 +29,14 @@ csdk auth set-token | `org-get-managers-record` | orgGetManagersRecord CRUD operations | | `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | | `app-permission` | appPermission CRUD operations | +| `app-permission-default-grant` | appPermissionDefaultGrant CRUD operations | | `org-permission` | orgPermission CRUD operations | +| `org-permission-default-permission` | orgPermissionDefaultPermission CRUD operations | +| `org-permission-default-grant` | orgPermissionDefaultGrant CRUD operations | | `org-member` | orgMember CRUD operations | | `app-permission-default` | appPermissionDefault CRUD operations | | `org-permission-default` | orgPermissionDefault CRUD operations | +| `app-permission-default-permission` | appPermissionDefaultPermission CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | | `org-admin-grant` | orgAdminGrant CRUD operations | @@ -48,9 +52,9 @@ csdk auth set-token | `org-chart-edge` | orgChartEdge CRUD operations | | `org-membership-setting` | orgMembershipSetting CRUD operations | | `app-membership` | appMembership CRUD operations | -| `app-invite` | appInvite CRUD operations | | `org-membership` | orgMembership CRUD operations | | `org-member-profile` | orgMemberProfile CRUD operations | +| `app-invite` | appInvite CRUD operations | | `org-invite` | orgInvite CRUD operations | | `app-permissions-get-padded-mask` | appPermissionsGetPaddedMask | | `org-permissions-get-padded-mask` | orgPermissionsGetPaddedMask | @@ -178,6 +182,33 @@ CRUD operations for AppPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` +### `app-permission-default-grant` + +CRUD operations for AppPermissionDefaultGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appPermissionDefaultGrant records | +| `find-first` | Find first matching appPermissionDefaultGrant record | +| `get` | Get a appPermissionDefaultGrant by id | +| `create` | Create a new appPermissionDefaultGrant | +| `update` | Update an existing appPermissionDefaultGrant | +| `delete` | Delete a appPermissionDefaultGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissionId` | UUID | +| `isGrant` | Boolean | +| `grantorId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `permissionId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` + ### `org-permission` CRUD operations for OrgPermission records. @@ -203,6 +234,59 @@ CRUD operations for OrgPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` +### `org-permission-default-permission` + +CRUD operations for OrgPermissionDefaultPermission records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgPermissionDefaultPermission records | +| `find-first` | Find first matching orgPermissionDefaultPermission record | +| `get` | Get a orgPermissionDefaultPermission by id | +| `create` | Create a new orgPermissionDefaultPermission | +| `update` | Update an existing orgPermissionDefaultPermission | +| `delete` | Delete a orgPermissionDefaultPermission | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissionId` | UUID | +| `entityId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `permissionId`, `entityId` + +### `org-permission-default-grant` + +CRUD operations for OrgPermissionDefaultGrant records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgPermissionDefaultGrant records | +| `find-first` | Find first matching orgPermissionDefaultGrant record | +| `get` | Get a orgPermissionDefaultGrant by id | +| `create` | Create a new orgPermissionDefaultGrant | +| `update` | Update an existing orgPermissionDefaultGrant | +| `delete` | Delete a orgPermissionDefaultGrant | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissionId` | UUID | +| `isGrant` | Boolean | +| `grantorId` | UUID | +| `entityId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `permissionId`, `entityId` +**Optional create fields (backend defaults):** `isGrant`, `grantorId` + ### `org-member` CRUD operations for OrgMember records. @@ -274,6 +358,30 @@ CRUD operations for OrgPermissionDefault records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `permissions` +### `app-permission-default-permission` + +CRUD operations for AppPermissionDefaultPermission records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appPermissionDefaultPermission records | +| `find-first` | Find first matching appPermissionDefaultPermission record | +| `get` | Get a appPermissionDefaultPermission by id | +| `create` | Create a new appPermissionDefaultPermission | +| `update` | Update an existing appPermissionDefaultPermission | +| `delete` | Delete a appPermissionDefaultPermission | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissionId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Required create fields:** `permissionId` + ### `app-admin-grant` CRUD operations for AppAdminGrant records. @@ -298,8 +406,7 @@ CRUD operations for AppAdminGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Optional create fields (backend defaults):** `isGrant`, `actorId`, `grantorId` ### `app-owner-grant` @@ -325,8 +432,7 @@ CRUD operations for AppOwnerGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Optional create fields (backend defaults):** `isGrant`, `actorId`, `grantorId` ### `org-admin-grant` @@ -353,8 +459,8 @@ CRUD operations for OrgAdminGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `isGrant`, `actorId`, `grantorId` ### `org-owner-grant` @@ -381,8 +487,8 @@ CRUD operations for OrgOwnerGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `isGrant`, `actorId`, `grantorId` ### `org-chart-edge-grant` @@ -492,8 +598,7 @@ CRUD operations for AppGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `actorId`, `grantorId` ### `app-membership-default` @@ -604,8 +709,8 @@ CRUD operations for OrgGrant records. | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `permissions`, `isGrant`, `grantorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `permissions`, `isGrant`, `actorId`, `grantorId` ### `org-chart-edge` @@ -708,39 +813,6 @@ CRUD operations for AppMembership records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` -### `app-invite` - -CRUD operations for AppInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appInvite records | -| `find-first` | Find first matching appInvite record | -| `get` | Get a appInvite by id | -| `create` | Create a new appInvite | -| `update` | Update an existing appInvite | -| `delete` | Delete a appInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `email` | Email | -| `senderId` | UUID | -| `inviteToken` | String | -| `inviteValid` | Boolean | -| `inviteLimit` | Int | -| `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`, `profileId`, `expiresAt` - ### `org-membership` CRUD operations for OrgMembership records. @@ -812,6 +884,41 @@ CRUD operations for OrgMemberProfile records. **Required create fields:** `membershipId`, `entityId`, `actorId` **Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` +### `app-invite` + +CRUD operations for AppInvite records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appInvite records | +| `find-first` | Find first matching appInvite record | +| `get` | Get a appInvite by id | +| `create` | Create a new appInvite | +| `update` | Update an existing appInvite | +| `delete` | Delete a appInvite | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `channel` | String | +| `email` | Email | +| `phone` | String | +| `senderId` | UUID | +| `inviteToken` | String | +| `inviteValid` | Boolean | +| `inviteLimit` | Int | +| `inviteCount` | Int | +| `multiple` | Boolean | +| `data` | JSON | +| `profileId` | UUID | +| `expiresAt` | Datetime | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | + +**Optional create fields (backend defaults):** `channel`, `email`, `phone`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` + ### `org-invite` CRUD operations for OrgInvite records. @@ -830,7 +937,9 @@ CRUD operations for OrgInvite records. | Field | Type | |-------|------| | `id` | UUID | +| `channel` | String | | `email` | Email | +| `phone` | String | | `senderId` | UUID | | `receiverId` | UUID | | `inviteToken` | String | @@ -847,7 +956,7 @@ CRUD operations for OrgInvite records. | `entityId` | UUID | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `isReadOnly`, `expiresAt` +**Optional create fields (backend defaults):** `channel`, `email`, `phone`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `isReadOnly`, `expiresAt` ## Custom Operations diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index 88ab8b820e..ec0aa96f81 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -9,10 +9,14 @@ import authCmd from './commands/auth'; import orgGetManagersRecordCmd from './commands/org-get-managers-record'; import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; import appPermissionCmd from './commands/app-permission'; +import appPermissionDefaultGrantCmd from './commands/app-permission-default-grant'; import orgPermissionCmd from './commands/org-permission'; +import orgPermissionDefaultPermissionCmd from './commands/org-permission-default-permission'; +import orgPermissionDefaultGrantCmd from './commands/org-permission-default-grant'; import orgMemberCmd from './commands/org-member'; import appPermissionDefaultCmd from './commands/app-permission-default'; import orgPermissionDefaultCmd from './commands/org-permission-default'; +import appPermissionDefaultPermissionCmd from './commands/app-permission-default-permission'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; import orgAdminGrantCmd from './commands/org-admin-grant'; @@ -28,9 +32,9 @@ import orgGrantCmd from './commands/org-grant'; import orgChartEdgeCmd from './commands/org-chart-edge'; import orgMembershipSettingCmd from './commands/org-membership-setting'; import appMembershipCmd from './commands/app-membership'; -import appInviteCmd from './commands/app-invite'; import orgMembershipCmd from './commands/org-membership'; import orgMemberProfileCmd from './commands/org-member-profile'; +import appInviteCmd from './commands/app-invite'; import orgInviteCmd from './commands/org-invite'; import appPermissionsGetPaddedMaskCmd from './commands/app-permissions-get-padded-mask'; import orgPermissionsGetPaddedMaskCmd from './commands/org-permissions-get-padded-mask'; @@ -57,10 +61,14 @@ const createCommandMap: () => Record< 'org-get-managers-record': orgGetManagersRecordCmd, 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, 'app-permission': appPermissionCmd, + 'app-permission-default-grant': appPermissionDefaultGrantCmd, 'org-permission': orgPermissionCmd, + 'org-permission-default-permission': orgPermissionDefaultPermissionCmd, + 'org-permission-default-grant': orgPermissionDefaultGrantCmd, 'org-member': orgMemberCmd, 'app-permission-default': appPermissionDefaultCmd, 'org-permission-default': orgPermissionDefaultCmd, + 'app-permission-default-permission': appPermissionDefaultPermissionCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, 'org-admin-grant': orgAdminGrantCmd, @@ -76,9 +84,9 @@ const createCommandMap: () => Record< 'org-chart-edge': orgChartEdgeCmd, 'org-membership-setting': orgMembershipSettingCmd, 'app-membership': appMembershipCmd, - 'app-invite': appInviteCmd, 'org-membership': orgMembershipCmd, 'org-member-profile': orgMemberProfileCmd, + 'app-invite': appInviteCmd, 'org-invite': orgInviteCmd, 'app-permissions-get-padded-mask': appPermissionsGetPaddedMaskCmd, 'org-permissions-get-padded-mask': orgPermissionsGetPaddedMaskCmd, @@ -94,7 +102,7 @@ const createCommandMap: () => Record< '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 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 org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite 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-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n app-invite appInvite CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-invite orgInvite 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 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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\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 app-permission-default-grant appPermissionDefaultGrant CRUD operations\n org-permission orgPermission CRUD operations\n org-permission-default-permission orgPermissionDefaultPermission CRUD operations\n org-permission-default-grant orgPermissionDefaultGrant CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-permission-default-permission appPermissionDefaultPermission CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite 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-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-invite appInvite CRUD operations\n org-invite orgInvite 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 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 submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\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-admin-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-admin-grant.ts index 3003d188c6..18a5f4bc9e 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-admin-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-admin-grant.ts @@ -170,7 +170,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -233,6 +234,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts index ea2461614a..0d893090fa 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-grant.ts @@ -181,7 +181,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -250,6 +251,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', 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 46ada6b221..d4b8dfb530 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts @@ -17,7 +17,9 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', + channel: 'string', email: 'string', + phone: 'string', senderId: 'uuid', inviteToken: 'string', inviteValid: 'boolean', @@ -82,7 +84,9 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, + channel: true, email: true, + phone: true, senderId: true, inviteToken: true, inviteValid: true, @@ -115,7 +119,9 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, + channel: true, email: true, + phone: true, senderId: true, inviteToken: true, inviteValid: true, @@ -160,7 +166,9 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, inviteToken: true, inviteValid: true, @@ -187,6 +195,13 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'channel', + message: 'channel', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'email', @@ -194,6 +209,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'phone', + message: 'phone', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'senderId', @@ -264,7 +286,9 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.appInvite .create({ data: { + channel: cleanedData.channel, email: cleanedData.email, + phone: cleanedData.phone, senderId: cleanedData.senderId, inviteToken: cleanedData.inviteToken, inviteValid: cleanedData.inviteValid, @@ -277,7 +301,9 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, inviteToken: true, inviteValid: true, @@ -310,6 +336,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'channel', + message: 'channel', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'email', @@ -317,6 +350,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'phone', + message: 'phone', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'senderId', @@ -390,7 +430,9 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + channel: cleanedData.channel, email: cleanedData.email, + phone: cleanedData.phone, senderId: cleanedData.senderId, inviteToken: cleanedData.inviteToken, inviteValid: cleanedData.inviteValid, @@ -403,7 +445,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, inviteToken: true, inviteValid: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-owner-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-owner-grant.ts index 991b3093e2..cc13e8fef3 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-owner-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-owner-grant.ts @@ -170,7 +170,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -233,6 +234,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts new file mode 100644 index 0000000000..72231f343b --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-grant.ts @@ -0,0 +1,315 @@ +/** + * CLI commands for AppPermissionDefaultGrant + * @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 { + CreateAppPermissionDefaultGrantInput, + AppPermissionDefaultGrantPatch, + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + permissionId: 'uuid', + isGrant: 'boolean', + grantorId: 'uuid', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\napp-permission-default-grant \n\nCommands:\n list List appPermissionDefaultGrant records\n find-first Find first matching appPermissionDefaultGrant record\n get Get a appPermissionDefaultGrant by ID\n create Create a new appPermissionDefaultGrant\n update Update an existing appPermissionDefaultGrant\n delete Delete a appPermissionDefaultGrant\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + permissionId: true, + isGrant: true, + grantorId: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + > & { + select: AppPermissionDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appPermissionDefaultGrant.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, + permissionId: true, + isGrant: true, + grantorId: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + > & { + select: AppPermissionDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appPermissionDefaultGrant.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.appPermissionDefaultGrant + .findOne({ + id: answers.id as string, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant']; + const client = getClient(); + const result = await client.appPermissionDefaultGrant + .create({ + data: { + permissionId: cleanedData.permissionId, + isGrant: cleanedData.isGrant, + grantorId: cleanedData.grantorId, + }, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: false, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultGrantPatch; + const client = getClient(); + const result = await client.appPermissionDefaultGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + permissionId: cleanedData.permissionId, + isGrant: cleanedData.isGrant, + grantorId: cleanedData.grantorId, + }, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + createdAt: true, + updatedAt: 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.appPermissionDefaultGrant + .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/app-permission-default-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts new file mode 100644 index 0000000000..0ae4d6ef1b --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/app-permission-default-permission.ts @@ -0,0 +1,271 @@ +/** + * CLI commands for AppPermissionDefaultPermission + * @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 { + CreateAppPermissionDefaultPermissionInput, + AppPermissionDefaultPermissionPatch, + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + permissionId: 'uuid', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\napp-permission-default-permission \n\nCommands:\n list List appPermissionDefaultPermission records\n find-first Find first matching appPermissionDefaultPermission record\n get Get a appPermissionDefaultPermission by ID\n create Create a new appPermissionDefaultPermission\n update Update an existing appPermissionDefaultPermission\n delete Delete a appPermissionDefaultPermission\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + permissionId: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: AppPermissionDefaultPermissionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appPermissionDefaultPermission.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, + permissionId: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: AppPermissionDefaultPermissionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appPermissionDefaultPermission.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.appPermissionDefaultPermission + .findOne({ + id: answers.id as string, + select: { + id: true, + permissionId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission']; + const client = getClient(); + const result = await client.appPermissionDefaultPermission + .create({ + data: { + permissionId: cleanedData.permissionId, + }, + select: { + id: true, + permissionId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AppPermissionDefaultPermissionPatch; + const client = getClient(); + const result = await client.appPermissionDefaultPermission + .update({ + where: { + id: answers.id as string, + }, + data: { + permissionId: cleanedData.permissionId, + }, + select: { + id: true, + permissionId: true, + createdAt: true, + updatedAt: 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.appPermissionDefaultPermission + .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-admin-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-admin-grant.ts index 8f04cd1b16..587d9d2b17 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-admin-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-admin-grant.ts @@ -174,7 +174,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -245,6 +246,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts index 2c0b87d49f..770bc6391b 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-grant.ts @@ -185,7 +185,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -262,6 +263,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', 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 5c124a8802..1782a084df 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts @@ -17,7 +17,9 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', + channel: 'string', email: 'string', + phone: 'string', senderId: 'uuid', receiverId: 'uuid', inviteToken: 'string', @@ -85,7 +87,9 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, + channel: true, email: true, + phone: true, senderId: true, receiverId: true, inviteToken: true, @@ -121,7 +125,9 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, + channel: true, email: true, + phone: true, senderId: true, receiverId: true, inviteToken: true, @@ -169,7 +175,9 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, receiverId: true, inviteToken: true, @@ -199,6 +207,13 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'channel', + message: 'channel', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'email', @@ -206,6 +221,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'phone', + message: 'phone', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'senderId', @@ -296,7 +318,9 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.orgInvite .create({ data: { + channel: cleanedData.channel, email: cleanedData.email, + phone: cleanedData.phone, senderId: cleanedData.senderId, receiverId: cleanedData.receiverId, inviteToken: cleanedData.inviteToken, @@ -312,7 +336,9 @@ async function handleCreate(argv: Partial>, prompter: In }, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, receiverId: true, inviteToken: true, @@ -348,6 +374,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'channel', + message: 'channel', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'email', @@ -355,6 +388,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'phone', + message: 'phone', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'senderId', @@ -448,7 +488,9 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + channel: cleanedData.channel, email: cleanedData.email, + phone: cleanedData.phone, senderId: cleanedData.senderId, receiverId: cleanedData.receiverId, inviteToken: cleanedData.inviteToken, @@ -464,7 +506,9 @@ async function handleUpdate(argv: Partial>, prompter: In }, select: { id: true, + channel: true, email: true, + phone: true, senderId: true, receiverId: true, inviteToken: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-owner-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-owner-grant.ts index 2d7d763e39..dffc6a79d8 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-owner-grant.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-owner-grant.ts @@ -174,7 +174,8 @@ async function handleCreate(argv: Partial>, prompter: In type: 'text', name: 'actorId', message: 'actorId', - required: true, + required: false, + skipPrompt: true, }, { type: 'text', @@ -245,6 +246,7 @@ async function handleUpdate(argv: Partial>, prompter: In name: 'actorId', message: 'actorId', required: false, + skipPrompt: true, }, { type: 'text', diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts new file mode 100644 index 0000000000..be66c356e9 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-grant.ts @@ -0,0 +1,335 @@ +/** + * CLI commands for OrgPermissionDefaultGrant + * @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 { + CreateOrgPermissionDefaultGrantInput, + OrgPermissionDefaultGrantPatch, + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + permissionId: 'uuid', + isGrant: 'boolean', + grantorId: 'uuid', + entityId: 'uuid', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\norg-permission-default-grant \n\nCommands:\n list List orgPermissionDefaultGrant records\n find-first Find first matching orgPermissionDefaultGrant record\n get Get a orgPermissionDefaultGrant by ID\n create Create a new orgPermissionDefaultGrant\n update Update an existing orgPermissionDefaultGrant\n delete Delete a orgPermissionDefaultGrant\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + permissionId: true, + isGrant: true, + grantorId: true, + entityId: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + > & { + select: OrgPermissionDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgPermissionDefaultGrant.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, + permissionId: true, + isGrant: true, + grantorId: true, + entityId: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + > & { + select: OrgPermissionDefaultGrantSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgPermissionDefaultGrant.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.orgPermissionDefaultGrant + .findOne({ + id: answers.id as string, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + entityId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: true, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant']; + const client = getClient(); + const result = await client.orgPermissionDefaultGrant + .create({ + data: { + permissionId: cleanedData.permissionId, + isGrant: cleanedData.isGrant, + grantorId: cleanedData.grantorId, + entityId: cleanedData.entityId, + }, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + entityId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: false, + }, + { + type: 'boolean', + name: 'isGrant', + message: 'isGrant', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'grantorId', + message: 'grantorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultGrantPatch; + const client = getClient(); + const result = await client.orgPermissionDefaultGrant + .update({ + where: { + id: answers.id as string, + }, + data: { + permissionId: cleanedData.permissionId, + isGrant: cleanedData.isGrant, + grantorId: cleanedData.grantorId, + entityId: cleanedData.entityId, + }, + select: { + id: true, + permissionId: true, + isGrant: true, + grantorId: true, + entityId: true, + createdAt: true, + updatedAt: 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.orgPermissionDefaultGrant + .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-permission-default-permission.ts b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts new file mode 100644 index 0000000000..44ee563b61 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-permission-default-permission.ts @@ -0,0 +1,291 @@ +/** + * CLI commands for OrgPermissionDefaultPermission + * @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 { + CreateOrgPermissionDefaultPermissionInput, + OrgPermissionDefaultPermissionPatch, + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + permissionId: 'uuid', + entityId: 'uuid', + createdAt: 'string', + updatedAt: 'string', +}; +const usage = + '\norg-permission-default-permission \n\nCommands:\n list List orgPermissionDefaultPermission records\n find-first Find first matching orgPermissionDefaultPermission record\n get Get a orgPermissionDefaultPermission by ID\n create Create a new orgPermissionDefaultPermission\n update Update an existing orgPermissionDefaultPermission\n delete Delete a orgPermissionDefaultPermission\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + permissionId: true, + entityId: true, + createdAt: true, + updatedAt: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: OrgPermissionDefaultPermissionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgPermissionDefaultPermission.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, + permissionId: true, + entityId: true, + createdAt: true, + updatedAt: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: OrgPermissionDefaultPermissionSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgPermissionDefaultPermission.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.orgPermissionDefaultPermission + .findOne({ + id: answers.id as string, + select: { + id: true, + permissionId: true, + entityId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission']; + const client = getClient(); + const result = await client.orgPermissionDefaultPermission + .create({ + data: { + permissionId: cleanedData.permissionId, + entityId: cleanedData.entityId, + }, + select: { + id: true, + permissionId: true, + entityId: true, + createdAt: true, + updatedAt: 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: 'permissionId', + message: 'permissionId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgPermissionDefaultPermissionPatch; + const client = getClient(); + const result = await client.orgPermissionDefaultPermission + .update({ + where: { + id: answers.id as string, + }, + data: { + permissionId: cleanedData.permissionId, + entityId: cleanedData.entityId, + }, + select: { + id: true, + permissionId: true, + entityId: true, + createdAt: true, + updatedAt: 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.orgPermissionDefaultPermission + .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/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index 027e84fff8..12c2f3924a 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -24,10 +24,14 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | +| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | @@ -43,9 +47,9 @@ const db = createClient({ | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -143,6 +147,40 @@ const updated = await db.appPermission.update({ where: { id: '' }, data: { const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultGrant` + +CRUD operations for AppPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultGrant records +const items = await db.appPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgPermission` CRUD operations for OrgPermission records. @@ -176,6 +214,74 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.orgPermissionDefaultPermission` + +CRUD operations for OrgPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultPermission records +const items = await db.orgPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultPermission.create({ data: { permissionId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefaultGrant` + +CRUD operations for OrgPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultGrant records +const items = await db.orgPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMember` CRUD operations for OrgMember records. @@ -269,6 +375,38 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultPermission` + +CRUD operations for AppPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultPermission records +const items = await db.appPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + ### `db.appAdminGrant` CRUD operations for AppAdminGrant records. @@ -810,47 +948,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, 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, 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: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgMembership` CRUD operations for OrgMembership records. @@ -936,6 +1033,49 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` +### `db.appInvite` + +CRUD operations for AppInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `channel` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, channel: true, email: true, phone: 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, channel: true, email: true, phone: 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: { channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -945,7 +1085,9 @@ CRUD operations for OrgInvite records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `channel` | String | Yes | | `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | | `senderId` | UUID | Yes | | `receiverId` | UUID | Yes | | `inviteToken` | String | Yes | @@ -965,16 +1107,16 @@ 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index 4fdc6e95eb..8edef10eaf 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -8,10 +8,14 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; +import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; import { OrgPermissionModel } from './models/orgPermission'; +import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; +import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; @@ -27,9 +31,9 @@ import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -69,10 +73,14 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), + appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), orgPermission: new OrgPermissionModel(client), + orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(client), + orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), orgAdminGrant: new OrgAdminGrantModel(client), @@ -88,9 +96,9 @@ export function createClient(config: OrmClientConfig) { orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), - appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index c06ff000a6..21cb74af02 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -254,6 +254,17 @@ export interface AppPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface AppPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; @@ -266,6 +277,29 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface OrgPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + /** Scopes this default permission to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface OrgPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -290,12 +324,20 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface AppPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -306,7 +348,7 @@ export interface AppOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -317,7 +359,7 @@ export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this admin grant applies to */ entityId?: string | null; @@ -330,7 +372,7 @@ export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; @@ -392,7 +434,7 @@ export interface AppGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -442,7 +484,7 @@ export interface OrgGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this permission grant applies to */ entityId?: string | null; @@ -521,32 +563,6 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - 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; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -603,10 +619,44 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + 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; +} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; - /** Email address of the invited recipient */ + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; /** User ID of the member who sent this invitation */ senderId?: string | null; /** User ID of the intended recipient, if targeting a specific user */ @@ -648,11 +698,29 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} +export interface AppPermissionRelations { + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; + appPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface AppPermissionDefaultGrantRelations { + permission?: AppPermission | null; +} +export interface OrgPermissionRelations { + orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; + orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface OrgPermissionDefaultPermissionRelations { + permission?: OrgPermission | null; +} +export interface OrgPermissionDefaultGrantRelations { + permission?: OrgPermission | null; +} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} +export interface AppPermissionDefaultPermissionRelations { + permission?: AppPermission | null; +} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} export interface OrgAdminGrantRelations {} @@ -668,13 +736,13 @@ export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} export interface AppMembershipRelations {} -export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } +export interface AppInviteRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -682,12 +750,20 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; +export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & + AppPermissionDefaultGrantRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & + OrgPermissionDefaultPermissionRelations; +export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & + OrgPermissionDefaultGrantRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & + AppPermissionDefaultPermissionRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; @@ -706,9 +782,9 @@ export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -725,6 +801,26 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + appPermissionDefaultPermissionByPermissionId?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultGrantsByPermissionId?: { + select: AppPermissionDefaultGrantSelect; + first?: number; + filter?: AppPermissionDefaultGrantFilter; + orderBy?: AppPermissionDefaultGrantOrderBy[]; + }; +}; +export type AppPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; }; export type OrgPermissionSelect = { id?: boolean; @@ -732,6 +828,40 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + orgPermissionDefaultPermissionsByPermissionId?: { + select: OrgPermissionDefaultPermissionSelect; + first?: number; + filter?: OrgPermissionDefaultPermissionFilter; + orderBy?: OrgPermissionDefaultPermissionOrderBy[]; + }; + orgPermissionDefaultGrantsByPermissionId?: { + select: OrgPermissionDefaultGrantSelect; + first?: number; + filter?: OrgPermissionDefaultGrantFilter; + orderBy?: OrgPermissionDefaultGrantOrderBy[]; + }; +}; +export type OrgPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; +}; +export type OrgPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; }; export type OrgMemberSelect = { id?: boolean; @@ -748,6 +878,15 @@ export type OrgPermissionDefaultSelect = { permissions?: boolean; entityId?: boolean; }; +export type AppPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; +}; export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -899,21 +1038,6 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -953,9 +1077,28 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; +export type AppInviteSelect = { + id?: boolean; + channel?: boolean; + email?: boolean; + phone?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgInviteSelect = { id?: boolean; + channel?: boolean; email?: boolean; + phone?: boolean; senderId?: boolean; receiverId?: boolean; inviteToken?: boolean; @@ -1003,6 +1146,36 @@ export interface AppPermissionFilter { or?: AppPermissionFilter[]; /** Negates the expression. */ not?: AppPermissionFilter; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } export interface OrgPermissionFilter { /** Filter by the object’s `id` field. */ @@ -1021,6 +1194,58 @@ export interface OrgPermissionFilter { or?: OrgPermissionFilter[]; /** Negates the expression. */ not?: OrgPermissionFilter; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; } export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -1064,6 +1289,24 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1422,38 +1665,6 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - 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. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1534,15 +1745,17 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgInviteFilter { +export interface AppInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -1555,37 +1768,75 @@ export interface OrgInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** 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; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppInviteFilter; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + 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 `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; @@ -1603,6 +1854,22 @@ export type AppPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type AppPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1617,6 +1884,38 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type OrgPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1647,6 +1946,18 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1949,36 +2260,6 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; -export type 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'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2045,14 +2326,52 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_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'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -2146,6 +2465,28 @@ export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultGrantInput { + clientMutationId?: string; + appPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + }; +} +export interface AppPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; +} +export interface UpdateAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; +} +export interface DeleteAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgPermissionInput { clientMutationId?: string; orgPermission: { @@ -2170,6 +2511,50 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + orgPermissionDefaultPermission: { + permissionId: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPermissionPatch { + permissionId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; +} +export interface DeleteOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + orgPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; +} +export interface DeleteOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -2230,11 +2615,29 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + appPermissionDefaultPermission: { + permissionId: string; + }; +} +export interface AppPermissionDefaultPermissionPatch { + permissionId?: string | null; +} +export interface UpdateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; +} +export interface DeleteAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2256,7 +2659,7 @@ export interface CreateAppOwnerGrantInput { clientMutationId?: string; appOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2278,7 +2681,7 @@ export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2302,7 +2705,7 @@ export interface CreateOrgOwnerGrantInput { clientMutationId?: string; orgOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2405,7 +2808,7 @@ export interface CreateAppGrantInput { appGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2501,7 +2904,7 @@ export interface CreateOrgGrantInput { orgGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2628,42 +3031,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { @@ -2743,10 +3110,52 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + channel?: string; + email?: ConstructiveInternalTypeEmail; + phone?: string; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; + }; +} +export interface AppInvitePatch { + channel?: string | null; + email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + expiresAt?: string | null; +} +export interface UpdateAppInviteInput { + clientMutationId?: string; + id: string; + appInvitePatch: AppInvitePatch; +} +export interface DeleteAppInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { + channel?: string; email?: ConstructiveInternalTypeEmail; + phone?: string; senderId?: string; receiverId?: string; inviteToken?: string; @@ -2762,7 +3171,9 @@ export interface CreateOrgInviteInput { }; } export interface OrgInvitePatch { + channel?: string | null; email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; senderId?: string | null; receiverId?: string | null; inviteToken?: string | null; @@ -2786,7 +3197,15 @@ export interface DeleteOrgInviteInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + AppPermission: { + appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', + }, + OrgPermission: { + orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', + orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { clientMutationId?: string; @@ -2805,6 +3224,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionToManyAppPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: AppPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: AppPermissionDefaultGrantFilter; +} +/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultPermissionFilter; +} +/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultGrantFilter; +} +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -2882,40 +3363,790 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { +/** 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; +} +/** An input for mutations affecting `AppPermissionDefaultGrant` */ +export interface AppPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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 `OrgPermissionDefaultPermission` */ +export interface OrgPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + /** Scopes this default permission to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgPermissionDefaultGrant` */ +export interface OrgPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgMember` */ +export interface OrgMemberInput { + id?: string; + /** Whether this member has admin privileges */ + isAdmin?: boolean; + /** References the user who is a member */ + actorId: string; + /** References the entity (org or group) this member belongs to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefaultPermission` */ +export interface AppPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; + /** 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?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} +/** An input for mutations affecting `AppClaimedInvite` */ +export interface AppClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; +} +/** 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; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope: 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 `AppGrant` */ +export interface AppGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** 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; +} +/** An input for mutations affecting `OrgClaimedInvite` */ +export interface OrgClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; + entityId: string; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} +/** 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; +} +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { + 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; + /** 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 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; + profileId?: string; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { + 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; +} +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** 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; +} +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** 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; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** 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). */ + 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; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Not included in the specified list. */ + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; +} +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** 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; +} +/** 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; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** 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; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface 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.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; +} +/** 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). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; + equalTo?: string; /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; + notEqualTo?: string; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; + distinctFrom?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: string; /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; + in?: string[]; /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; + notIn?: string[]; /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: string; /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: string; +} +/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ @@ -3039,6 +4270,51 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +export interface CreateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was created by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type CreateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type UpdateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type DeleteAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgPermissionPayload { clientMutationId?: string | null; /** The `OrgPermission` that was created by this mutation. */ @@ -3084,6 +4360,96 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type CreateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type CreateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type UpdateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type DeleteOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ @@ -3219,6 +4585,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was created by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type CreateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type UpdateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type DeleteAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -3894,51 +5305,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; export interface CreateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ @@ -4029,6 +5395,51 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type CreateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type UpdateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type DeleteAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -4115,6 +5526,42 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `AppPermissionDefaultGrant` edge in the connection. */ +export interface AppPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `AppPermissionDefaultGrant` at the end of the edge. */ + node?: AppPermissionDefaultGrant | null; +} +export type AppPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultGrantSelect; + }; +}; +/** A `OrgPermissionDefaultPermission` edge in the connection. */ +export interface OrgPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultPermission` at the end of the edge. */ + node?: OrgPermissionDefaultPermission | null; +} +export type OrgPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultPermissionSelect; + }; +}; +/** A `OrgPermissionDefaultGrant` edge in the connection. */ +export interface OrgPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultGrant` at the end of the edge. */ + node?: OrgPermissionDefaultGrant | null; +} +export type OrgPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultGrantSelect; + }; +}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -4151,6 +5598,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `AppPermissionDefaultPermission` edge in the connection. */ +export interface AppPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `AppPermissionDefaultPermission` at the end of the edge. */ + node?: AppPermissionDefaultPermission | null; +} +export type AppPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultPermissionSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -4331,18 +5790,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { cursor?: string | null; @@ -4367,6 +5814,18 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts new file mode 100644 index 0000000000..6915611884 --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * AppPermissionDefaultGrant 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 { + AppPermissionDefaultGrant, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, + CreateAppPermissionDefaultGrantInput, + UpdateAppPermissionDefaultGrantInput, + AppPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + 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, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultGrant', + 'createAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.data, + 'CreateAppPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'createAppPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultGrant', + 'updateAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultGrantInput', + 'id', + 'appPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'updateAppPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultGrant', + 'deleteAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'deleteAppPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts new file mode 100644 index 0000000000..eeee28fadd --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/appPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * AppPermissionDefaultPermission 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 { + AppPermissionDefaultPermission, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, + CreateAppPermissionDefaultPermissionInput, + UpdateAppPermissionDefaultPermissionInput, + AppPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + 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, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultPermission', + 'createAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.data, + 'CreateAppPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'createAppPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultPermission', + 'updateAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultPermissionInput', + 'id', + 'appPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'updateAppPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultPermission', + 'deleteAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'deleteAppPermissionDefaultPermission', + 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 3580afbcaf..7900e01085 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -6,10 +6,14 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; +export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; export { OrgPermissionModel } from './orgPermission'; +export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; +export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; export { OrgAdminGrantModel } from './orgAdminGrant'; @@ -25,7 +29,7 @@ export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts new file mode 100644 index 0000000000..2f1a709be3 --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * OrgPermissionDefaultGrant 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 { + OrgPermissionDefaultGrant, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, + CreateOrgPermissionDefaultGrantInput, + UpdateOrgPermissionDefaultGrantInput, + OrgPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + 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, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultGrant', + 'createOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.data, + 'CreateOrgPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'createOrgPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultGrant', + 'updateOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultGrantInput', + 'id', + 'orgPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'updateOrgPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultGrant', + 'deleteOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'deleteOrgPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts new file mode 100644 index 0000000000..7c898408dc --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * OrgPermissionDefaultPermission 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 { + OrgPermissionDefaultPermission, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, + CreateOrgPermissionDefaultPermissionInput, + UpdateOrgPermissionDefaultPermissionInput, + OrgPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + 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, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultPermission', + 'createOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.data, + 'CreateOrgPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'createOrgPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultPermission', + 'updateOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultPermissionInput', + 'id', + 'orgPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'updateOrgPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultPermission', + 'deleteOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'deleteOrgPermissionDefaultPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/agent/cli/README.md b/sdk/constructive-cli/src/agent/cli/README.md index 70ef45c9aa..b50c3f3940 100644 --- a/sdk/constructive-cli/src/agent/cli/README.md +++ b/sdk/constructive-cli/src/agent/cli/README.md @@ -197,14 +197,15 @@ CRUD operations for AgentMessage records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `ownerId` | UUID | +| `actorId` | UUID | | `parts` | JSON | | `threadId` | UUID | | `authorRole` | String | | `model` | String | +| `agentId` | UUID | **Required create fields:** `threadId`, `authorRole` -**Optional create fields (backend defaults):** `ownerId`, `parts`, `model` +**Optional create fields (backend defaults):** `actorId`, `parts`, `model`, `agentId` ### `agent-task` @@ -226,7 +227,7 @@ CRUD operations for AgentTask records. | `id` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | -| `ownerId` | UUID | +| `actorId` | UUID | | `status` | String | | `planId` | UUID | | `description` | String | @@ -240,7 +241,7 @@ CRUD operations for AgentTask records. | `approvalFeedback` | String | **Required create fields:** `planId`, `description` -**Optional create fields (backend defaults):** `ownerId`, `status`, `source`, `error`, `orderIndex`, `requiresApproval`, `approvalStatus`, `approvedBy`, `approvedAt`, `approvalFeedback` +**Optional create fields (backend defaults):** `actorId`, `status`, `source`, `error`, `orderIndex`, `requiresApproval`, `approvalStatus`, `approvedBy`, `approvedAt`, `approvalFeedback` ### `agent-prompt` diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts index 5770836964..9ad2641cd5 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-message.ts @@ -19,11 +19,12 @@ const fieldSchema: FieldSchema = { id: 'uuid', createdAt: 'string', updatedAt: 'string', - ownerId: 'uuid', + actorId: 'uuid', parts: 'json', threadId: 'uuid', authorRole: 'string', model: 'string', + agentId: 'uuid', }; 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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -79,11 +80,12 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, parts: true, threadId: true, authorRole: true, model: true, + agentId: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -107,11 +109,12 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, parts: true, threadId: true, authorRole: true, model: true, + agentId: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -147,11 +150,12 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, parts: true, threadId: true, authorRole: true, model: true, + agentId: true, }, }) .execute(); @@ -169,8 +173,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'ownerId', - message: 'ownerId', + name: 'actorId', + message: 'actorId', required: false, skipPrompt: true, }, @@ -200,6 +204,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -210,21 +221,23 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.agentMessage .create({ data: { - ownerId: cleanedData.ownerId, + actorId: cleanedData.actorId, parts: cleanedData.parts, threadId: cleanedData.threadId, authorRole: cleanedData.authorRole, model: cleanedData.model, + agentId: cleanedData.agentId, }, select: { id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, parts: true, threadId: true, authorRole: true, model: true, + agentId: true, }, }) .execute(); @@ -248,8 +261,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'ownerId', - message: 'ownerId', + name: 'actorId', + message: 'actorId', required: false, skipPrompt: true, }, @@ -279,6 +292,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'agentId', + message: 'agentId', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; @@ -289,21 +309,23 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - ownerId: cleanedData.ownerId, + actorId: cleanedData.actorId, parts: cleanedData.parts, threadId: cleanedData.threadId, authorRole: cleanedData.authorRole, model: cleanedData.model, + agentId: cleanedData.agentId, }, select: { id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, parts: true, threadId: true, authorRole: true, model: true, + agentId: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts index 1d9487250a..6c5f7120e8 100644 --- a/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts +++ b/sdk/constructive-cli/src/agent/cli/commands/agent-task.ts @@ -19,7 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', createdAt: 'string', updatedAt: 'string', - ownerId: 'uuid', + actorId: 'uuid', status: 'string', planId: 'uuid', description: 'string', @@ -86,7 +86,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, status: true, planId: true, description: true, @@ -121,7 +121,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, status: true, planId: true, description: true, @@ -168,7 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, status: true, planId: true, description: true, @@ -197,8 +197,8 @@ async function handleCreate(argv: Partial>, prompter: In const rawAnswers = await prompter.prompt(argv, [ { type: 'text', - name: 'ownerId', - message: 'ownerId', + name: 'actorId', + message: 'actorId', required: false, skipPrompt: true, }, @@ -284,7 +284,7 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.agentTask .create({ data: { - ownerId: cleanedData.ownerId, + actorId: cleanedData.actorId, status: cleanedData.status, planId: cleanedData.planId, description: cleanedData.description, @@ -301,7 +301,7 @@ async function handleCreate(argv: Partial>, prompter: In id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, status: true, planId: true, description: true, @@ -336,8 +336,8 @@ async function handleUpdate(argv: Partial>, prompter: In }, { type: 'text', - name: 'ownerId', - message: 'ownerId', + name: 'actorId', + message: 'actorId', required: false, skipPrompt: true, }, @@ -426,7 +426,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { - ownerId: cleanedData.ownerId, + actorId: cleanedData.actorId, status: cleanedData.status, planId: cleanedData.planId, description: cleanedData.description, @@ -443,7 +443,7 @@ async function handleUpdate(argv: Partial>, prompter: In id: true, createdAt: true, updatedAt: true, - ownerId: true, + actorId: true, status: true, planId: true, description: true, diff --git a/sdk/constructive-cli/src/agent/cli/embedder.ts b/sdk/constructive-cli/src/agent/cli/embedder.ts index 71b00bf103..dfd92fb46d 100644 --- a/sdk/constructive-cli/src/agent/cli/embedder.ts +++ b/sdk/constructive-cli/src/agent/cli/embedder.ts @@ -3,8 +3,6 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import OllamaClient from '@agentic-kit/ollama'; - // ─── Types ─────────────────────────────────────────────────────────────────── export type EmbedderFunction = (text: string) => Promise; @@ -24,8 +22,22 @@ function createOllamaEmbedder( baseUrl: string = 'http://localhost:11434', model: string = 'nomic-embed-text' ): EmbedderFunction { - const client = new OllamaClient(baseUrl); + let clientP: + | Promise<{ + generateEmbedding: (text: string, model: string) => Promise<{ embedding: number[] }>; + }> + | undefined; return async (text: string): Promise => { + if (!clientP) { + clientP = import('@agentic-kit/ollama') + .then((m) => new m.default(baseUrl)) + .catch(() => { + throw new Error( + 'The ollama embedder requires @agentic-kit/ollama. Install it: npm i @agentic-kit/ollama' + ); + }); + } + const client = await clientP; const result = await client.generateEmbedding(text, model); return result.embedding; }; diff --git a/sdk/constructive-cli/src/agent/orm/README.md b/sdk/constructive-cli/src/agent/orm/README.md index 61b29a99f5..b8063a2d31 100644 --- a/sdk/constructive-cli/src/agent/orm/README.md +++ b/sdk/constructive-cli/src/agent/orm/README.md @@ -162,26 +162,27 @@ CRUD operations for AgentMessage records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | +| `agentId` | UUID | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); @@ -198,7 +199,7 @@ CRUD operations for AgentTask records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | | `description` | String | Yes | @@ -215,16 +216,16 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-cli/src/agent/orm/input-types.ts b/sdk/constructive-cli/src/agent/orm/input-types.ts index 0e4fdc0c20..dbb8e0c07f 100644 --- a/sdk/constructive-cli/src/agent/orm/input-types.ts +++ b/sdk/constructive-cli/src/agent/orm/input-types.ts @@ -304,8 +304,8 @@ export interface AgentMessage { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this message */ - ownerId?: string | null; + /** User who authored this message */ + actorId?: string | null; /** Message content: TextPart and ToolPart array */ parts?: Record | null; /** Foreign key to agent_thread */ @@ -314,14 +314,16 @@ export interface AgentMessage { authorRole?: string | null; /** LLM model that generated this response */ model?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this task */ - ownerId?: string | null; + /** User who authored this task */ + actorId?: string | null; /** Current status of this task */ status?: string | null; /** Foreign key to agent_plan */ @@ -374,7 +376,7 @@ export interface AgentResourceChunk { updatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ @@ -441,7 +443,7 @@ export interface AgentResource { descriptionTrgmSimilarity?: number | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ bodyTrgmSimilarity?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -465,6 +467,7 @@ export interface AgentRelations { parent?: Agent | null; persona?: AgentPersona | null; agentThreads?: ConnectionResult; + agentMessages?: ConnectionResult; childAgents?: ConnectionResult; } export interface AgentThreadRelations { @@ -476,6 +479,7 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; } export interface AgentMessageRelations { + agent?: Agent | null; thread?: AgentThread | null; } export interface AgentTaskRelations { @@ -545,6 +549,12 @@ export type AgentSelect = { filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; + agentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; childAgents?: { select: AgentSelect; first?: number; @@ -600,11 +610,15 @@ export type AgentMessageSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; parts?: boolean; threadId?: boolean; authorRole?: boolean; model?: boolean; + agentId?: boolean; + agent?: { + select: AgentSelect; + }; thread?: { select: AgentThreadSelect; }; @@ -613,7 +627,7 @@ export type AgentTaskSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; status?: boolean; planId?: boolean; description?: boolean; @@ -781,6 +795,10 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ @@ -855,8 +873,8 @@ export interface AgentMessageFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ @@ -865,12 +883,18 @@ export interface AgentMessageFilter { authorRole?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } @@ -881,8 +905,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1164,8 +1188,8 @@ export type AgentMessageOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' @@ -1173,7 +1197,9 @@ export type AgentMessageOrderBy = | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' - | 'MODEL_DESC'; + | 'MODEL_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC'; export type AgentTaskOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1184,8 +1210,8 @@ export type AgentTaskOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' @@ -1440,19 +1466,21 @@ export interface DeleteAgentThreadInput { export interface CreateAgentMessageInput { clientMutationId?: string; agentMessage: { - ownerId?: string; + actorId?: string; parts?: Record; threadId: string; authorRole: string; model?: string; + agentId?: string; }; } export interface AgentMessagePatch { - ownerId?: string | null; + actorId?: string | null; parts?: Record | null; threadId?: string | null; authorRole?: string | null; model?: string | null; + agentId?: string | null; } export interface UpdateAgentMessageInput { clientMutationId?: string; @@ -1466,7 +1494,7 @@ export interface DeleteAgentMessageInput { export interface CreateAgentTaskInput { clientMutationId?: string; agentTask: { - ownerId?: string; + actorId?: string; status?: string; planId: string; description: string; @@ -1481,7 +1509,7 @@ export interface CreateAgentTaskInput { }; } export interface AgentTaskPatch { - ownerId?: string | null; + actorId?: string | null; status?: string | null; planId?: string | null; description?: string | null; @@ -1644,6 +1672,7 @@ export const connectionFieldsMap = { }, Agent: { agentThreads: 'AgentThread', + agentMessages: 'AgentMessage', childAgents: 'Agent', }, AgentThread: { @@ -1686,6 +1715,15 @@ export interface AgentToManyAgentThreadFilter { /** 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 AgentToManyAgentMessageFilter { + /** 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 `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentFilter { /** Filters to entities where at least one related entity matches. */ @@ -1839,6 +1877,203 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this plan */ + ownerId?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + /** Overall goal or context for this plan */ + description?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Display name for this agent instance */ + name: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this thread */ + ownerId?: string; + /** Current status of this thread */ + status?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Human-readable conversation title */ + title?: string; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Agent instance assigned to this thread */ + agentId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this message */ + actorId?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + /** Who authored this message: user or assistant */ + authorRole: string; + /** LLM model that generated this response */ + model?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this task */ + actorId?: string; + /** Current status of this task */ + status?: string; + /** Foreign key to agent_plan */ + planId: string; + /** Natural-language description of the work to do */ + description: string; + /** Who created the task: agent or user */ + source?: string; + /** Error message captured when the task failed */ + error?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + /** The system prompt template content */ + content: string; + /** What this prompt template is for */ + description?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; +} +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + id?: string; + agentResourceId: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + metadata?: Record; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Display name for this persona */ + name: string; + /** Brief description of this persona role */ + description?: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + /** Whether this persona is available for use */ + isActive?: boolean; +} +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Resource name or title */ + title: string; + /** Brief description of this resource */ + description?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + embedding?: number[]; + embeddingUpdatedAt?: string; +} /** 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 `id` field. */ @@ -1847,8 +2082,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1943,6 +2178,39 @@ export interface AgentThreadFilter { /** `agentPlansByThreadId` exist. */ agentPlansByThreadIdExist?: 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 `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 `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentFilter { /** Filter by the object’s `id` field. */ @@ -1985,38 +2253,15 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: 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 `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; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** 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 `thread` relation. */ - thread?: AgentThreadFilter; -} /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPlanFilter { /** Filter by the object’s `id` field. */ diff --git a/sdk/constructive-cli/src/api/README.md b/sdk/constructive-cli/src/api/README.md index 0baaecb549..e6bc4e49c7 100644 --- a/sdk/constructive-cli/src/api/README.md +++ b/sdk/constructive-cli/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 46 - **Custom queries:** 1 - **Custom mutations:** 9 diff --git a/sdk/constructive-cli/src/api/cli/README.md b/sdk/constructive-cli/src/api/cli/README.md index a9cf495d31..b307d9b7aa 100644 --- a/sdk/constructive-cli/src/api/cli/README.md +++ b/sdk/constructive-cli/src/api/cli/README.md @@ -48,6 +48,7 @@ csdk auth set-token | `schema-grant` | schemaGrant CRUD operations | | `default-privilege` | defaultPrivilege CRUD operations | | `enum` | enum CRUD operations | +| `composite-type` | compositeType CRUD operations | | `api-schema` | apiSchema CRUD operations | | `api-module` | apiModule CRUD operations | | `domain` | domain CRUD operations | @@ -191,7 +192,6 @@ CRUD operations for Schema records. | `description` | String | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `isPublic` | Boolean | @@ -199,7 +199,7 @@ CRUD operations for Schema records. | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `name`, `schemaName` -**Optional create fields (backend defaults):** `label`, `description`, `smartTags`, `category`, `module`, `scope`, `tags`, `isPublic` +**Optional create fields (backend defaults):** `label`, `description`, `smartTags`, `category`, `scope`, `tags`, `isPublic` ### `table` @@ -226,7 +226,6 @@ CRUD operations for Table records. | `description` | String | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `useRls` | Boolean | | `timestamps` | Boolean | @@ -238,12 +237,12 @@ CRUD operations for Table records. | `partitionStrategy` | String | | `partitionKeyNames` | String | | `partitionKeyTypes` | String | -| `inheritsId` | UUID | | `createdAt` | Datetime | | `updatedAt` | Datetime | +| `inheritsId` | UUID | **Required create fields:** `schemaId`, `name` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `module`, `scope`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `category`, `scope`, `useRls`, `timestamps`, `peoplestamps`, `pluralName`, `singularName`, `tags`, `partitioned`, `partitionStrategy`, `partitionKeyNames`, `partitionKeyTypes`, `inheritsId` ### `check-constraint` @@ -271,14 +270,13 @@ CRUD operations for CheckConstraint records. | `expr` | JSON | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `expr`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `expr`, `smartTags`, `category`, `scope`, `tags` ### `field` @@ -316,13 +314,12 @@ CRUD operations for Field records. | `max` | Float | | `tags` | String | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `name`, `type` -**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `apiRequired`, `defaultValue`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category`, `module`, `scope` +**Optional create fields (backend defaults):** `databaseId`, `label`, `description`, `smartTags`, `isRequired`, `apiRequired`, `defaultValue`, `fieldOrder`, `regexp`, `chk`, `chkExpr`, `min`, `max`, `tags`, `category`, `scope` ### `spatial-relation` @@ -351,14 +348,13 @@ CRUD operations for SpatialRelation records. | `operator` | String | | `paramName` | String | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `fieldId`, `refTableId`, `refFieldId`, `name`, `operator` -**Optional create fields (backend defaults):** `databaseId`, `paramName`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `paramName`, `category`, `scope`, `tags` ### `foreign-key-constraint` @@ -390,14 +386,13 @@ CRUD operations for ForeignKeyConstraint records. | `deleteAction` | String | | `updateAction` | String | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `fieldIds`, `refTableId`, `refFieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `deleteAction`, `updateAction`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `deleteAction`, `updateAction`, `category`, `scope`, `tags` ### `full-text-search` @@ -461,14 +456,13 @@ CRUD operations for Index records. | `opClasses` | String | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `databaseId`, `tableId` -**Optional create fields (backend defaults):** `name`, `fieldIds`, `includeFieldIds`, `accessMethod`, `indexParams`, `whereClause`, `isUnique`, `options`, `opClasses`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `name`, `fieldIds`, `includeFieldIds`, `accessMethod`, `indexParams`, `whereClause`, `isUnique`, `options`, `opClasses`, `smartTags`, `category`, `scope`, `tags` ### `policy` @@ -499,14 +493,13 @@ CRUD operations for Policy records. | `data` | JSON | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId` -**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `granteeName`, `privilege`, `permissive`, `disabled`, `policyType`, `data`, `smartTags`, `category`, `scope`, `tags` ### `primary-key-constraint` @@ -533,14 +526,13 @@ CRUD operations for PrimaryKeyConstraint records. | `fieldIds` | UUID | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `type`, `smartTags`, `category`, `scope`, `tags` ### `table-grant` @@ -597,14 +589,13 @@ CRUD operations for Trigger records. | `functionName` | String | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `name` -**Optional create fields (backend defaults):** `databaseId`, `event`, `functionName`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `event`, `functionName`, `smartTags`, `category`, `scope`, `tags` ### `unique-constraint` @@ -632,14 +623,13 @@ CRUD operations for UniqueConstraint records. | `type` | String | | `fieldIds` | UUID | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | | `createdAt` | Datetime | | `updatedAt` | Datetime | **Required create fields:** `tableId`, `fieldIds` -**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `name`, `description`, `smartTags`, `type`, `category`, `scope`, `tags` ### `view` @@ -671,12 +661,11 @@ CRUD operations for View records. | `isReadOnly` | Boolean | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | **Required create fields:** `schemaId`, `name`, `viewType` -**Optional create fields (backend defaults):** `databaseId`, `tableId`, `data`, `filterType`, `filterData`, `securityInvoker`, `isReadOnly`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `databaseId`, `tableId`, `data`, `filterType`, `filterData`, `securityInvoker`, `isReadOnly`, `smartTags`, `category`, `scope`, `tags` ### `view-table` @@ -696,12 +685,13 @@ CRUD operations for ViewTable records. | Field | Type | |-------|------| | `id` | UUID | +| `databaseId` | UUID | | `viewId` | UUID | | `tableId` | UUID | | `joinOrder` | Int | **Required create fields:** `viewId`, `tableId` -**Optional create fields (backend defaults):** `joinOrder` +**Optional create fields (backend defaults):** `databaseId`, `joinOrder` ### `view-grant` @@ -881,12 +871,43 @@ CRUD operations for Enum records. | `values` | String | | `smartTags` | JSON | | `category` | ObjectCategory | -| `module` | String | | `scope` | Int | | `tags` | String | **Required create fields:** `databaseId`, `schemaId`, `name` -**Optional create fields (backend defaults):** `label`, `description`, `values`, `smartTags`, `category`, `module`, `scope`, `tags` +**Optional create fields (backend defaults):** `label`, `description`, `values`, `smartTags`, `category`, `scope`, `tags` + +### `composite-type` + +CRUD operations for CompositeType records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all compositeType records | +| `find-first` | Find first matching compositeType record | +| `get` | Get a compositeType by id | +| `create` | Create a new compositeType | +| `update` | Update an existing compositeType | +| `delete` | Delete a compositeType | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `name` | String | +| `label` | String | +| `description` | String | +| `attributes` | JSON | +| `smartTags` | JSON | +| `category` | ObjectCategory | +| `scope` | Int | +| `tags` | String | + +**Required create fields:** `databaseId`, `schemaId`, `name` +**Optional create fields (backend defaults):** `label`, `description`, `attributes`, `smartTags`, `category`, `scope`, `tags` ### `api-schema` diff --git a/sdk/constructive-cli/src/api/cli/commands.ts b/sdk/constructive-cli/src/api/cli/commands.ts index c6caf4262a..149fd8340f 100644 --- a/sdk/constructive-cli/src/api/cli/commands.ts +++ b/sdk/constructive-cli/src/api/cli/commands.ts @@ -28,6 +28,7 @@ import embeddingChunkCmd from './commands/embedding-chunk'; import schemaGrantCmd from './commands/schema-grant'; import defaultPrivilegeCmd from './commands/default-privilege'; import enumCmd from './commands/enum'; +import compositeTypeCmd from './commands/composite-type'; import apiSchemaCmd from './commands/api-schema'; import apiModuleCmd from './commands/api-module'; import domainCmd from './commands/domain'; @@ -93,6 +94,7 @@ const createCommandMap: () => Record< 'schema-grant': schemaGrantCmd, 'default-privilege': defaultPrivilegeCmd, enum: enumCmd, + 'composite-type': compositeTypeCmd, 'api-schema': apiSchemaCmd, 'api-module': apiModuleCmd, domain: domainCmd, @@ -128,7 +130,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n function function 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 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 cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n ast-migration astMigration CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n provision-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n apply-rls applyRls\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 events/analytics (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 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 function function 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 schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n composite-type compositeType 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 cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n partition partition CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n migrate-file migrateFile CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n database database CRUD operations\n rls-setting rlsSetting CRUD operations\n sql-action sqlAction CRUD operations\n database-setting databaseSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n ast-migration astMigration CRUD operations\n apply-registry-defaults applyRegistryDefaults\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n provision-database-with-user provisionDatabaseWithUser\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n apply-rls applyRls\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 events/analytics (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 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/api/cli/commands/check-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/check-constraint.ts index b5fa67aa38..94dd8756ff 100644 --- a/sdk/constructive-cli/src/api/cli/commands/check-constraint.ts +++ b/sdk/constructive-cli/src/api/cli/commands/check-constraint.ts @@ -25,7 +25,6 @@ const fieldSchema: FieldSchema = { expr: 'json', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -91,7 +90,6 @@ async function handleList(argv: Partial>, _prompter: Inq expr: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -125,7 +123,6 @@ async function handleFindFirst(argv: Partial>, _prompter expr: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -171,7 +168,6 @@ async function handleGet(argv: Partial>, prompter: Inqui expr: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -245,13 +241,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -284,7 +273,6 @@ async function handleCreate(argv: Partial>, prompter: In expr: cleanedData.expr, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -298,7 +286,6 @@ async function handleCreate(argv: Partial>, prompter: In expr: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -378,13 +365,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -417,7 +397,6 @@ async function handleUpdate(argv: Partial>, prompter: In expr: cleanedData.expr, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -431,7 +410,6 @@ async function handleUpdate(argv: Partial>, prompter: In expr: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/composite-type.ts b/sdk/constructive-cli/src/api/cli/commands/composite-type.ts new file mode 100644 index 0000000000..0e3cb06f58 --- /dev/null +++ b/sdk/constructive-cli/src/api/cli/commands/composite-type.ts @@ -0,0 +1,445 @@ +/** + * CLI commands for CompositeType + * @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 { + CreateCompositeTypeInput, + CompositeTypePatch, + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + name: 'string', + label: 'string', + description: 'string', + attributes: 'json', + smartTags: 'json', + category: 'string', + scope: 'int', + tags: 'string', +}; +const usage = + '\ncomposite-type \n\nCommands:\n list List compositeType records\n find-first Find first matching compositeType record\n get Get a compositeType by ID\n create Create a new compositeType\n update Update an existing compositeType\n delete Delete a compositeType\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + name: true, + label: true, + description: true, + attributes: true, + smartTags: true, + category: true, + scope: true, + tags: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: CompositeTypeSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.compositeType.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, + name: true, + label: true, + description: true, + attributes: true, + smartTags: true, + category: true, + scope: true, + tags: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: CompositeTypeSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.compositeType.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.compositeType + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + name: true, + label: true, + description: true, + attributes: true, + smartTags: true, + category: true, + scope: 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: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'attributes', + message: 'attributes', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + 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 CreateCompositeTypeInput['compositeType']; + const client = getClient(); + const result = await client.compositeType + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + name: cleanedData.name, + label: cleanedData.label, + description: cleanedData.description, + attributes: cleanedData.attributes, + smartTags: cleanedData.smartTags, + category: cleanedData.category, + scope: cleanedData.scope, + tags: cleanedData.tags, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + name: true, + label: true, + description: true, + attributes: true, + smartTags: true, + category: true, + scope: 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: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + }, + { + type: 'text', + name: 'label', + message: 'label', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'attributes', + message: 'attributes', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'smartTags', + message: 'smartTags', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + 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 CompositeTypePatch; + const client = getClient(); + const result = await client.compositeType + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + name: cleanedData.name, + label: cleanedData.label, + description: cleanedData.description, + attributes: cleanedData.attributes, + smartTags: cleanedData.smartTags, + category: cleanedData.category, + scope: cleanedData.scope, + tags: cleanedData.tags, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + name: true, + label: true, + description: true, + attributes: true, + smartTags: true, + category: true, + scope: 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: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.compositeType + .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/api/cli/commands/enum.ts b/sdk/constructive-cli/src/api/cli/commands/enum.ts index c7614fbc64..8bbb3f29e0 100644 --- a/sdk/constructive-cli/src/api/cli/commands/enum.ts +++ b/sdk/constructive-cli/src/api/cli/commands/enum.ts @@ -25,7 +25,6 @@ const fieldSchema: FieldSchema = { values: 'string', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', }; @@ -89,7 +88,6 @@ async function handleList(argv: Partial>, _prompter: Inq values: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }; @@ -121,7 +119,6 @@ async function handleFindFirst(argv: Partial>, _prompter values: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }; @@ -165,7 +162,6 @@ async function handleGet(argv: Partial>, prompter: Inqui values: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, @@ -236,13 +232,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -272,7 +261,6 @@ async function handleCreate(argv: Partial>, prompter: In values: cleanedData.values, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -286,7 +274,6 @@ async function handleCreate(argv: Partial>, prompter: In values: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, @@ -363,13 +350,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -402,7 +382,6 @@ async function handleUpdate(argv: Partial>, prompter: In values: cleanedData.values, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -416,7 +395,6 @@ async function handleUpdate(argv: Partial>, prompter: In values: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, diff --git a/sdk/constructive-cli/src/api/cli/commands/field.ts b/sdk/constructive-cli/src/api/cli/commands/field.ts index f0fef6b21b..c6cc3df6fb 100644 --- a/sdk/constructive-cli/src/api/cli/commands/field.ts +++ b/sdk/constructive-cli/src/api/cli/commands/field.ts @@ -35,7 +35,6 @@ const fieldSchema: FieldSchema = { max: 'float', tags: 'string', category: 'string', - module: 'string', scope: 'int', createdAt: 'string', updatedAt: 'string', @@ -110,7 +109,6 @@ async function handleList(argv: Partial>, _prompter: Inq max: true, tags: true, category: true, - module: true, scope: true, createdAt: true, updatedAt: true, @@ -153,7 +151,6 @@ async function handleFindFirst(argv: Partial>, _prompter max: true, tags: true, category: true, - module: true, scope: true, createdAt: true, updatedAt: true, @@ -208,7 +205,6 @@ async function handleGet(argv: Partial>, prompter: Inqui max: true, tags: true, category: true, - module: true, scope: true, createdAt: true, updatedAt: true, @@ -350,13 +346,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -389,7 +378,6 @@ async function handleCreate(argv: Partial>, prompter: In max: cleanedData.max, tags: cleanedData.tags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, }, select: { @@ -412,7 +400,6 @@ async function handleCreate(argv: Partial>, prompter: In max: true, tags: true, category: true, - module: true, scope: true, createdAt: true, updatedAt: true, @@ -560,13 +547,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -602,7 +582,6 @@ async function handleUpdate(argv: Partial>, prompter: In max: cleanedData.max, tags: cleanedData.tags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, }, select: { @@ -625,7 +604,6 @@ async function handleUpdate(argv: Partial>, prompter: In max: true, tags: true, category: true, - module: true, scope: true, createdAt: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts index 20a0932b9d..181927e17f 100644 --- a/sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts +++ b/sdk/constructive-cli/src/api/cli/commands/foreign-key-constraint.ts @@ -29,7 +29,6 @@ const fieldSchema: FieldSchema = { deleteAction: 'string', updateAction: 'string', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -99,7 +98,6 @@ async function handleList(argv: Partial>, _prompter: Inq deleteAction: true, updateAction: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -141,7 +139,6 @@ async function handleFindFirst(argv: Partial>, _prompter deleteAction: true, updateAction: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -195,7 +192,6 @@ async function handleGet(argv: Partial>, prompter: Inqui deleteAction: true, updateAction: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -295,13 +291,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -338,7 +327,6 @@ async function handleCreate(argv: Partial>, prompter: In deleteAction: cleanedData.deleteAction, updateAction: cleanedData.updateAction, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -356,7 +344,6 @@ async function handleCreate(argv: Partial>, prompter: In deleteAction: true, updateAction: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -462,13 +449,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -505,7 +485,6 @@ async function handleUpdate(argv: Partial>, prompter: In deleteAction: cleanedData.deleteAction, updateAction: cleanedData.updateAction, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -523,7 +502,6 @@ async function handleUpdate(argv: Partial>, prompter: In deleteAction: true, updateAction: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/index.ts b/sdk/constructive-cli/src/api/cli/commands/index.ts index 498bd6aa27..c868c4f7cd 100644 --- a/sdk/constructive-cli/src/api/cli/commands/index.ts +++ b/sdk/constructive-cli/src/api/cli/commands/index.ts @@ -30,7 +30,6 @@ const fieldSchema: FieldSchema = { opClasses: 'string', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -101,7 +100,6 @@ async function handleList(argv: Partial>, _prompter: Inq opClasses: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -140,7 +138,6 @@ async function handleFindFirst(argv: Partial>, _prompter opClasses: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -191,7 +188,6 @@ async function handleGet(argv: Partial>, prompter: Inqui opClasses: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -300,13 +296,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -341,7 +330,6 @@ async function handleCreate(argv: Partial>, prompter: In opClasses: cleanedData.opClasses, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -360,7 +348,6 @@ async function handleCreate(argv: Partial>, prompter: In opClasses: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -475,13 +462,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -519,7 +499,6 @@ async function handleUpdate(argv: Partial>, prompter: In opClasses: cleanedData.opClasses, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -538,7 +517,6 @@ async function handleUpdate(argv: Partial>, prompter: In opClasses: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/policy.ts b/sdk/constructive-cli/src/api/cli/commands/policy.ts index 4bdbfa11de..5ed08316e4 100644 --- a/sdk/constructive-cli/src/api/cli/commands/policy.ts +++ b/sdk/constructive-cli/src/api/cli/commands/policy.ts @@ -28,7 +28,6 @@ const fieldSchema: FieldSchema = { data: 'json', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -97,7 +96,6 @@ async function handleList(argv: Partial>, _prompter: Inq data: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -134,7 +132,6 @@ async function handleFindFirst(argv: Partial>, _prompter data: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -183,7 +180,6 @@ async function handleGet(argv: Partial>, prompter: Inqui data: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -279,13 +275,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -318,7 +307,6 @@ async function handleCreate(argv: Partial>, prompter: In data: cleanedData.data, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -335,7 +323,6 @@ async function handleCreate(argv: Partial>, prompter: In data: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -437,13 +424,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -479,7 +459,6 @@ async function handleUpdate(argv: Partial>, prompter: In data: cleanedData.data, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -496,7 +475,6 @@ async function handleUpdate(argv: Partial>, prompter: In data: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts index 49b1f7b556..053a894f70 100644 --- a/sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts +++ b/sdk/constructive-cli/src/api/cli/commands/primary-key-constraint.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { fieldIds: 'uuid', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -89,7 +88,6 @@ async function handleList(argv: Partial>, _prompter: Inq fieldIds: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -126,7 +124,6 @@ async function handleFindFirst(argv: Partial>, _prompter fieldIds: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -175,7 +172,6 @@ async function handleGet(argv: Partial>, prompter: Inqui fieldIds: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -242,13 +238,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -280,7 +269,6 @@ async function handleCreate(argv: Partial>, prompter: In fieldIds: cleanedData.fieldIds, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -293,7 +281,6 @@ async function handleCreate(argv: Partial>, prompter: In fieldIds: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -366,13 +353,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -404,7 +384,6 @@ async function handleUpdate(argv: Partial>, prompter: In fieldIds: cleanedData.fieldIds, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -417,7 +396,6 @@ async function handleUpdate(argv: Partial>, prompter: In fieldIds: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/schema.ts b/sdk/constructive-cli/src/api/cli/commands/schema.ts index 00baad8f93..6eafc21367 100644 --- a/sdk/constructive-cli/src/api/cli/commands/schema.ts +++ b/sdk/constructive-cli/src/api/cli/commands/schema.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { description: 'string', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', isPublic: 'boolean', @@ -90,7 +89,6 @@ async function handleList(argv: Partial>, _prompter: Inq description: true, smartTags: true, category: true, - module: true, scope: true, tags: true, isPublic: true, @@ -124,7 +122,6 @@ async function handleFindFirst(argv: Partial>, _prompter description: true, smartTags: true, category: true, - module: true, scope: true, tags: true, isPublic: true, @@ -170,7 +167,6 @@ async function handleGet(argv: Partial>, prompter: Inqui description: true, smartTags: true, category: true, - module: true, scope: true, tags: true, isPublic: true, @@ -237,13 +233,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -279,7 +268,6 @@ async function handleCreate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, isPublic: cleanedData.isPublic, @@ -293,7 +281,6 @@ async function handleCreate(argv: Partial>, prompter: In description: true, smartTags: true, category: true, - module: true, scope: true, tags: true, isPublic: true, @@ -366,13 +353,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -411,7 +391,6 @@ async function handleUpdate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, isPublic: cleanedData.isPublic, @@ -425,7 +404,6 @@ async function handleUpdate(argv: Partial>, prompter: In description: true, smartTags: true, category: true, - module: true, scope: true, tags: true, isPublic: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts b/sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts index 7b3339f451..1ce6f20d82 100644 --- a/sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts +++ b/sdk/constructive-cli/src/api/cli/commands/spatial-relation.ts @@ -26,7 +26,6 @@ const fieldSchema: FieldSchema = { operator: 'string', paramName: 'string', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -93,7 +92,6 @@ async function handleList(argv: Partial>, _prompter: Inq operator: true, paramName: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -128,7 +126,6 @@ async function handleFindFirst(argv: Partial>, _prompter operator: true, paramName: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -175,7 +172,6 @@ async function handleGet(argv: Partial>, prompter: Inqui operator: true, paramName: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -252,13 +248,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -292,7 +281,6 @@ async function handleCreate(argv: Partial>, prompter: In operator: cleanedData.operator, paramName: cleanedData.paramName, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -307,7 +295,6 @@ async function handleCreate(argv: Partial>, prompter: In operator: true, paramName: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -390,13 +377,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -430,7 +410,6 @@ async function handleUpdate(argv: Partial>, prompter: In operator: cleanedData.operator, paramName: cleanedData.paramName, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -445,7 +424,6 @@ async function handleUpdate(argv: Partial>, prompter: In operator: true, paramName: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/table.ts b/sdk/constructive-cli/src/api/cli/commands/table.ts index ff29f9a0a0..2a91f32717 100644 --- a/sdk/constructive-cli/src/api/cli/commands/table.ts +++ b/sdk/constructive-cli/src/api/cli/commands/table.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { description: 'string', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', useRls: 'boolean', timestamps: 'boolean', @@ -36,9 +35,9 @@ const fieldSchema: FieldSchema = { partitionStrategy: 'string', partitionKeyNames: 'string', partitionKeyTypes: 'string', - inheritsId: 'uuid', createdAt: 'string', updatedAt: 'string', + inheritsId: 'uuid', }; const usage = '\ntable \n\nCommands:\n list List table records\n find-first Find first matching table record\n get Get a table by ID\n create Create a new table\n update Update an existing table\n delete Delete a table\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -99,7 +98,6 @@ async function handleList(argv: Partial>, _prompter: Inq description: true, smartTags: true, category: true, - module: true, scope: true, useRls: true, timestamps: true, @@ -111,9 +109,9 @@ async function handleList(argv: Partial>, _prompter: Inq partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, - inheritsId: true, createdAt: true, updatedAt: true, + inheritsId: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -142,7 +140,6 @@ async function handleFindFirst(argv: Partial>, _prompter description: true, smartTags: true, category: true, - module: true, scope: true, useRls: true, timestamps: true, @@ -154,9 +151,9 @@ async function handleFindFirst(argv: Partial>, _prompter partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, - inheritsId: true, createdAt: true, updatedAt: true, + inheritsId: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -197,7 +194,6 @@ async function handleGet(argv: Partial>, prompter: Inqui description: true, smartTags: true, category: true, - module: true, scope: true, useRls: true, timestamps: true, @@ -209,9 +205,9 @@ async function handleGet(argv: Partial>, prompter: Inqui partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, - inheritsId: true, createdAt: true, updatedAt: true, + inheritsId: true, }, }) .execute(); @@ -274,13 +270,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -379,7 +368,6 @@ async function handleCreate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, useRls: cleanedData.useRls, timestamps: cleanedData.timestamps, @@ -402,7 +390,6 @@ async function handleCreate(argv: Partial>, prompter: In description: true, smartTags: true, category: true, - module: true, scope: true, useRls: true, timestamps: true, @@ -414,9 +401,9 @@ async function handleCreate(argv: Partial>, prompter: In partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, - inheritsId: true, createdAt: true, updatedAt: true, + inheritsId: true, }, }) .execute(); @@ -485,13 +472,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -593,7 +573,6 @@ async function handleUpdate(argv: Partial>, prompter: In description: cleanedData.description, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, useRls: cleanedData.useRls, timestamps: cleanedData.timestamps, @@ -616,7 +595,6 @@ async function handleUpdate(argv: Partial>, prompter: In description: true, smartTags: true, category: true, - module: true, scope: true, useRls: true, timestamps: true, @@ -628,9 +606,9 @@ async function handleUpdate(argv: Partial>, prompter: In partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, - inheritsId: true, createdAt: true, updatedAt: true, + inheritsId: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/api/cli/commands/trigger.ts b/sdk/constructive-cli/src/api/cli/commands/trigger.ts index 5292e2a2b6..53dd4649d8 100644 --- a/sdk/constructive-cli/src/api/cli/commands/trigger.ts +++ b/sdk/constructive-cli/src/api/cli/commands/trigger.ts @@ -24,7 +24,6 @@ const fieldSchema: FieldSchema = { functionName: 'string', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -89,7 +88,6 @@ async function handleList(argv: Partial>, _prompter: Inq functionName: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -122,7 +120,6 @@ async function handleFindFirst(argv: Partial>, _prompter functionName: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -167,7 +164,6 @@ async function handleGet(argv: Partial>, prompter: Inqui functionName: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -234,13 +230,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -269,7 +258,6 @@ async function handleCreate(argv: Partial>, prompter: In functionName: cleanedData.functionName, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -282,7 +270,6 @@ async function handleCreate(argv: Partial>, prompter: In functionName: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -355,13 +342,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -393,7 +373,6 @@ async function handleUpdate(argv: Partial>, prompter: In functionName: cleanedData.functionName, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -406,7 +385,6 @@ async function handleUpdate(argv: Partial>, prompter: In functionName: true, smartTags: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts b/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts index 0c105d5db4..7af9f44223 100644 --- a/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts +++ b/sdk/constructive-cli/src/api/cli/commands/unique-constraint.ts @@ -25,7 +25,6 @@ const fieldSchema: FieldSchema = { type: 'string', fieldIds: 'uuid', category: 'string', - module: 'string', scope: 'int', tags: 'string', createdAt: 'string', @@ -91,7 +90,6 @@ async function handleList(argv: Partial>, _prompter: Inq type: true, fieldIds: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -125,7 +123,6 @@ async function handleFindFirst(argv: Partial>, _prompter type: true, fieldIds: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -171,7 +168,6 @@ async function handleGet(argv: Partial>, prompter: Inqui type: true, fieldIds: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -245,13 +241,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -284,7 +273,6 @@ async function handleCreate(argv: Partial>, prompter: In type: cleanedData.type, fieldIds: cleanedData.fieldIds, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -298,7 +286,6 @@ async function handleCreate(argv: Partial>, prompter: In type: true, fieldIds: true, category: true, - module: true, scope: true, tags: true, createdAt: true, @@ -378,13 +365,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -417,7 +397,6 @@ async function handleUpdate(argv: Partial>, prompter: In type: cleanedData.type, fieldIds: cleanedData.fieldIds, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -431,7 +410,6 @@ async function handleUpdate(argv: Partial>, prompter: In type: true, fieldIds: true, category: true, - module: true, scope: true, tags: true, createdAt: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/view-table.ts b/sdk/constructive-cli/src/api/cli/commands/view-table.ts index f40e91046b..f51d0d4110 100644 --- a/sdk/constructive-cli/src/api/cli/commands/view-table.ts +++ b/sdk/constructive-cli/src/api/cli/commands/view-table.ts @@ -17,6 +17,7 @@ import type { import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; const fieldSchema: FieldSchema = { id: 'uuid', + databaseId: 'uuid', viewId: 'uuid', tableId: 'uuid', joinOrder: 'int', @@ -73,6 +74,7 @@ async function handleList(argv: Partial>, _prompter: Inq try { const defaultSelect = { id: true, + databaseId: true, viewId: true, tableId: true, joinOrder: true, @@ -97,6 +99,7 @@ async function handleFindFirst(argv: Partial>, _prompter try { const defaultSelect = { id: true, + databaseId: true, viewId: true, tableId: true, joinOrder: true, @@ -133,6 +136,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: answers.id as string, select: { id: true, + databaseId: true, viewId: true, tableId: true, joinOrder: true, @@ -151,6 +155,13 @@ async function handleGet(argv: Partial>, prompter: Inqui async function handleCreate(argv: Partial>, prompter: Inquirerer) { try { const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'viewId', @@ -177,12 +188,14 @@ async function handleCreate(argv: Partial>, prompter: In const result = await client.viewTable .create({ data: { + databaseId: cleanedData.databaseId, viewId: cleanedData.viewId, tableId: cleanedData.tableId, joinOrder: cleanedData.joinOrder, }, select: { id: true, + databaseId: true, viewId: true, tableId: true, joinOrder: true, @@ -207,6 +220,13 @@ async function handleUpdate(argv: Partial>, prompter: In message: 'id', required: true, }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'viewId', @@ -236,12 +256,14 @@ async function handleUpdate(argv: Partial>, prompter: In id: answers.id as string, }, data: { + databaseId: cleanedData.databaseId, viewId: cleanedData.viewId, tableId: cleanedData.tableId, joinOrder: cleanedData.joinOrder, }, select: { id: true, + databaseId: true, viewId: true, tableId: true, joinOrder: true, diff --git a/sdk/constructive-cli/src/api/cli/commands/view.ts b/sdk/constructive-cli/src/api/cli/commands/view.ts index 779de11c72..16e297de65 100644 --- a/sdk/constructive-cli/src/api/cli/commands/view.ts +++ b/sdk/constructive-cli/src/api/cli/commands/view.ts @@ -29,7 +29,6 @@ const fieldSchema: FieldSchema = { isReadOnly: 'boolean', smartTags: 'json', category: 'string', - module: 'string', scope: 'int', tags: 'string', }; @@ -97,7 +96,6 @@ async function handleList(argv: Partial>, _prompter: Inq isReadOnly: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }; @@ -133,7 +131,6 @@ async function handleFindFirst(argv: Partial>, _prompter isReadOnly: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }; @@ -181,7 +178,6 @@ async function handleGet(argv: Partial>, prompter: Inqui isReadOnly: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, @@ -280,13 +276,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -320,7 +309,6 @@ async function handleCreate(argv: Partial>, prompter: In isReadOnly: cleanedData.isReadOnly, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -338,7 +326,6 @@ async function handleCreate(argv: Partial>, prompter: In isReadOnly: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, @@ -443,13 +430,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'module', - message: 'module', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'scope', @@ -486,7 +466,6 @@ async function handleUpdate(argv: Partial>, prompter: In isReadOnly: cleanedData.isReadOnly, smartTags: cleanedData.smartTags, category: cleanedData.category, - module: cleanedData.module, scope: cleanedData.scope, tags: cleanedData.tags, }, @@ -504,7 +483,6 @@ async function handleUpdate(argv: Partial>, prompter: In isReadOnly: true, smartTags: true, category: true, - module: true, scope: true, tags: true, }, diff --git a/sdk/constructive-cli/src/api/orm/README.md b/sdk/constructive-cli/src/api/orm/README.md index 8690e7411b..e4f38f7327 100644 --- a/sdk/constructive-cli/src/api/orm/README.md +++ b/sdk/constructive-cli/src/api/orm/README.md @@ -43,6 +43,7 @@ const db = createClient({ | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | +| `compositeType` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -117,7 +118,6 @@ CRUD operations for Schema records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `isPublic` | Boolean | Yes | @@ -128,13 +128,13 @@ CRUD operations for Schema records. ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -159,7 +159,6 @@ CRUD operations for Table records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `useRls` | Boolean | Yes | | `timestamps` | Boolean | Yes | @@ -171,21 +170,21 @@ CRUD operations for Table records. | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | | `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `inheritsId` | UUID | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -211,7 +210,6 @@ CRUD operations for CheckConstraint records. | `expr` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -221,13 +219,13 @@ CRUD operations for CheckConstraint records. ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -263,7 +261,6 @@ CRUD operations for Field records. | `max` | Float | Yes | | `tags` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -272,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -305,7 +302,6 @@ CRUD operations for SpatialRelation records. | `operator` | String | Yes | | `paramName` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -315,13 +311,13 @@ CRUD operations for SpatialRelation records. ```typescript // List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -351,7 +347,6 @@ CRUD operations for ForeignKeyConstraint records. | `deleteAction` | String | Yes | | `updateAction` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -361,13 +356,13 @@ CRUD operations for ForeignKeyConstraint records. ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -436,7 +431,6 @@ CRUD operations for Index records. | `opClasses` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -446,13 +440,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -481,7 +475,6 @@ CRUD operations for Policy records. | `data` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -491,13 +484,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -522,7 +515,6 @@ CRUD operations for PrimaryKeyConstraint records. | `fieldIds` | UUID | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -532,13 +524,13 @@ CRUD operations for PrimaryKeyConstraint records. ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -600,7 +592,6 @@ CRUD operations for Trigger records. | `functionName` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -610,13 +601,13 @@ CRUD operations for Trigger records. ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -642,7 +633,6 @@ CRUD operations for UniqueConstraint records. | `type` | String | Yes | | `fieldIds` | UUID | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -652,13 +642,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -688,7 +678,6 @@ CRUD operations for View records. | `isReadOnly` | Boolean | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -696,13 +685,13 @@ CRUD operations for View records. ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -720,6 +709,7 @@ CRUD operations for ViewTable records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | | `tableId` | UUID | Yes | | `joinOrder` | Int | Yes | @@ -728,16 +718,16 @@ CRUD operations for ViewTable records. ```typescript // List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const items = await db.viewTable.findMany({ select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { databaseId: '', viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); @@ -947,7 +937,6 @@ CRUD operations for Enum records. | `values` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -955,13 +944,13 @@ CRUD operations for Enum records. ```typescript // List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -970,6 +959,45 @@ const updated = await db.enum.update({ where: { id: '' }, data: { database const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` +### `db.compositeType` + +CRUD operations for CompositeType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `attributes` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all compositeType records +const items = await db.compositeType.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.compositeType.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.compositeType.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.compositeType.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.compositeType.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. diff --git a/sdk/constructive-cli/src/api/orm/index.ts b/sdk/constructive-cli/src/api/orm/index.ts index b2161f6fdc..bde4dcc042 100644 --- a/sdk/constructive-cli/src/api/orm/index.ts +++ b/sdk/constructive-cli/src/api/orm/index.ts @@ -27,6 +27,7 @@ import { EmbeddingChunkModel } from './models/embeddingChunk'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; +import { CompositeTypeModel } from './models/compositeType'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -107,6 +108,7 @@ export function createClient(config: OrmClientConfig) { schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), + compositeType: new CompositeTypeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), diff --git a/sdk/constructive-cli/src/api/orm/input-types.ts b/sdk/constructive-cli/src/api/orm/input-types.ts index 8da4e53642..75eb0921a8 100644 --- a/sdk/constructive-cli/src/api/orm/input-types.ts +++ b/sdk/constructive-cli/src/api/orm/input-types.ts @@ -231,7 +231,7 @@ export interface UUIDListFilter { anyGreaterThanOrEqualTo?: string; } // ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +export type ObjectCategory = 'CORE' | 'MODULE' | 'PERMISSIONS' | 'AUTH' | 'MEMBERSHIPS' | 'APP'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeAttachment = unknown; export type ConstructiveInternalTypeHostname = unknown; @@ -254,7 +254,6 @@ export interface Schema { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -270,7 +269,6 @@ export interface Table { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -282,9 +280,9 @@ export interface Table { partitionStrategy?: string | null; partitionKeyNames?: string[] | null; partitionKeyTypes?: string[] | null; - inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; + inheritsId?: string | null; } export interface CheckConstraint { id: string; @@ -296,7 +294,6 @@ export interface CheckConstraint { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -322,7 +319,6 @@ export interface Field { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -338,7 +334,6 @@ export interface SpatialRelation { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -358,7 +353,6 @@ export interface ForeignKeyConstraint { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -391,7 +385,6 @@ export interface Index { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -410,7 +403,6 @@ export interface Policy { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -425,7 +417,6 @@ export interface PrimaryKeyConstraint { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -451,7 +442,6 @@ export interface Trigger { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -467,7 +457,6 @@ export interface UniqueConstraint { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -487,13 +476,13 @@ export interface View { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { id: string; + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -568,7 +557,19 @@ export interface Enum { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface CompositeType { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; scope?: number | null; tags?: string[] | null; } @@ -989,6 +990,7 @@ export interface SchemaRelations { defaultPrivileges?: ConnectionResult; enums?: ConnectionResult; functions?: ConnectionResult; + compositeTypes?: ConnectionResult; apiSchemas?: ConnectionResult; } export interface TableRelations { @@ -1072,6 +1074,7 @@ export interface ViewRelations { viewRules?: ConnectionResult; } export interface ViewTableRelations { + database?: Database | null; table?: Table | null; view?: View | null; } @@ -1102,6 +1105,10 @@ export interface EnumRelations { database?: Database | null; schema?: Schema | null; } +export interface CompositeTypeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1197,6 +1204,7 @@ export interface DatabaseRelations { triggers?: ConnectionResult; uniqueConstraints?: ConnectionResult; views?: ConnectionResult; + viewTables?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; @@ -1205,6 +1213,7 @@ export interface DatabaseRelations { spatialRelations?: ConnectionResult; functions?: ConnectionResult; partitions?: ConnectionResult; + compositeTypes?: ConnectionResult; databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; @@ -1271,6 +1280,7 @@ export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelatio export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; +export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -1316,7 +1326,6 @@ export type SchemaSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; isPublic?: boolean; @@ -1361,6 +1370,12 @@ export type SchemaSelect = { filter?: FunctionFilter; orderBy?: FunctionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -1377,7 +1392,6 @@ export type TableSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; useRls?: boolean; timestamps?: boolean; @@ -1389,9 +1403,9 @@ export type TableSelect = { partitionStrategy?: boolean; partitionKeyNames?: boolean; partitionKeyTypes?: boolean; - inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; + inheritsId?: boolean; database?: { select: DatabaseSelect; }; @@ -1511,7 +1525,6 @@ export type CheckConstraintSelect = { expr?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1543,7 +1556,6 @@ export type FieldSelect = { max?: boolean; tags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1577,7 +1589,6 @@ export type SpatialRelationSelect = { operator?: boolean; paramName?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1612,7 +1623,6 @@ export type ForeignKeyConstraintSelect = { deleteAction?: boolean; updateAction?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1660,7 +1670,6 @@ export type IndexSelect = { opClasses?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1685,7 +1694,6 @@ export type PolicySelect = { data?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1706,7 +1714,6 @@ export type PrimaryKeyConstraintSelect = { fieldIds?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1744,7 +1751,6 @@ export type TriggerSelect = { functionName?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1766,7 +1772,6 @@ export type UniqueConstraintSelect = { type?: boolean; fieldIds?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1792,7 +1797,6 @@ export type ViewSelect = { isReadOnly?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -1825,9 +1829,13 @@ export type ViewSelect = { }; export type ViewTableSelect = { id?: boolean; + databaseId?: boolean; viewId?: boolean; tableId?: boolean; joinOrder?: boolean; + database?: { + select: DatabaseSelect; + }; table?: { select: TableSelect; }; @@ -1941,7 +1949,25 @@ export type EnumSelect = { values?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type CompositeTypeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + attributes?: boolean; + smartTags?: boolean; + category?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -2376,6 +2402,12 @@ export type DatabaseSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; viewGrants?: { select: ViewGrantSelect; first?: number; @@ -2424,6 +2456,12 @@ export type DatabaseSelect = { filter?: PartitionFilter; orderBy?: PartitionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; databaseTransfers?: { select: DatabaseTransferSelect; first?: number; @@ -2674,8 +2712,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2718,6 +2754,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -2740,8 +2780,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -2764,12 +2802,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -2872,8 +2910,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2932,8 +2968,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -2980,8 +3014,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3034,8 +3066,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3118,8 +3148,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3164,8 +3192,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3202,8 +3228,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3270,8 +3294,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3310,8 +3332,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3358,8 +3378,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3394,6 +3412,8 @@ export interface ViewFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -3406,6 +3426,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -3596,8 +3618,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3613,6 +3633,40 @@ export interface EnumFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4204,6 +4258,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -4236,6 +4294,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -4584,8 +4646,6 @@ export type SchemaOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4616,8 +4676,6 @@ export type TableOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'USE_RLS_ASC' @@ -4640,12 +4698,12 @@ export type TableOrderBy = | 'PARTITION_KEY_NAMES_DESC' | 'PARTITION_KEY_TYPES_ASC' | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC'; export type CheckConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -4668,8 +4726,6 @@ export type CheckConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4720,8 +4776,6 @@ export type FieldOrderBy = | 'TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'CREATED_AT_ASC' @@ -4752,8 +4806,6 @@ export type SpatialRelationOrderBy = | 'PARAM_NAME_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4792,8 +4844,6 @@ export type ForeignKeyConstraintOrderBy = | 'UPDATE_ACTION_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4858,8 +4908,6 @@ export type IndexOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4896,8 +4944,6 @@ export type PolicyOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4926,8 +4972,6 @@ export type PrimaryKeyConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4978,8 +5022,6 @@ export type TriggerOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5010,8 +5052,6 @@ export type UniqueConstraintOrderBy = | 'FIELD_IDS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5050,8 +5090,6 @@ export type ViewOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5062,6 +5100,8 @@ export type ViewTableOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' @@ -5204,8 +5244,32 @@ export type EnumOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type CompositeTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ATTRIBUTES_ASC' + | 'ATTRIBUTES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5737,7 +5801,6 @@ export interface CreateSchemaInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; isPublic?: boolean; @@ -5751,7 +5814,6 @@ export interface SchemaPatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -5775,7 +5837,6 @@ export interface CreateTableInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; useRls?: boolean; timestamps?: boolean; @@ -5798,7 +5859,6 @@ export interface TablePatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -5832,7 +5892,6 @@ export interface CreateCheckConstraintInput { expr?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5846,7 +5905,6 @@ export interface CheckConstraintPatch { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5880,7 +5938,6 @@ export interface CreateFieldInput { max?: number; tags?: string[]; category?: ObjectCategory; - module?: string; scope?: number; }; } @@ -5903,7 +5960,6 @@ export interface FieldPatch { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; } export interface UpdateFieldInput { @@ -5927,7 +5983,6 @@ export interface CreateSpatialRelationInput { operator: string; paramName?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5942,7 +5997,6 @@ export interface SpatialRelationPatch { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5970,7 +6024,6 @@ export interface CreateForeignKeyConstraintInput { deleteAction?: string; updateAction?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5988,7 +6041,6 @@ export interface ForeignKeyConstraintPatch { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6047,7 +6099,6 @@ export interface CreateIndexInput { opClasses?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6066,7 +6117,6 @@ export interface IndexPatch { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6093,7 +6143,6 @@ export interface CreatePolicyInput { data?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6110,7 +6159,6 @@ export interface PolicyPatch { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6133,7 +6181,6 @@ export interface CreatePrimaryKeyConstraintInput { fieldIds: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6146,7 +6193,6 @@ export interface PrimaryKeyConstraintPatch { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6197,7 +6243,6 @@ export interface CreateTriggerInput { functionName?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6210,7 +6255,6 @@ export interface TriggerPatch { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6234,7 +6278,6 @@ export interface CreateUniqueConstraintInput { type?: string; fieldIds: string[]; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6248,7 +6291,6 @@ export interface UniqueConstraintPatch { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6276,7 +6318,6 @@ export interface CreateViewInput { isReadOnly?: boolean; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6294,7 +6335,6 @@ export interface ViewPatch { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6310,12 +6350,14 @@ export interface DeleteViewInput { export interface CreateViewTableInput { clientMutationId?: string; viewTable: { + databaseId?: string; viewId: string; tableId: string; joinOrder?: number; }; } export interface ViewTablePatch { + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -6496,7 +6538,6 @@ export interface CreateEnumInput { values?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6510,7 +6551,6 @@ export interface EnumPatch { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6523,6 +6563,42 @@ export interface DeleteEnumInput { clientMutationId?: string; id: string; } +export interface CreateCompositeTypeInput { + clientMutationId?: string; + compositeType: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + }; +} +export interface CompositeTypePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCompositeTypeInput { + clientMutationId?: string; + id: string; + compositeTypePatch: CompositeTypePatch; +} +export interface DeleteCompositeTypeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -7250,6 +7326,7 @@ export const connectionFieldsMap = { defaultPrivileges: 'DefaultPrivilege', enums: 'Enum', functions: 'Function', + compositeTypes: 'CompositeType', apiSchemas: 'ApiSchema', }, Table: { @@ -7307,6 +7384,7 @@ export const connectionFieldsMap = { triggers: 'Trigger', uniqueConstraints: 'UniqueConstraint', views: 'View', + viewTables: 'ViewTable', viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', @@ -7315,6 +7393,7 @@ export const connectionFieldsMap = { spatialRelations: 'SpatialRelation', functions: 'Function', partitions: 'Partition', + compositeTypes: 'CompositeType', databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', @@ -7472,6 +7551,15 @@ export interface SchemaToManyFunctionFilter { /** Filters to entities where no related entity matches. */ none?: FunctionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyApiSchemaFilter { /** Filters to entities where at least one related entity matches. */ @@ -8151,6 +8239,15 @@ export interface DatabaseToManyViewFilter { /** Filters to entities where no related entity matches. */ none?: ViewFilter; } +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} /** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyViewGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -8223,6 +8320,15 @@ export interface DatabaseToManyPartitionFilter { /** Filters to entities where no related entity matches. */ none?: PartitionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseTransferFilter { /** Filters to entities where at least one related entity matches. */ @@ -8331,6 +8437,761 @@ export interface DatabaseToManyCorsSettingFilter { /** Filters to entities where no related entity matches. */ none?: CorsSettingFilter; } +/** An input for mutations affecting `Function` */ +export interface FunctionInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + createdAt?: string; + updatedAt?: string; + inheritsId?: string; +} +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SpatialRelation` */ +export interface SpatialRelationInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FullTextSearch` */ +export interface FullTextSearchInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Policy` */ +export interface PolicyInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `TableGrant` */ +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UniqueConstraint` */ +export interface UniqueConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + databaseId?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; +} +/** An input for mutations affecting `ViewRule` */ +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + /** INSERT, UPDATE, or DELETE */ + event: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +/** 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?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SchemaGrant` */ +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `CompositeType` */ +export interface CompositeTypeInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ApiSchema` */ +export interface ApiSchemaInput { + /** Unique identifier for this API-schema mapping */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Metaschema schema being exposed through the API */ + schemaId: string; + /** API that exposes this schema */ + apiId: string; +} +/** 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: Record; +} +/** An input for mutations affecting `Domain` */ +export interface DomainInput { + /** Unique identifier for this domain record */ + id?: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** 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; +} +/** 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: Record; +} +/** 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: Record; +} +/** An input for mutations affecting `CorsSetting` */ +export interface CorsSettingInput { + /** Unique identifier for this CORS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[]; +} +/** An input for mutations affecting `TriggerFunction` */ +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DatabaseTransfer` */ +export interface DatabaseTransferInput { + id?: string; + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Unique identifier for this API */ + id?: string; + /** Reference to the metaschema database this API serves */ + databaseId: string; + /** Unique name for this API within its database */ + name: string; + /** PostgreSQL database name to connect to */ + dbname?: string; + /** PostgreSQL role used for authenticated requests */ + roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean; +} +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId: string; + /** 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; +} +/** 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; +} +/** An input for mutations affecting `ApiSetting` */ +export interface ApiSettingInput { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API these settings override for */ + apiId: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; +} +/** An input for mutations affecting `PubkeySetting` */ +export interface PubkeySettingInput { + /** Unique identifier for this pubkey settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; +} +/** An input for mutations affecting `Database` */ +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `RlsSetting` */ +export interface RlsSettingInput { + /** Unique identifier for this RLS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string; +} +/** An input for mutations affecting `SqlAction` */ +export interface SqlActionInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} +/** An input for mutations affecting `DatabaseSetting` */ +export interface DatabaseSettingInput { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `WebauthnSetting` */ +export interface WebauthnSettingInput { + /** Unique identifier for this WebAuthn settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string; + /** WebAuthn Relying Party display name */ + rpName?: string; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[]; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string; + /** Challenge TTL in seconds (default 300 = 5 minutes) */ + challengeExpirySeconds?: string; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -8368,8 +9229,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -8392,12 +9251,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -8534,8 +9393,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8614,8 +9471,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8652,6 +9507,41 @@ export interface FunctionFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ @@ -8695,8 +9585,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8756,8 +9644,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -8811,8 +9697,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8897,8 +9781,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8944,8 +9826,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8983,8 +9863,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9053,8 +9931,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9094,8 +9970,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9119,6 +9993,8 @@ export interface UniqueConstraintFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -9131,6 +10007,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -9225,8 +10103,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9464,8 +10340,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9508,6 +10382,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -10121,6 +10999,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -10153,6 +11035,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -11620,6 +12506,51 @@ export type DeleteEnumPayloadSelect = { select: EnumEdgeSelect; }; }; +export interface CreateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was created by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type CreateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface UpdateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was updated by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type UpdateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface DeleteCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was deleted by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type DeleteCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -12845,6 +13776,18 @@ export type EnumEdgeSelect = { select: EnumSelect; }; }; +/** A `CompositeType` edge in the connection. */ +export interface CompositeTypeEdge { + cursor?: string | null; + /** The `CompositeType` at the end of the edge. */ + node?: CompositeType | null; +} +export type CompositeTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: CompositeTypeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/api/orm/models/compositeType.ts b/sdk/constructive-cli/src/api/orm/models/compositeType.ts new file mode 100644 index 0000000000..0f46f810e9 --- /dev/null +++ b/sdk/constructive-cli/src/api/orm/models/compositeType.ts @@ -0,0 +1,244 @@ +/** + * CompositeType 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 { + CompositeType, + CompositeTypeWithRelations, + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy, + CreateCompositeTypeInput, + UpdateCompositeTypeInput, + CompositeTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CompositeTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + 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, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CompositeType', + 'createCompositeType', + 'compositeType', + args.select, + args.data, + 'CreateCompositeTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'createCompositeType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CompositeTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CompositeType', + 'updateCompositeType', + 'compositeType', + args.select, + args.where.id, + args.data, + 'UpdateCompositeTypeInput', + 'id', + 'compositeTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'updateCompositeType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CompositeType', + 'deleteCompositeType', + 'compositeType', + { + id: args.where.id, + }, + 'DeleteCompositeTypeInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'deleteCompositeType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/api/orm/models/index.ts b/sdk/constructive-cli/src/api/orm/models/index.ts index 326c47f972..ddc91f27a9 100644 --- a/sdk/constructive-cli/src/api/orm/models/index.ts +++ b/sdk/constructive-cli/src/api/orm/models/index.ts @@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; +export { CompositeTypeModel } from './compositeType'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index 0c72a32322..5cc6a423b0 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:** 22 +- **Custom mutations:** 25 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 3481d60f8e..b14c5ba242 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -54,8 +54,11 @@ csdk auth set-token | `provision-new-user` | provisionNewUser | | `reset-password` | resetPassword | | `sign-in-cross-origin` | signInCrossOrigin | +| `sign-in-sms-otp` | signInSmsOtp | +| `sign-up-sms` | signUpSms | | `sign-up` | signUp | | `sign-in` | signIn | +| `link-identity` | linkIdentity | | `extend-token-expires` | extendTokenExpires | | `create-api-key` | createApiKey | | `request-cross-origin-token` | requestCrossOriginToken | @@ -606,6 +609,38 @@ signInCrossOrigin | `--input.token` | String | | `--input.credentialKind` | String | +### `sign-in-sms-otp` + +signInSmsOtp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.phone` | String | + | `--input.code` | String | + | `--input.credentialKind` | String | + | `--input.rememberMe` | Boolean | + | `--input.deviceToken` | String | + +### `sign-up-sms` + +signUpSms + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.phone` | String | + | `--input.code` | String | + | `--input.credentialKind` | String | + | `--input.rememberMe` | Boolean | + | `--input.deviceToken` | String | + ### `sign-up` signUp @@ -640,6 +675,20 @@ signIn | `--input.csrfToken` | String | | `--input.deviceToken` | String | +### `link-identity` + +linkIdentity + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.service` | String (required) | + | `--input.identifier` | String (required) | + | `--input.details` | JSON | + ### `extend-token-expires` extendTokenExpires diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index 786a64e33e..9c156a2a84 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -34,8 +34,11 @@ import verifyEmailCmd from './commands/verify-email'; import provisionNewUserCmd from './commands/provision-new-user'; import resetPasswordCmd from './commands/reset-password'; import signInCrossOriginCmd from './commands/sign-in-cross-origin'; +import signInSmsOtpCmd from './commands/sign-in-sms-otp'; +import signUpSmsCmd from './commands/sign-up-sms'; import signUpCmd from './commands/sign-up'; import signInCmd from './commands/sign-in'; +import linkIdentityCmd from './commands/link-identity'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createApiKeyCmd from './commands/create-api-key'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; @@ -80,8 +83,11 @@ const createCommandMap: () => Record< 'provision-new-user': provisionNewUserCmd, 'reset-password': resetPasswordCmd, 'sign-in-cross-origin': signInCrossOriginCmd, + 'sign-in-sms-otp': signInSmsOtpCmd, + 'sign-up-sms': signUpSmsCmd, 'sign-up': signUpCmd, 'sign-in': signInCmd, + 'link-identity': linkIdentityCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-api-key': createApiKeyCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, @@ -90,7 +96,7 @@ const createCommandMap: () => Record< '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-auth auditLogAuth 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 sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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-auth auditLogAuth 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-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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/link-identity.ts b/sdk/constructive-cli/src/auth/cli/commands/link-identity.ts new file mode 100644 index 0000000000..a0f841b861 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/link-identity.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation linkIdentity + * @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 { LinkIdentityVariables } from '../../orm/mutation'; +import type { LinkIdentityPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('link-identity - linkIdentity\n\nUsage: link-identity [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 + .linkIdentity( + parsedAnswers as unknown as LinkIdentityVariables, + { + select: selectFields, + } as unknown as { + select: LinkIdentityPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: linkIdentity'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-in-sms-otp.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-in-sms-otp.ts new file mode 100644 index 0000000000..2663004425 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-in-sms-otp.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signInSmsOtp + * @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 { SignInSmsOtpVariables } from '../../orm/mutation'; +import type { SignInSmsOtpPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-in-sms-otp - signInSmsOtp\n\nUsage: sign-in-sms-otp [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 + .signInSmsOtp( + parsedAnswers as unknown as SignInSmsOtpVariables, + { + select: selectFields, + } as unknown as { + select: SignInSmsOtpPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signInSmsOtp'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +}; diff --git a/sdk/constructive-cli/src/auth/cli/commands/sign-up-sms.ts b/sdk/constructive-cli/src/auth/cli/commands/sign-up-sms.ts new file mode 100644 index 0000000000..86aacce200 --- /dev/null +++ b/sdk/constructive-cli/src/auth/cli/commands/sign-up-sms.ts @@ -0,0 +1,51 @@ +/** + * CLI command for mutation signUpSms + * @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 { SignUpSmsVariables } from '../../orm/mutation'; +import type { SignUpSmsPayloadSelect } from '../../orm/input-types'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + try { + if (argv.help || argv.h) { + console.log('sign-up-sms - signUpSms\n\nUsage: sign-up-sms [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 + .signUpSms( + parsedAnswers as unknown as SignUpSmsVariables, + { + select: selectFields, + } as unknown as { + select: SignUpSmsPayloadSelect; + } + ) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed: signUpSms'); + 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 4a4fbb5278..68bf0ce72d 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -632,6 +632,36 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); ``` +### `db.mutation.signInSmsOtp` + +signInSmsOtp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInSmsOtpInput (required) | + +```typescript +const result = await db.mutation.signInSmsOtp({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + +### `db.mutation.signUpSms` + +signUpSms + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpSmsInput (required) | + +```typescript +const result = await db.mutation.signUpSms({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + ### `db.mutation.signUp` signUp @@ -662,6 +692,21 @@ signIn const result = await db.mutation.signIn({ input: '' }).execute(); ``` +### `db.mutation.linkIdentity` + +linkIdentity + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | LinkIdentityInput (required) | + +```typescript +const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index d1926edee2..8e73cfffb4 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -362,7 +362,7 @@ export interface User { 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -1306,6 +1306,22 @@ export interface SignInCrossOriginInput { token?: string; credentialKind?: string; } +export interface SignInSmsOtpInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} +export interface SignUpSmsInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -1324,6 +1340,12 @@ export interface SignInInput { csrfToken?: string; deviceToken?: string; } +export interface LinkIdentityInput { + clientMutationId?: string; + service: string; + identifier: string; + details?: Record; +} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -1698,6 +1720,132 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** 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; +} +/** An input for mutations affecting `PhoneNumber` */ +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + /** 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?: string; + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAddress` */ +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address: string; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean; + /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** An input for mutations affecting `AuditLogAuth` */ +export interface AuditLogAuthInput { + createdAt?: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ + 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; +} +/** An input for mutations affecting `IdentityProvider` */ +export interface IdentityProviderInput { + slug?: string; + kind?: string; + displayName?: string; + enabled?: boolean; + isBuiltIn?: boolean; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} +/** An input for mutations affecting `UserConnectedAccount` */ +export interface UserConnectedAccountInput { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `User` */ +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + createdAt?: string; + updatedAt?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -2345,6 +2493,26 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInSmsOtpPayload { + clientMutationId?: string | null; + result?: SignInSmsOtpRecord | null; +} +export type SignInSmsOtpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInSmsOtpRecordSelect; + }; +}; +export interface SignUpSmsPayload { + clientMutationId?: string | null; + result?: SignUpSmsRecord | null; +} +export type SignUpSmsPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpSmsRecordSelect; + }; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -2365,6 +2533,14 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; +export interface LinkIdentityPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type LinkIdentityPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -2782,6 +2958,26 @@ export type SignInCrossOriginRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +export interface SignInSmsOtpRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignInSmsOtpRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; +export interface SignUpSmsRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignUpSmsRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; export interface SignUpRecord { id?: string | null; userId?: string | null; diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index 14c035b5d4..d8864374dd 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -21,8 +21,11 @@ import type { ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, + SignInSmsOtpInput, + SignUpSmsInput, SignUpInput, SignInInput, + LinkIdentityInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, @@ -43,8 +46,11 @@ import type { ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, + SignInSmsOtpPayload, + SignUpSmsPayload, SignUpPayload, SignInPayload, + LinkIdentityPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, @@ -65,8 +71,11 @@ import type { ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, + SignInSmsOtpPayloadSelect, + SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, + LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, @@ -117,12 +126,21 @@ export interface ResetPasswordVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInSmsOtpVariables { + input: SignInSmsOtpInput; +} +export interface SignUpSmsVariables { + input: SignUpSmsInput; +} export interface SignUpVariables { input: SignUpInput; } export interface SignInVariables { input: SignInInput; } +export interface LinkIdentityVariables { + input: LinkIdentityInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -556,6 +574,64 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInSmsOtp: ( + args: SignInSmsOtpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInSmsOtp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInSmsOtp', + fieldName: 'signInSmsOtp', + ...buildCustomDocument( + 'mutation', + 'SignInSmsOtp', + 'signInSmsOtp', + options.select, + args, + [ + { + name: 'input', + type: 'SignInSmsOtpInput!', + }, + ], + connectionFieldsMap, + 'SignInSmsOtpPayload' + ), + }), + signUpSms: ( + args: SignUpSmsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpSms: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpSms', + fieldName: 'signUpSms', + ...buildCustomDocument( + 'mutation', + 'SignUpSms', + 'signUpSms', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpSmsInput!', + }, + ], + connectionFieldsMap, + 'SignUpSmsPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -614,6 +690,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInPayload' ), }), + linkIdentity: ( + args: LinkIdentityVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + linkIdentity: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'LinkIdentity', + fieldName: 'linkIdentity', + ...buildCustomDocument( + 'mutation', + 'LinkIdentity', + 'linkIdentity', + options.select, + args, + [ + { + name: 'input', + type: 'LinkIdentityInput!', + }, + ], + connectionFieldsMap, + 'LinkIdentityPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-cli/src/modules/README.md b/sdk/constructive-cli/src/modules/README.md index e8acace7a8..6635847931 100644 --- a/sdk/constructive-cli/src/modules/README.md +++ b/sdk/constructive-cli/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 56 +- **Tables:** 57 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-cli/src/modules/cli/README.md b/sdk/constructive-cli/src/modules/cli/README.md index 12f1769294..55ce1ede16 100644 --- a/sdk/constructive-cli/src/modules/cli/README.md +++ b/sdk/constructive-cli/src/modules/cli/README.md @@ -43,45 +43,46 @@ csdk auth set-token | `users-module` | usersModule CRUD operations | | `webauthn-credentials-module` | webauthnCredentialsModule CRUD operations | | `crypto-addresses-module` | cryptoAddressesModule CRUD operations | -| `identity-providers-module` | identityProvidersModule CRUD operations | | `denormalized-table-field` | denormalizedTableField CRUD operations | +| `identity-providers-module` | identityProvidersModule CRUD operations | | `rls-module` | rlsModule CRUD operations | | `blueprint` | blueprint CRUD operations | | `blueprint-template` | blueprintTemplate CRUD operations | | `blueprint-construction` | blueprintConstruction CRUD operations | | `crypto-auth-module` | cryptoAuthModule CRUD operations | -| `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | | `sessions-module` | sessionsModule CRUD operations | -| `config-secrets-module` | configSecretsModule CRUD operations | +| `secure-table-provision` | secureTableProvision CRUD operations | | `merkle-store-module` | merkleStoreModule CRUD operations | | `graph-module` | graphModule CRUD operations | -| `secure-table-provision` | secureTableProvision CRUD operations | -| `invites-module` | invitesModule CRUD operations | | `database-provision-module` | databaseProvisionModule CRUD operations | -| `namespace-module` | namespaceModule CRUD operations | +| `config-secrets-module` | configSecretsModule CRUD operations | +| `rate-limit-meters-module` | rateLimitMetersModule CRUD operations | | `realtime-module` | realtimeModule CRUD operations | | `webauthn-auth-module` | webauthnAuthModule CRUD operations | +| `function-invocation-module` | functionInvocationModule CRUD operations | +| `function-module` | functionModule CRUD operations | +| `invites-module` | invitesModule CRUD operations | +| `namespace-module` | namespaceModule CRUD operations | | `compute-log-module` | computeLogModule CRUD operations | | `inference-log-module` | inferenceLogModule CRUD operations | | `storage-log-module` | storageLogModule CRUD operations | | `transfer-log-module` | transferLogModule CRUD operations | -| `db-usage-module` | dbUsageModule CRUD operations | -| `notifications-module` | notificationsModule CRUD operations | | `plans-module` | plansModule CRUD operations | -| `hierarchy-module` | hierarchyModule CRUD operations | -| `billing-module` | billingModule CRUD operations | | `billing-provider-module` | billingProviderModule CRUD operations | -| `profiles-module` | profilesModule CRUD operations | +| `db-usage-module` | dbUsageModule CRUD operations | +| `hierarchy-module` | hierarchyModule CRUD operations | | `permissions-module` | permissionsModule CRUD operations | +| `notifications-module` | notificationsModule CRUD operations | +| `profiles-module` | profilesModule CRUD operations | +| `billing-module` | billingModule CRUD operations | | `relation-provision` | relationProvision CRUD operations | -| `function-module` | functionModule CRUD operations | | `user-auth-module` | userAuthModule CRUD operations | | `agent-module` | agentModule CRUD operations | | `limits-module` | limitsModule CRUD operations | | `memberships-module` | membershipsModule CRUD operations | +| `entity-type-provision` | entityTypeProvision CRUD operations | | `storage-module` | storageModule CRUD operations | | `events-module` | eventsModule CRUD operations | -| `entity-type-provision` | entityTypeProvision CRUD operations | | `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. | | `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. | | `construct-blueprint` | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (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, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | @@ -620,38 +621,6 @@ CRUD operations for CryptoAddressesModule records. **Required create fields:** `databaseId`, `tableName` **Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `ownerTableId`, `cryptoNetwork`, `apiName`, `privateApiName` -### `identity-providers-module` - -CRUD operations for IdentityProvidersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all identityProvidersModule records | -| `find-first` | Find first matching identityProvidersModule record | -| `get` | Get a identityProvidersModule by id | -| `create` | Create a new identityProvidersModule | -| `update` | Update an existing identityProvidersModule | -| `delete` | Delete a identityProvidersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId` - ### `denormalized-table-field` CRUD operations for DenormalizedTableField records. @@ -685,6 +654,40 @@ CRUD operations for DenormalizedTableField records. **Required create fields:** `databaseId`, `tableId`, `fieldId`, `refTableId`, `refFieldId` **Optional create fields (backend defaults):** `setIds`, `refIds`, `useUpdates`, `updateDefaults`, `funcName`, `funcOrder` +### `identity-providers-module` + +CRUD operations for IdentityProvidersModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all identityProvidersModule records | +| `find-first` | Find first matching identityProvidersModule record | +| `get` | Get a identityProvidersModule by id | +| `create` | Create a new identityProvidersModule | +| `update` | Update an existing identityProvidersModule | +| `delete` | Delete a identityProvidersModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableId` | UUID | +| `tableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId` + ### `rls-module` CRUD operations for RlsModule records. @@ -860,41 +863,6 @@ CRUD operations for CryptoAuthModule records. **Required create fields:** `databaseId`, `userField` **Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `secretsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `addressesTableId`, `cryptoNetwork`, `signInRequestChallenge`, `signInRecordFailure`, `signUpWithKey`, `signInWithChallenge` -### `rate-limit-meters-module` - -CRUD operations for RateLimitMetersModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all rateLimitMetersModule records | -| `find-first` | Find first matching rateLimitMetersModule record | -| `get` | Get a rateLimitMetersModule by id | -| `create` | Create a new rateLimitMetersModule | -| `update` | Update an existing rateLimitMetersModule | -| `delete` | Delete a rateLimitMetersModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `rateLimitStateTableId` | UUID | -| `rateLimitStateTableName` | String | -| `rateLimitOverridesTableId` | UUID | -| `rateLimitOverridesTableName` | String | -| `rateWindowLimitsTableId` | UUID | -| `rateWindowLimitsTableName` | String | -| `checkRateLimitFunction` | String | -| `prefix` | String | -| `apiName` | String | -| `privateApiName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `checkRateLimitFunction`, `prefix`, `apiName`, `privateApiName` - ### `sessions-module` CRUD operations for SessionsModule records. @@ -927,18 +895,18 @@ CRUD operations for SessionsModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `sessionsTableId`, `sessionCredentialsTableId`, `authSettingsTableId`, `usersTableId`, `sessionsDefaultExpiration`, `sessionsTable`, `sessionCredentialsTable`, `authSettingsTable` -### `config-secrets-module` +### `secure-table-provision` -CRUD operations for ConfigSecretsModule records. +CRUD operations for SecureTableProvision records. | Subcommand | Description | |------------|-------------| -| `list` | List all configSecretsModule records | -| `find-first` | Find first matching configSecretsModule record | -| `get` | Get a configSecretsModule by id | -| `create` | Create a new configSecretsModule | -| `update` | Update an existing configSecretsModule | -| `delete` | Delete a configSecretsModule | +| `list` | List all secureTableProvision records | +| `find-first` | Find first matching secureTableProvision record | +| `get` | Get a secureTableProvision by id | +| `create` | Create a new secureTableProvision | +| `update` | Update an existing secureTableProvision | +| `delete` | Delete a secureTableProvision | **Fields:** @@ -947,21 +915,17 @@ CRUD operations for ConfigSecretsModule records. | `id` | UUID | | `databaseId` | UUID | | `schemaId` | UUID | -| `privateSchemaId` | UUID | | `tableId` | UUID | -| `configDefinitionsTableId` | UUID | | `tableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | +| `nodes` | JSON | +| `useRls` | Boolean | +| `fields` | JSON | +| `grants` | JSON | | `policies` | JSON | -| `provisions` | JSON | -| `hasConfig` | Boolean | +| `outFields` | UUID | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `configDefinitionsTableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `hasConfig` +**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodes`, `useRls`, `fields`, `grants`, `policies`, `outFields` ### `merkle-store-module` @@ -994,10 +958,11 @@ CRUD operations for MerkleStoreModule records. | `apiName` | String | | `privateApiName` | String | | `scope` | String | +| `functionPrefix` | String | | `createdAt` | Datetime | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `scope` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `objectTableId`, `storeTableId`, `commitTableId`, `refTableId`, `prefix`, `apiName`, `privateApiName`, `scope`, `functionPrefix` ### `graph-module` @@ -1033,79 +998,11 @@ CRUD operations for GraphModule records. | `entityTableId` | UUID | | `policies` | JSON | | `provisions` | JSON | +| `defaultPermissions` | String | | `createdAt` | Datetime | **Required create fields:** `databaseId`, `merkleStoreModuleId` -**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `graphsTableId`, `executionsTableId`, `outputsTableId`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions` - -### `secure-table-provision` - -CRUD operations for SecureTableProvision records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all secureTableProvision records | -| `find-first` | Find first matching secureTableProvision record | -| `get` | Get a secureTableProvision by id | -| `create` | Create a new secureTableProvision | -| `update` | Update an existing secureTableProvision | -| `delete` | Delete a secureTableProvision | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `nodes` | JSON | -| `useRls` | Boolean | -| `fields` | JSON | -| `grants` | JSON | -| `policies` | JSON | -| `outFields` | UUID | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `tableId`, `tableName`, `nodes`, `useRls`, `fields`, `grants`, `policies`, `outFields` - -### `invites-module` - -CRUD operations for InvitesModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all invitesModule records | -| `find-first` | Find first matching invitesModule record | -| `get` | Get a invitesModule by id | -| `create` | Create a new invitesModule | -| `update` | Update an existing invitesModule | -| `delete` | Delete a invitesModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `emailsTableId` | UUID | -| `usersTableId` | UUID | -| `invitesTableId` | UUID | -| `claimedInvitesTableId` | UUID | -| `invitesTableName` | String | -| `claimedInvitesTableName` | String | -| `submitInviteCodeFunction` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `apiName` | String | -| `privateApiName` | String | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `scope`, `prefix`, `entityTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `publicSchemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `scope`, `prefix`, `graphsTableId`, `executionsTableId`, `outputsTableId`, `apiName`, `privateApiName`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` ### `database-provision-module` @@ -1142,18 +1039,18 @@ CRUD operations for DatabaseProvisionModule records. **Required create fields:** `databaseName`, `ownerId`, `domain` **Optional create fields (backend defaults):** `subdomain`, `modules`, `options`, `bootstrapUser`, `status`, `errorMessage`, `databaseId`, `completedAt` -### `namespace-module` +### `config-secrets-module` -CRUD operations for NamespaceModule records. +CRUD operations for ConfigSecretsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all namespaceModule records | -| `find-first` | Find first matching namespaceModule record | -| `get` | Get a namespaceModule by id | -| `create` | Create a new namespaceModule | -| `update` | Update an existing namespaceModule | -| `delete` | Delete a namespaceModule | +| `list` | List all configSecretsModule records | +| `find-first` | Find first matching configSecretsModule record | +| `get` | Get a configSecretsModule by id | +| `create` | Create a new configSecretsModule | +| `update` | Update an existing configSecretsModule | +| `delete` | Delete a configSecretsModule | **Fields:** @@ -1165,10 +1062,9 @@ CRUD operations for NamespaceModule records. | `privateSchemaId` | UUID | | `publicSchemaName` | String | | `privateSchemaName` | String | -| `namespacesTableId` | UUID | -| `namespaceEventsTableId` | UUID | -| `namespacesTableName` | String | -| `namespaceEventsTableName` | String | +| `tableId` | UUID | +| `configDefinitionsTableId` | UUID | +| `tableName` | String | | `apiName` | String | | `privateApiName` | String | | `scope` | String | @@ -1176,21 +1072,60 @@ CRUD operations for NamespaceModule records. | `entityTableId` | UUID | | `policies` | JSON | | `provisions` | JSON | +| `hasConfig` | Boolean | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `configDefinitionsTableId`, `tableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `hasConfig` -### `realtime-module` +### `rate-limit-meters-module` -CRUD operations for RealtimeModule records. +CRUD operations for RateLimitMetersModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all realtimeModule records | -| `find-first` | Find first matching realtimeModule record | -| `get` | Get a realtimeModule by id | -| `create` | Create a new realtimeModule | -| `update` | Update an existing realtimeModule | +| `list` | List all rateLimitMetersModule records | +| `find-first` | Find first matching rateLimitMetersModule record | +| `get` | Get a rateLimitMetersModule by id | +| `create` | Create a new rateLimitMetersModule | +| `update` | Update an existing rateLimitMetersModule | +| `delete` | Delete a rateLimitMetersModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `rateLimitStateTableId` | UUID | +| `rateLimitStateTableName` | String | +| `rateLimitOverridesTableId` | UUID | +| `rateLimitOverridesTableName` | String | +| `rateWindowLimitsTableId` | UUID | +| `rateWindowLimitsTableName` | String | +| `checkRateLimitFunction` | String | +| `prefix` | String | +| `defaultPermissions` | String | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `rateLimitStateTableId`, `rateLimitStateTableName`, `rateLimitOverridesTableId`, `rateLimitOverridesTableName`, `rateWindowLimitsTableId`, `rateWindowLimitsTableName`, `checkRateLimitFunction`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` + +### `realtime-module` + +CRUD operations for RealtimeModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all realtimeModule records | +| `find-first` | Find first matching realtimeModule record | +| `get` | Get a realtimeModule by id | +| `create` | Create a new realtimeModule | +| `update` | Update an existing realtimeModule | | `delete` | Delete a realtimeModule | **Fields:** @@ -1252,6 +1187,162 @@ CRUD operations for WebauthnAuthModule records. **Required create fields:** `databaseId` **Optional create fields (backend defaults):** `schemaId`, `usersTableId`, `credentialsTableId`, `sessionsTableId`, `sessionCredentialsTableId`, `sessionSecretsTableId`, `authSettingsTableId`, `rpId`, `rpName`, `originAllowlist`, `attestationType`, `requireUserVerification`, `residentKey`, `challengeExpiry` +### `function-invocation-module` + +CRUD operations for FunctionInvocationModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all functionInvocationModule records | +| `find-first` | Find first matching functionInvocationModule record | +| `get` | Get a functionInvocationModule by id | +| `create` | Create a new functionInvocationModule | +| `update` | Update an existing functionInvocationModule | +| `delete` | Delete a functionInvocationModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `invocationsTableId` | UUID | +| `executionLogsTableId` | UUID | +| `invocationsTableName` | String | +| `executionLogsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `defaultPermissions` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `invocationsTableId`, `executionLogsTableId`, `invocationsTableName`, `executionLogsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` + +### `function-module` + +CRUD operations for FunctionModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all functionModule records | +| `find-first` | Find first matching functionModule record | +| `get` | Get a functionModule by id | +| `create` | Create a new functionModule | +| `update` | Update an existing functionModule | +| `delete` | Delete a functionModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `definitionsTableId` | UUID | +| `secretDefinitionsTableId` | UUID | +| `definitionsTableName` | String | +| `secretDefinitionsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `defaultPermissions` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `secretDefinitionsTableId`, `definitionsTableName`, `secretDefinitionsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` + +### `invites-module` + +CRUD operations for InvitesModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all invitesModule records | +| `find-first` | Find first matching invitesModule record | +| `get` | Get a invitesModule by id | +| `create` | Create a new invitesModule | +| `update` | Update an existing invitesModule | +| `delete` | Delete a invitesModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `emailsTableId` | UUID | +| `usersTableId` | UUID | +| `invitesTableId` | UUID | +| `claimedInvitesTableId` | UUID | +| `invitesTableName` | String | +| `claimedInvitesTableName` | String | +| `submitInviteCodeFunction` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `apiName` | String | +| `privateApiName` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `emailsTableId`, `usersTableId`, `invitesTableId`, `claimedInvitesTableId`, `invitesTableName`, `claimedInvitesTableName`, `submitInviteCodeFunction`, `scope`, `prefix`, `entityTableId`, `apiName`, `privateApiName` + +### `namespace-module` + +CRUD operations for NamespaceModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all namespaceModule records | +| `find-first` | Find first matching namespaceModule record | +| `get` | Get a namespaceModule by id | +| `create` | Create a new namespaceModule | +| `update` | Update an existing namespaceModule | +| `delete` | Delete a namespaceModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `namespacesTableId` | UUID | +| `namespaceEventsTableId` | UUID | +| `namespacesTableName` | String | +| `namespaceEventsTableName` | String | +| `apiName` | String | +| `privateApiName` | String | +| `scope` | String | +| `prefix` | String | +| `entityTableId` | UUID | +| `policies` | JSON | +| `provisions` | JSON | +| `defaultPermissions` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `namespacesTableId`, `namespaceEventsTableId`, `namespacesTableName`, `namespaceEventsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions`, `defaultPermissions` + ### `compute-log-module` CRUD operations for ComputeLogModule records. @@ -1273,6 +1364,8 @@ CRUD operations for ComputeLogModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `computeLogTableId` | UUID | | `computeLogTableName` | String | | `usageDailyTableId` | UUID | @@ -1288,7 +1381,7 @@ CRUD operations for ComputeLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `computeLogTableId`, `computeLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` ### `inference-log-module` @@ -1311,6 +1404,8 @@ CRUD operations for InferenceLogModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `inferenceLogTableId` | UUID | | `inferenceLogTableName` | String | | `usageDailyTableId` | UUID | @@ -1326,7 +1421,7 @@ CRUD operations for InferenceLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `inferenceLogTableId`, `inferenceLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` ### `storage-log-module` @@ -1349,6 +1444,8 @@ CRUD operations for StorageLogModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `storageLogTableId` | UUID | | `storageLogTableName` | String | | `usageDailyTableId` | UUID | @@ -1364,7 +1461,7 @@ CRUD operations for StorageLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `storageLogTableId`, `storageLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` ### `transfer-log-module` @@ -1387,6 +1484,8 @@ CRUD operations for TransferLogModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `transferLogTableId` | UUID | | `transferLogTableName` | String | | `usageDailyTableId` | UUID | @@ -1402,20 +1501,20 @@ CRUD operations for TransferLogModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `transferLogTableId`, `transferLogTableName`, `usageDailyTableId`, `usageDailyTableName`, `interval`, `retention`, `premake`, `scope`, `actorFkTableId`, `entityFkTableId`, `prefix`, `apiName`, `privateApiName` -### `db-usage-module` +### `plans-module` -CRUD operations for DbUsageModule records. +CRUD operations for PlansModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all dbUsageModule records | -| `find-first` | Find first matching dbUsageModule record | -| `get` | Get a dbUsageModule by id | -| `create` | Create a new dbUsageModule | -| `update` | Update an existing dbUsageModule | -| `delete` | Delete a dbUsageModule | +| `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:** @@ -1425,37 +1524,39 @@ CRUD operations for DbUsageModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `tableStatsLogTableId` | UUID | -| `tableStatsLogTableName` | String | -| `tableStatsDailyTableId` | UUID | -| `tableStatsDailyTableName` | String | -| `queryStatsLogTableId` | UUID | -| `queryStatsLogTableName` | String | -| `queryStatsDailyTableId` | UUID | -| `queryStatsDailyTableName` | String | -| `interval` | String | -| `retention` | String | -| `premake` | Int | -| `scope` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `plansTableId` | UUID | +| `plansTableName` | String | +| `planLimitsTableId` | UUID | +| `planLimitsTableName` | String | +| `planPricingTableId` | UUID | +| `planOverridesTableId` | UUID | +| `planMeterLimitsTableId` | UUID | +| `planCapsTableId` | UUID | +| `applyPlanFunction` | String | +| `applyPlanAggregateFunction` | String | +| `applyBillingPlanFunction` | String | +| `applyPlanCapsFunction` | String | | `prefix` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `planMeterLimitsTableId`, `planCapsTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `applyBillingPlanFunction`, `applyPlanCapsFunction`, `prefix`, `apiName`, `privateApiName` -### `notifications-module` +### `billing-provider-module` -CRUD operations for NotificationsModule records. +CRUD operations for BillingProviderModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all notificationsModule records | -| `find-first` | Find first matching notificationsModule record | -| `get` | Get a notificationsModule by id | -| `create` | Create a new notificationsModule | -| `update` | Update an existing notificationsModule | -| `delete` | Delete a notificationsModule | +| `list` | List all billingProviderModule records | +| `find-first` | Find first matching billingProviderModule record | +| `get` | Get a billingProviderModule by id | +| `create` | Create a new billingProviderModule | +| `update` | Update an existing billingProviderModule | +| `delete` | Delete a billingProviderModule | **Fields:** @@ -1465,37 +1566,40 @@ CRUD operations for NotificationsModule records. | `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 | +| `provider` | String | +| `productsTableId` | UUID | +| `pricesTableId` | UUID | +| `subscriptionsTableId` | UUID | +| `billingCustomersTableId` | UUID | +| `billingCustomersTableName` | String | +| `billingProductsTableId` | UUID | +| `billingProductsTableName` | String | +| `billingPricesTableId` | UUID | +| `billingPricesTableName` | String | +| `billingSubscriptionsTableId` | UUID | +| `billingSubscriptionsTableName` | String | +| `billingWebhookEventsTableId` | UUID | +| `billingWebhookEventsTableName` | String | +| `processBillingEventFunction` | String | +| `prefix` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `provider`, `productsTableId`, `pricesTableId`, `subscriptionsTableId`, `billingCustomersTableId`, `billingCustomersTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `processBillingEventFunction`, `prefix`, `apiName`, `privateApiName` -### `plans-module` +### `db-usage-module` -CRUD operations for PlansModule records. +CRUD operations for DbUsageModule records. | Subcommand | Description | |------------|-------------| -| `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 | +| `list` | List all dbUsageModule records | +| `find-first` | Find first matching dbUsageModule record | +| `get` | Get a dbUsageModule by id | +| `create` | Create a new dbUsageModule | +| `update` | Update an existing dbUsageModule | +| `delete` | Delete a dbUsageModule | **Fields:** @@ -1505,24 +1609,27 @@ CRUD operations for PlansModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `plansTableId` | UUID | -| `plansTableName` | String | -| `planLimitsTableId` | UUID | -| `planLimitsTableName` | String | -| `planPricingTableId` | UUID | -| `planOverridesTableId` | UUID | -| `planMeterLimitsTableId` | UUID | -| `planCapsTableId` | UUID | -| `applyPlanFunction` | String | -| `applyPlanAggregateFunction` | String | -| `applyBillingPlanFunction` | String | -| `applyPlanCapsFunction` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableStatsLogTableId` | UUID | +| `tableStatsLogTableName` | String | +| `tableStatsDailyTableId` | UUID | +| `tableStatsDailyTableName` | String | +| `queryStatsLogTableId` | UUID | +| `queryStatsLogTableName` | String | +| `queryStatsDailyTableId` | UUID | +| `queryStatsDailyTableName` | String | +| `interval` | String | +| `retention` | String | +| `premake` | Int | +| `scope` | String | | `prefix` | String | +| `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `planPricingTableId`, `planOverridesTableId`, `planMeterLimitsTableId`, `planCapsTableId`, `applyPlanFunction`, `applyPlanAggregateFunction`, `applyBillingPlanFunction`, `applyPlanCapsFunction`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableStatsLogTableId`, `tableStatsLogTableName`, `tableStatsDailyTableId`, `tableStatsDailyTableName`, `queryStatsLogTableId`, `queryStatsLogTableName`, `queryStatsDailyTableId`, `queryStatsDailyTableName`, `interval`, `retention`, `premake`, `scope`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` ### `hierarchy-module` @@ -1561,23 +1668,24 @@ CRUD operations for HierarchyModule records. | `getSubordinatesFunction` | String | | `getManagersFunction` | String | | `isManagerOfFunction` | String | +| `defaultPermissions` | String | | `createdAt` | Datetime | **Required create fields:** `databaseId`, `entityTableId`, `usersTableId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `scope`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `chartEdgesTableId`, `chartEdgesTableName`, `hierarchySprtTableId`, `hierarchySprtTableName`, `chartEdgeGrantsTableId`, `chartEdgeGrantsTableName`, `scope`, `prefix`, `privateSchemaName`, `sprtTableName`, `rebuildHierarchyFunction`, `getSubordinatesFunction`, `getManagersFunction`, `isManagerOfFunction`, `defaultPermissions` -### `billing-module` +### `permissions-module` -CRUD operations for BillingModule records. +CRUD operations for PermissionsModule records. | Subcommand | Description | |------------|-------------| -| `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 | +| `list` | List all permissionsModule records | +| `find-first` | Find first matching permissionsModule record | +| `get` | Get a permissionsModule by id | +| `create` | Create a new permissionsModule | +| `update` | Update an existing permissionsModule | +| `delete` | Delete a permissionsModule | **Fields:** @@ -1587,40 +1695,39 @@ CRUD operations for BillingModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `metersTableId` | UUID | -| `metersTableName` | String | -| `planSubscriptionsTableId` | UUID | -| `planSubscriptionsTableName` | String | -| `ledgerTableId` | UUID | -| `ledgerTableName` | String | -| `balancesTableId` | UUID | -| `balancesTableName` | String | -| `meterCreditsTableId` | UUID | -| `meterCreditsTableName` | String | -| `meterSourcesTableId` | UUID | -| `meterSourcesTableName` | String | -| `meterDefaultsTableId` | UUID | -| `meterDefaultsTableName` | String | -| `recordUsageFunction` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `tableId` | UUID | +| `tableName` | String | +| `defaultTableId` | UUID | +| `defaultTableName` | String | +| `bitlen` | Int | +| `scope` | String | | `prefix` | String | +| `entityTableId` | UUID | +| `actorTableId` | UUID | +| `getPaddedMask` | String | +| `getMask` | String | +| `getByMask` | String | +| `getMaskByName` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `recordUsageFunction`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName`, `apiName`, `privateApiName` -### `billing-provider-module` +### `notifications-module` -CRUD operations for BillingProviderModule records. +CRUD operations for NotificationsModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all billingProviderModule records | -| `find-first` | Find first matching billingProviderModule record | -| `get` | Get a billingProviderModule by id | -| `create` | Create a new billingProviderModule | -| `update` | Update an existing billingProviderModule | -| `delete` | Delete a billingProviderModule | +| `list` | List all notificationsModule records | +| `find-first` | Find first matching notificationsModule record | +| `get` | Get a notificationsModule by id | +| `create` | Create a new notificationsModule | +| `update` | Update an existing notificationsModule | +| `delete` | Delete a notificationsModule | **Fields:** @@ -1630,27 +1737,28 @@ CRUD operations for BillingProviderModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `provider` | String | -| `productsTableId` | UUID | -| `pricesTableId` | UUID | -| `subscriptionsTableId` | UUID | -| `billingCustomersTableId` | UUID | -| `billingCustomersTableName` | String | -| `billingProductsTableId` | UUID | -| `billingProductsTableName` | String | -| `billingPricesTableId` | UUID | -| `billingPricesTableName` | String | -| `billingSubscriptionsTableId` | UUID | -| `billingSubscriptionsTableName` | String | -| `billingWebhookEventsTableId` | UUID | -| `billingWebhookEventsTableName` | String | -| `processBillingEventFunction` | String | -| `prefix` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `notificationsTableId` | UUID | +| `readStateTableId` | UUID | +| `preferencesTableId` | UUID | +| `channelsTableId` | UUID | +| `deliveryLogTableId` | UUID | +| `suppressionsTableId` | UUID | +| `ownerTableId` | UUID | +| `userSettingsTableId` | UUID | +| `organizationSettingsTableId` | UUID | +| `hasChannels` | Boolean | +| `hasPreferences` | Boolean | +| `hasSettingsExtension` | Boolean | +| `hasDigestMetadata` | Boolean | +| `hasSubscriptions` | Boolean | +| `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `provider`, `productsTableId`, `pricesTableId`, `subscriptionsTableId`, `billingCustomersTableId`, `billingCustomersTableName`, `billingProductsTableId`, `billingProductsTableName`, `billingPricesTableId`, `billingPricesTableName`, `billingSubscriptionsTableId`, `billingSubscriptionsTableName`, `billingWebhookEventsTableId`, `billingWebhookEventsTableName`, `processBillingEventFunction`, `prefix`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `suppressionsTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`, `defaultPermissions`, `apiName`, `privateApiName` ### `profiles-module` @@ -1673,6 +1781,8 @@ CRUD operations for ProfilesModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `tableId` | UUID | | `tableName` | String | | `profilePermissionsTableId` | UUID | @@ -1693,20 +1803,20 @@ CRUD operations for ProfilesModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `apiName`, `privateApiName` -### `permissions-module` +### `billing-module` -CRUD operations for PermissionsModule records. +CRUD operations for BillingModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all permissionsModule records | -| `find-first` | Find first matching permissionsModule record | -| `get` | Get a permissionsModule by id | -| `create` | Create a new permissionsModule | -| `update` | Update an existing permissionsModule | -| `delete` | Delete a permissionsModule | +| `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:** @@ -1716,24 +1826,30 @@ CRUD operations for PermissionsModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | -| `tableId` | UUID | -| `tableName` | String | -| `defaultTableId` | UUID | -| `defaultTableName` | String | -| `bitlen` | Int | -| `scope` | String | +| `publicSchemaName` | String | +| `privateSchemaName` | String | +| `metersTableId` | UUID | +| `metersTableName` | String | +| `planSubscriptionsTableId` | UUID | +| `planSubscriptionsTableName` | String | +| `ledgerTableId` | UUID | +| `ledgerTableName` | String | +| `balancesTableId` | UUID | +| `balancesTableName` | String | +| `meterCreditsTableId` | UUID | +| `meterCreditsTableName` | String | +| `meterSourcesTableId` | UUID | +| `meterSourcesTableName` | String | +| `meterDefaultsTableId` | UUID | +| `meterDefaultsTableName` | String | +| `recordUsageFunction` | String | | `prefix` | String | -| `entityTableId` | UUID | -| `actorTableId` | UUID | -| `getPaddedMask` | String | -| `getMask` | String | -| `getByMask` | String | -| `getMaskByName` | String | +| `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `bitlen`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `getPaddedMask`, `getMask`, `getByMask`, `getMaskByName`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `meterCreditsTableId`, `meterCreditsTableName`, `meterSourcesTableId`, `meterSourcesTableName`, `meterDefaultsTableId`, `meterDefaultsTableName`, `recordUsageFunction`, `prefix`, `defaultPermissions`, `apiName`, `privateApiName` ### `relation-provision` @@ -1780,53 +1896,6 @@ CRUD operations for RelationProvision records. **Required create fields:** `databaseId`, `relationType`, `sourceTableId`, `targetTableId` **Optional create fields (backend defaults):** `fieldName`, `deleteAction`, `isRequired`, `apiRequired`, `junctionTableId`, `junctionTableName`, `junctionSchemaId`, `sourceFieldName`, `targetFieldName`, `useCompositeKey`, `createIndex`, `exposeInApi`, `nodes`, `grants`, `policies`, `outFieldId`, `outJunctionTableId`, `outSourceFieldId`, `outTargetFieldId` -### `function-module` - -CRUD operations for FunctionModule records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all functionModule records | -| `find-first` | Find first matching functionModule record | -| `get` | Get a functionModule by id | -| `create` | Create a new functionModule | -| `update` | Update an existing functionModule | -| `delete` | Delete a functionModule | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `privateSchemaId` | UUID | -| `publicSchemaName` | String | -| `privateSchemaName` | String | -| `definitionsTableId` | UUID | -| `invocationsTableId` | UUID | -| `executionLogsTableId` | UUID | -| `secretDefinitionsTableId` | UUID | -| `requirementsTableId` | UUID | -| `configDefinitionsTableId` | UUID | -| `configRequirementsTableId` | UUID | -| `definitionsTableName` | String | -| `invocationsTableName` | String | -| `executionLogsTableName` | String | -| `secretDefinitionsTableName` | String | -| `requirementsTableName` | String | -| `configRequirementsTableName` | String | -| `apiName` | String | -| `privateApiName` | String | -| `scope` | String | -| `prefix` | String | -| `entityTableId` | UUID | -| `policies` | JSON | -| `provisions` | JSON | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `definitionsTableId`, `invocationsTableId`, `executionLogsTableId`, `secretDefinitionsTableId`, `requirementsTableId`, `configDefinitionsTableId`, `configRequirementsTableId`, `definitionsTableName`, `invocationsTableName`, `executionLogsTableName`, `secretDefinitionsTableName`, `requirementsTableName`, `configRequirementsTableName`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `provisions` - ### `user-auth-module` CRUD operations for UserAuthModule records. @@ -1897,6 +1966,8 @@ CRUD operations for AgentModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `threadTableId` | UUID | | `messageTableId` | UUID | | `taskTableId` | UUID | @@ -1916,6 +1987,7 @@ CRUD operations for AgentModule records. | `hasPlans` | Boolean | | `hasResources` | Boolean | | `hasAgents` | Boolean | +| `shared` | Boolean | | `apiName` | String | | `privateApiName` | String | | `scope` | String | @@ -1924,9 +1996,10 @@ CRUD operations for AgentModule records. | `policies` | JSON | | `resources` | JSON | | `provisions` | JSON | +| `defaultPermissions` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `planTableId`, `agentTableId`, `personaTableId`, `resourceTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `planTableName`, `agentTableName`, `personaTableName`, `resourceTableName`, `hasPlans`, `hasResources`, `hasAgents`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `resources`, `provisions` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `threadTableId`, `messageTableId`, `taskTableId`, `promptsTableId`, `planTableId`, `agentTableId`, `personaTableId`, `resourceTableId`, `threadTableName`, `messageTableName`, `taskTableName`, `promptsTableName`, `planTableName`, `agentTableName`, `personaTableName`, `resourceTableName`, `hasPlans`, `hasResources`, `hasAgents`, `shared`, `apiName`, `privateApiName`, `scope`, `prefix`, `entityTableId`, `policies`, `resources`, `provisions`, `defaultPermissions` ### `limits-module` @@ -1949,6 +2022,8 @@ CRUD operations for LimitsModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `tableId` | UUID | | `tableName` | String | | `defaultTableId` | UUID | @@ -1981,7 +2056,7 @@ CRUD operations for LimitsModule records. | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `limitCreditsTableId`, `eventsTableId`, `creditCodesTableId`, `creditCodeItemsTableId`, `creditRedemptionsTableId`, `aggregateTableId`, `limitCapsTableId`, `limitCapsDefaultsTableId`, `capCheckTrigger`, `resolveCapFunction`, `limitWarningsTableId`, `limitWarningStateTableId`, `limitCheckSoftFunction`, `limitAggregateCheckSoftFunction`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `limitCreditsTableId`, `eventsTableId`, `creditCodesTableId`, `creditCodeItemsTableId`, `creditRedemptionsTableId`, `aggregateTableId`, `limitCapsTableId`, `limitCapsDefaultsTableId`, `capCheckTrigger`, `resolveCapFunction`, `limitWarningsTableId`, `limitWarningStateTableId`, `limitCheckSoftFunction`, `limitAggregateCheckSoftFunction`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` ### `memberships-module` @@ -2004,6 +2079,8 @@ CRUD operations for MembershipsModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `membershipsTableId` | UUID | | `membershipsTableName` | String | | `membersTableId` | UUID | @@ -2035,11 +2112,74 @@ CRUD operations for MembershipsModule records. | `entityIdsByPerm` | String | | `entityIdsFunction` | String | | `memberProfilesTableId` | UUID | +| `permissionDefaultPermissionsTableId` | UUID | +| `permissionDefaultGrantsTableId` | UUID | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `scope`, `prefix`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `memberProfilesTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `membershipsTableId`, `membershipsTableName`, `membersTableId`, `membersTableName`, `membershipDefaultsTableId`, `membershipDefaultsTableName`, `membershipSettingsTableId`, `membershipSettingsTableName`, `grantsTableId`, `grantsTableName`, `actorTableId`, `limitsTableId`, `defaultLimitsTableId`, `permissionsTableId`, `defaultPermissionsTableId`, `sprtTableId`, `adminGrantsTableId`, `adminGrantsTableName`, `ownerGrantsTableId`, `ownerGrantsTableName`, `scope`, `prefix`, `entityTableId`, `entityTableOwnerId`, `getOrgFn`, `actorMaskCheck`, `actorPermCheck`, `entityIdsByMask`, `entityIdsByPerm`, `entityIdsFunction`, `memberProfilesTableId`, `permissionDefaultPermissionsTableId`, `permissionDefaultGrantsTableId`, `apiName`, `privateApiName` + +### `entity-type-provision` + +CRUD operations for EntityTypeProvision records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all entityTypeProvision records | +| `find-first` | Find first matching entityTypeProvision record | +| `get` | Get a entityTypeProvision by id | +| `create` | Create a new entityTypeProvision | +| `update` | Update an existing entityTypeProvision | +| `delete` | Delete a entityTypeProvision | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `name` | String | +| `prefix` | String | +| `description` | String | +| `parentEntity` | String | +| `tableName` | String | +| `isVisible` | Boolean | +| `hasLimits` | Boolean | +| `hasProfiles` | Boolean | +| `hasLevels` | Boolean | +| `hasInvites` | Boolean | +| `hasInviteAchievements` | Boolean | +| `storage` | JSON | +| `namespaces` | JSON | +| `functions` | JSON | +| `graphs` | JSON | +| `agents` | JSON | +| `skipEntityPolicies` | Boolean | +| `tableProvision` | JSON | +| `outMembershipType` | Int | +| `outEntityTableId` | UUID | +| `outEntityTableName` | String | +| `outInstalledModules` | String | +| `outStorageModuleId` | UUID | +| `outBucketsTableId` | UUID | +| `outFilesTableId` | UUID | +| `outPathSharesTableId` | UUID | +| `outInvitesModuleId` | UUID | +| `outNamespaceModuleId` | UUID | +| `outNamespacesTableId` | UUID | +| `outNamespaceEventsTableId` | UUID | +| `outFunctionModuleId` | UUID | +| `outDefinitionsTableId` | UUID | +| `outInvocationsTableId` | UUID | +| `outExecutionLogsTableId` | UUID | +| `outSecretDefinitionsTableId` | UUID | +| `outGraphModuleId` | UUID | +| `outGraphsTableId` | UUID | +| `outAgentModuleId` | UUID | + +**Required create fields:** `databaseId`, `name`, `prefix` +**Optional create fields (backend defaults):** `description`, `parentEntity`, `tableName`, `isVisible`, `hasLimits`, `hasProfiles`, `hasLevels`, `hasInvites`, `hasInviteAchievements`, `storage`, `namespaces`, `functions`, `graphs`, `agents`, `skipEntityPolicies`, `tableProvision`, `outMembershipType`, `outEntityTableId`, `outEntityTableName`, `outInstalledModules`, `outStorageModuleId`, `outBucketsTableId`, `outFilesTableId`, `outPathSharesTableId`, `outInvitesModuleId`, `outNamespaceModuleId`, `outNamespacesTableId`, `outNamespaceEventsTableId`, `outFunctionModuleId`, `outDefinitionsTableId`, `outInvocationsTableId`, `outExecutionLogsTableId`, `outSecretDefinitionsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` ### `storage-module` @@ -2062,6 +2202,8 @@ CRUD operations for StorageModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `bucketsTableId` | UUID | | `filesTableId` | UUID | | `bucketsTableName` | String | @@ -2092,11 +2234,12 @@ CRUD operations for StorageModule records. | `hasConfirmUpload` | Boolean | | `confirmUploadDelay` | Interval | | `fileEventsTableId` | UUID | +| `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `scope`, `prefix`, `policies`, `provisions`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId`, `apiName`, `privateApiName` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `scope`, `prefix`, `policies`, `provisions`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `hasPathShares`, `pathSharesTableId`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds`, `maxBulkFiles`, `maxBulkTotalSize`, `hasVersioning`, `hasContentHash`, `hasCustomKeys`, `hasAuditLog`, `hasConfirmUpload`, `confirmUploadDelay`, `fileEventsTableId`, `defaultPermissions`, `apiName`, `privateApiName` ### `events-module` @@ -2119,6 +2262,8 @@ CRUD operations for EventsModule records. | `databaseId` | UUID | | `schemaId` | UUID | | `privateSchemaId` | UUID | +| `publicSchemaName` | String | +| `privateSchemaName` | String | | `eventsTableId` | UUID | | `eventsTableName` | String | | `eventAggregatesTableId` | UUID | @@ -2154,74 +2299,12 @@ CRUD operations for EventsModule records. | `prefix` | String | | `entityTableId` | UUID | | `actorTableId` | UUID | +| `defaultPermissions` | String | | `apiName` | String | | `privateApiName` | String | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `eventsTableId`, `eventsTableName`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `levelsTableId`, `levelsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelGrantsTableId`, `levelGrantsTableName`, `achievementRewardsTableId`, `achievementRewardsTableName`, `recordEvent`, `removeEvent`, `tgEvent`, `tgEventToggle`, `tgEventToggleBool`, `tgEventBool`, `upsertAggregate`, `tgUpdateAggregates`, `pruneEvents`, `stepsRequired`, `levelAchieved`, `tgCheckAchievements`, `grantAchievement`, `tgAchievementReward`, `interval`, `retention`, `premake`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `apiName`, `privateApiName` - -### `entity-type-provision` - -CRUD operations for EntityTypeProvision records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all entityTypeProvision records | -| `find-first` | Find first matching entityTypeProvision record | -| `get` | Get a entityTypeProvision by id | -| `create` | Create a new entityTypeProvision | -| `update` | Update an existing entityTypeProvision | -| `delete` | Delete a entityTypeProvision | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `name` | String | -| `prefix` | String | -| `description` | String | -| `parentEntity` | String | -| `tableName` | String | -| `isVisible` | Boolean | -| `hasLimits` | Boolean | -| `hasProfiles` | Boolean | -| `hasLevels` | Boolean | -| `hasInvites` | Boolean | -| `hasInviteAchievements` | Boolean | -| `storage` | JSON | -| `namespaces` | JSON | -| `functions` | JSON | -| `graphs` | JSON | -| `agents` | JSON | -| `skipEntityPolicies` | Boolean | -| `tableProvision` | JSON | -| `outMembershipType` | Int | -| `outEntityTableId` | UUID | -| `outEntityTableName` | String | -| `outInstalledModules` | String | -| `outStorageModuleId` | UUID | -| `outBucketsTableId` | UUID | -| `outFilesTableId` | UUID | -| `outPathSharesTableId` | UUID | -| `outInvitesModuleId` | UUID | -| `outNamespaceModuleId` | UUID | -| `outNamespacesTableId` | UUID | -| `outNamespaceEventsTableId` | UUID | -| `outFunctionModuleId` | UUID | -| `outDefinitionsTableId` | UUID | -| `outInvocationsTableId` | UUID | -| `outExecutionLogsTableId` | UUID | -| `outSecretDefinitionsTableId` | UUID | -| `outRequirementsTableId` | UUID | -| `outConfigRequirementsTableId` | UUID | -| `outGraphModuleId` | UUID | -| `outGraphsTableId` | UUID | -| `outAgentModuleId` | UUID | - -**Required create fields:** `databaseId`, `name`, `prefix` -**Optional create fields (backend defaults):** `description`, `parentEntity`, `tableName`, `isVisible`, `hasLimits`, `hasProfiles`, `hasLevels`, `hasInvites`, `hasInviteAchievements`, `storage`, `namespaces`, `functions`, `graphs`, `agents`, `skipEntityPolicies`, `tableProvision`, `outMembershipType`, `outEntityTableId`, `outEntityTableName`, `outInstalledModules`, `outStorageModuleId`, `outBucketsTableId`, `outFilesTableId`, `outPathSharesTableId`, `outInvitesModuleId`, `outNamespaceModuleId`, `outNamespacesTableId`, `outNamespaceEventsTableId`, `outFunctionModuleId`, `outDefinitionsTableId`, `outInvocationsTableId`, `outExecutionLogsTableId`, `outSecretDefinitionsTableId`, `outRequirementsTableId`, `outConfigRequirementsTableId`, `outGraphModuleId`, `outGraphsTableId`, `outAgentModuleId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `publicSchemaName`, `privateSchemaName`, `eventsTableId`, `eventsTableName`, `eventAggregatesTableId`, `eventAggregatesTableName`, `eventTypesTableId`, `eventTypesTableName`, `levelsTableId`, `levelsTableName`, `levelRequirementsTableId`, `levelRequirementsTableName`, `levelGrantsTableId`, `levelGrantsTableName`, `achievementRewardsTableId`, `achievementRewardsTableName`, `recordEvent`, `removeEvent`, `tgEvent`, `tgEventToggle`, `tgEventToggleBool`, `tgEventBool`, `upsertAggregate`, `tgUpdateAggregates`, `pruneEvents`, `stepsRequired`, `levelAchieved`, `tgCheckAchievements`, `grantAchievement`, `tgAchievementReward`, `interval`, `retention`, `premake`, `scope`, `prefix`, `entityTableId`, `actorTableId`, `defaultPermissions`, `apiName`, `privateApiName` ## Custom Operations diff --git a/sdk/constructive-cli/src/modules/cli/commands.ts b/sdk/constructive-cli/src/modules/cli/commands.ts index bb08796b2d..6060710cfe 100644 --- a/sdk/constructive-cli/src/modules/cli/commands.ts +++ b/sdk/constructive-cli/src/modules/cli/commands.ts @@ -23,45 +23,46 @@ import rateLimitsModuleCmd from './commands/rate-limits-module'; import usersModuleCmd from './commands/users-module'; import webauthnCredentialsModuleCmd from './commands/webauthn-credentials-module'; import cryptoAddressesModuleCmd from './commands/crypto-addresses-module'; -import identityProvidersModuleCmd from './commands/identity-providers-module'; import denormalizedTableFieldCmd from './commands/denormalized-table-field'; +import identityProvidersModuleCmd from './commands/identity-providers-module'; import rlsModuleCmd from './commands/rls-module'; import blueprintCmd from './commands/blueprint'; import blueprintTemplateCmd from './commands/blueprint-template'; import blueprintConstructionCmd from './commands/blueprint-construction'; import cryptoAuthModuleCmd from './commands/crypto-auth-module'; -import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import sessionsModuleCmd from './commands/sessions-module'; -import configSecretsModuleCmd from './commands/config-secrets-module'; +import secureTableProvisionCmd from './commands/secure-table-provision'; import merkleStoreModuleCmd from './commands/merkle-store-module'; import graphModuleCmd from './commands/graph-module'; -import secureTableProvisionCmd from './commands/secure-table-provision'; -import invitesModuleCmd from './commands/invites-module'; import databaseProvisionModuleCmd from './commands/database-provision-module'; -import namespaceModuleCmd from './commands/namespace-module'; +import configSecretsModuleCmd from './commands/config-secrets-module'; +import rateLimitMetersModuleCmd from './commands/rate-limit-meters-module'; import realtimeModuleCmd from './commands/realtime-module'; import webauthnAuthModuleCmd from './commands/webauthn-auth-module'; +import functionInvocationModuleCmd from './commands/function-invocation-module'; +import functionModuleCmd from './commands/function-module'; +import invitesModuleCmd from './commands/invites-module'; +import namespaceModuleCmd from './commands/namespace-module'; import computeLogModuleCmd from './commands/compute-log-module'; import inferenceLogModuleCmd from './commands/inference-log-module'; import storageLogModuleCmd from './commands/storage-log-module'; import transferLogModuleCmd from './commands/transfer-log-module'; -import dbUsageModuleCmd from './commands/db-usage-module'; -import notificationsModuleCmd from './commands/notifications-module'; import plansModuleCmd from './commands/plans-module'; -import hierarchyModuleCmd from './commands/hierarchy-module'; -import billingModuleCmd from './commands/billing-module'; import billingProviderModuleCmd from './commands/billing-provider-module'; -import profilesModuleCmd from './commands/profiles-module'; +import dbUsageModuleCmd from './commands/db-usage-module'; +import hierarchyModuleCmd from './commands/hierarchy-module'; import permissionsModuleCmd from './commands/permissions-module'; +import notificationsModuleCmd from './commands/notifications-module'; +import profilesModuleCmd from './commands/profiles-module'; +import billingModuleCmd from './commands/billing-module'; import relationProvisionCmd from './commands/relation-provision'; -import functionModuleCmd from './commands/function-module'; import userAuthModuleCmd from './commands/user-auth-module'; import agentModuleCmd from './commands/agent-module'; import limitsModuleCmd from './commands/limits-module'; import membershipsModuleCmd from './commands/memberships-module'; +import entityTypeProvisionCmd from './commands/entity-type-provision'; import storageModuleCmd from './commands/storage-module'; import eventsModuleCmd from './commands/events-module'; -import entityTypeProvisionCmd from './commands/entity-type-provision'; import resolveBlueprintFieldCmd from './commands/resolve-blueprint-field'; import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; import constructBlueprintCmd from './commands/construct-blueprint'; @@ -101,45 +102,46 @@ const createCommandMap: () => Record< 'users-module': usersModuleCmd, 'webauthn-credentials-module': webauthnCredentialsModuleCmd, 'crypto-addresses-module': cryptoAddressesModuleCmd, - 'identity-providers-module': identityProvidersModuleCmd, 'denormalized-table-field': denormalizedTableFieldCmd, + 'identity-providers-module': identityProvidersModuleCmd, 'rls-module': rlsModuleCmd, blueprint: blueprintCmd, 'blueprint-template': blueprintTemplateCmd, 'blueprint-construction': blueprintConstructionCmd, 'crypto-auth-module': cryptoAuthModuleCmd, - 'rate-limit-meters-module': rateLimitMetersModuleCmd, 'sessions-module': sessionsModuleCmd, - 'config-secrets-module': configSecretsModuleCmd, + 'secure-table-provision': secureTableProvisionCmd, 'merkle-store-module': merkleStoreModuleCmd, 'graph-module': graphModuleCmd, - 'secure-table-provision': secureTableProvisionCmd, - 'invites-module': invitesModuleCmd, 'database-provision-module': databaseProvisionModuleCmd, - 'namespace-module': namespaceModuleCmd, + 'config-secrets-module': configSecretsModuleCmd, + 'rate-limit-meters-module': rateLimitMetersModuleCmd, 'realtime-module': realtimeModuleCmd, 'webauthn-auth-module': webauthnAuthModuleCmd, + 'function-invocation-module': functionInvocationModuleCmd, + 'function-module': functionModuleCmd, + 'invites-module': invitesModuleCmd, + 'namespace-module': namespaceModuleCmd, 'compute-log-module': computeLogModuleCmd, 'inference-log-module': inferenceLogModuleCmd, 'storage-log-module': storageLogModuleCmd, 'transfer-log-module': transferLogModuleCmd, - 'db-usage-module': dbUsageModuleCmd, - 'notifications-module': notificationsModuleCmd, 'plans-module': plansModuleCmd, - 'hierarchy-module': hierarchyModuleCmd, - 'billing-module': billingModuleCmd, 'billing-provider-module': billingProviderModuleCmd, - 'profiles-module': profilesModuleCmd, + 'db-usage-module': dbUsageModuleCmd, + 'hierarchy-module': hierarchyModuleCmd, 'permissions-module': permissionsModuleCmd, + 'notifications-module': notificationsModuleCmd, + 'profiles-module': profilesModuleCmd, + 'billing-module': billingModuleCmd, 'relation-provision': relationProvisionCmd, - 'function-module': functionModuleCmd, 'user-auth-module': userAuthModuleCmd, 'agent-module': agentModuleCmd, 'limits-module': limitsModuleCmd, 'memberships-module': membershipsModuleCmd, + 'entity-type-provision': entityTypeProvisionCmd, 'storage-module': storageModuleCmd, 'events-module': eventsModuleCmd, - 'entity-type-provision': entityTypeProvisionCmd, 'resolve-blueprint-field': resolveBlueprintFieldCmd, 'resolve-blueprint-table': resolveBlueprintTableCmd, 'construct-blueprint': constructBlueprintCmd, @@ -154,7 +156,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n sessions-module sessionsModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n invites-module invitesModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n namespace-module namespaceModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n notifications-module notificationsModule CRUD operations\n plans-module plansModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n billing-module billingModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n profiles-module profilesModule CRUD operations\n permissions-module permissionsModule CRUD operations\n relation-provision relationProvision CRUD operations\n function-module functionModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\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 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 construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (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, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\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 provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\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 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 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 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 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 default-ids-module defaultIdsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n user-state-module userStateModule CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n config-secrets-org-module configSecretsOrgModule CRUD operations\n devices-module devicesModule CRUD operations\n i-18-n-module i18NModule CRUD operations\n user-credentials-module userCredentialsModule CRUD operations\n user-settings-module userSettingsModule CRUD operations\n config-secrets-user-module configSecretsUserModule CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n emails-module emailsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n users-module usersModule CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n rls-module rlsModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n sessions-module sessionsModule CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n merkle-store-module merkleStoreModule CRUD operations\n graph-module graphModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n config-secrets-module configSecretsModule CRUD operations\n rate-limit-meters-module rateLimitMetersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n function-invocation-module functionInvocationModule CRUD operations\n function-module functionModule CRUD operations\n invites-module invitesModule CRUD operations\n namespace-module namespaceModule CRUD operations\n compute-log-module computeLogModule CRUD operations\n inference-log-module inferenceLogModule CRUD operations\n storage-log-module storageLogModule CRUD operations\n transfer-log-module transferLogModule CRUD operations\n plans-module plansModule CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n db-usage-module dbUsageModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n permissions-module permissionsModule CRUD operations\n notifications-module notificationsModule CRUD operations\n profiles-module profilesModule CRUD operations\n billing-module billingModule CRUD operations\n relation-provision relationProvision CRUD operations\n user-auth-module userAuthModule CRUD operations\n agent-module agentModule CRUD operations\n limits-module limitsModule CRUD operations\n memberships-module membershipsModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n storage-module storageModule CRUD operations\n events-module eventsModule CRUD operations\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 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 construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (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, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] \u2014 resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\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 provision-check-constraint Creates a check constraint on a table from a $type + data blueprint definition. Supports: CheckOneOf (enum validation via = ANY(ARRAY[...])), CheckGreaterThan (single-column > value or cross-column), CheckLessThan (single-column < value or cross-column), CheckNotEqual (cross-column inequality). Builds AST expressions via ast_helpers and inserts into metaschema_public.check_constraint. Graceful: skips if a constraint with the same name already exists.\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 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 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 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 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/modules/cli/commands/agent-module.ts b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts index a8bff26287..0f91b0444c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/agent-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', threadTableId: 'uuid', messageTableId: 'uuid', taskTableId: 'uuid', @@ -39,6 +41,7 @@ const fieldSchema: FieldSchema = { hasPlans: 'boolean', hasResources: 'boolean', hasAgents: 'boolean', + shared: 'boolean', apiName: 'string', privateApiName: 'string', scope: 'string', @@ -47,6 +50,7 @@ const fieldSchema: FieldSchema = { policies: 'json', resources: 'json', provisions: 'json', + defaultPermissions: 'string', }; const usage = '\nagent-module \n\nCommands:\n list List agentModule records\n find-first Find first matching agentModule record\n get Get a agentModule by ID\n create Create a new agentModule\n update Update an existing agentModule\n delete Delete a agentModule\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -103,6 +107,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, @@ -122,6 +128,7 @@ async function handleList(argv: Partial>, _prompter: Inq hasPlans: true, hasResources: true, hasAgents: true, + shared: true, apiName: true, privateApiName: true, scope: true, @@ -130,6 +137,7 @@ async function handleList(argv: Partial>, _prompter: Inq policies: true, resources: true, provisions: true, + defaultPermissions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -154,6 +162,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, @@ -173,6 +183,7 @@ async function handleFindFirst(argv: Partial>, _prompter hasPlans: true, hasResources: true, hasAgents: true, + shared: true, apiName: true, privateApiName: true, scope: true, @@ -181,6 +192,7 @@ async function handleFindFirst(argv: Partial>, _prompter policies: true, resources: true, provisions: true, + defaultPermissions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -217,6 +229,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, @@ -236,6 +250,7 @@ async function handleGet(argv: Partial>, prompter: Inqui hasPlans: true, hasResources: true, hasAgents: true, + shared: true, apiName: true, privateApiName: true, scope: true, @@ -244,6 +259,7 @@ async function handleGet(argv: Partial>, prompter: Inqui policies: true, resources: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -279,6 +295,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'threadTableId', @@ -412,6 +442,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'shared', + message: 'shared', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -468,6 +505,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -481,6 +525,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, threadTableId: cleanedData.threadTableId, messageTableId: cleanedData.messageTableId, taskTableId: cleanedData.taskTableId, @@ -500,6 +546,7 @@ async function handleCreate(argv: Partial>, prompter: In hasPlans: cleanedData.hasPlans, hasResources: cleanedData.hasResources, hasAgents: cleanedData.hasAgents, + shared: cleanedData.shared, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -508,12 +555,15 @@ async function handleCreate(argv: Partial>, prompter: In policies: cleanedData.policies, resources: cleanedData.resources, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, @@ -533,6 +583,7 @@ async function handleCreate(argv: Partial>, prompter: In hasPlans: true, hasResources: true, hasAgents: true, + shared: true, apiName: true, privateApiName: true, scope: true, @@ -541,6 +592,7 @@ async function handleCreate(argv: Partial>, prompter: In policies: true, resources: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -582,6 +634,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'threadTableId', @@ -715,6 +781,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'shared', + message: 'shared', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -771,6 +844,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AgentModulePatch; @@ -784,6 +864,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, threadTableId: cleanedData.threadTableId, messageTableId: cleanedData.messageTableId, taskTableId: cleanedData.taskTableId, @@ -803,6 +885,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasPlans: cleanedData.hasPlans, hasResources: cleanedData.hasResources, hasAgents: cleanedData.hasAgents, + shared: cleanedData.shared, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -811,12 +894,15 @@ async function handleUpdate(argv: Partial>, prompter: In policies: cleanedData.policies, resources: cleanedData.resources, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, @@ -836,6 +922,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasPlans: true, hasResources: true, hasAgents: true, + shared: true, apiName: true, privateApiName: true, scope: true, @@ -844,6 +931,7 @@ async function handleUpdate(argv: Partial>, prompter: In policies: true, resources: true, provisions: true, + defaultPermissions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts index afc9c1e66c..ee532144d9 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/billing-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', metersTableId: 'uuid', metersTableName: 'string', planSubscriptionsTableId: 'uuid', @@ -36,6 +38,7 @@ const fieldSchema: FieldSchema = { meterDefaultsTableName: 'string', recordUsageFunction: 'string', prefix: 'string', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -94,6 +97,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, @@ -110,6 +115,7 @@ async function handleList(argv: Partial>, _prompter: Inq meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -136,6 +142,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, @@ -152,6 +160,7 @@ async function handleFindFirst(argv: Partial>, _prompter meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -190,6 +199,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, @@ -206,6 +217,7 @@ async function handleGet(argv: Partial>, prompter: Inqui meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -243,6 +255,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'metersTableId', @@ -355,6 +381,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -382,6 +415,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, metersTableId: cleanedData.metersTableId, metersTableName: cleanedData.metersTableName, planSubscriptionsTableId: cleanedData.planSubscriptionsTableId, @@ -398,6 +433,7 @@ async function handleCreate(argv: Partial>, prompter: In meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -406,6 +442,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, @@ -422,6 +460,7 @@ async function handleCreate(argv: Partial>, prompter: In meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -465,6 +504,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'metersTableId', @@ -577,6 +630,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -604,6 +664,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, metersTableId: cleanedData.metersTableId, metersTableName: cleanedData.metersTableName, planSubscriptionsTableId: cleanedData.planSubscriptionsTableId, @@ -620,6 +682,7 @@ async function handleUpdate(argv: Partial>, prompter: In meterDefaultsTableName: cleanedData.meterDefaultsTableName, recordUsageFunction: cleanedData.recordUsageFunction, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -628,6 +691,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, @@ -644,6 +709,7 @@ async function handleUpdate(argv: Partial>, prompter: In meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts index f4459aa5a7..66f273d01c 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/compute-log-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', computeLogTableId: 'uuid', computeLogTableName: 'string', usageDailyTableId: 'uuid', @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, @@ -126,6 +130,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, @@ -175,6 +181,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, @@ -223,6 +231,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'computeLogTableId', @@ -327,6 +349,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, computeLogTableId: cleanedData.computeLogTableId, computeLogTableName: cleanedData.computeLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -346,6 +370,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, @@ -400,6 +426,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'computeLogTableId', @@ -504,6 +544,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, computeLogTableId: cleanedData.computeLogTableId, computeLogTableName: cleanedData.computeLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -523,6 +565,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts index 3be6cdea6c..370e863b61 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/config-secrets-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableId: 'uuid', configDefinitionsTableId: 'uuid', tableName: 'string', @@ -87,6 +89,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, @@ -126,6 +130,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, @@ -177,6 +183,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, @@ -223,6 +231,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -313,6 +335,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, configDefinitionsTableId: cleanedData.configDefinitionsTableId, tableName: cleanedData.tableName, @@ -330,6 +354,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, @@ -382,6 +408,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -472,6 +512,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, configDefinitionsTableId: cleanedData.configDefinitionsTableId, tableName: cleanedData.tableName, @@ -489,6 +531,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts index c20430eb8e..bc3f99f1b3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/db-usage-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableStatsLogTableId: 'uuid', tableStatsLogTableName: 'string', tableStatsDailyTableId: 'uuid', @@ -33,6 +35,7 @@ const fieldSchema: FieldSchema = { premake: 'int', scope: 'string', prefix: 'string', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -91,6 +94,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, @@ -104,6 +109,7 @@ async function handleList(argv: Partial>, _prompter: Inq premake: true, scope: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -130,6 +136,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, @@ -143,6 +151,7 @@ async function handleFindFirst(argv: Partial>, _prompter premake: true, scope: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -181,6 +190,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, @@ -194,6 +205,7 @@ async function handleGet(argv: Partial>, prompter: Inqui premake: true, scope: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -231,6 +243,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableStatsLogTableId', @@ -322,6 +348,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -349,6 +382,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableStatsLogTableId: cleanedData.tableStatsLogTableId, tableStatsLogTableName: cleanedData.tableStatsLogTableName, tableStatsDailyTableId: cleanedData.tableStatsDailyTableId, @@ -362,6 +397,7 @@ async function handleCreate(argv: Partial>, prompter: In premake: cleanedData.premake, scope: cleanedData.scope, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -370,6 +406,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, @@ -383,6 +421,7 @@ async function handleCreate(argv: Partial>, prompter: In premake: true, scope: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -426,6 +465,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableStatsLogTableId', @@ -517,6 +570,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -544,6 +604,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableStatsLogTableId: cleanedData.tableStatsLogTableId, tableStatsLogTableName: cleanedData.tableStatsLogTableName, tableStatsDailyTableId: cleanedData.tableStatsDailyTableId, @@ -557,6 +619,7 @@ async function handleUpdate(argv: Partial>, prompter: In premake: cleanedData.premake, scope: cleanedData.scope, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -565,6 +628,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, @@ -578,6 +643,7 @@ async function handleUpdate(argv: Partial>, prompter: In premake: true, scope: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts b/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts index b7c806ea44..db10301c25 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/entity-type-provision.ts @@ -53,8 +53,6 @@ const fieldSchema: FieldSchema = { outInvocationsTableId: 'uuid', outExecutionLogsTableId: 'uuid', outSecretDefinitionsTableId: 'uuid', - outRequirementsTableId: 'uuid', - outConfigRequirementsTableId: 'uuid', outGraphModuleId: 'uuid', outGraphsTableId: 'uuid', outAgentModuleId: 'uuid', @@ -147,8 +145,6 @@ async function handleList(argv: Partial>, _prompter: Inq outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, - outRequirementsTableId: true, - outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -213,8 +209,6 @@ async function handleFindFirst(argv: Partial>, _prompter outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, - outRequirementsTableId: true, - outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -291,8 +285,6 @@ async function handleGet(argv: Partial>, prompter: Inqui outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, - outRequirementsTableId: true, - outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -560,20 +552,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'outRequirementsTableId', - message: 'outRequirementsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'outConfigRequirementsTableId', - message: 'outConfigRequirementsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'outGraphModuleId', @@ -641,8 +619,6 @@ async function handleCreate(argv: Partial>, prompter: In outInvocationsTableId: cleanedData.outInvocationsTableId, outExecutionLogsTableId: cleanedData.outExecutionLogsTableId, outSecretDefinitionsTableId: cleanedData.outSecretDefinitionsTableId, - outRequirementsTableId: cleanedData.outRequirementsTableId, - outConfigRequirementsTableId: cleanedData.outConfigRequirementsTableId, outGraphModuleId: cleanedData.outGraphModuleId, outGraphsTableId: cleanedData.outGraphsTableId, outAgentModuleId: cleanedData.outAgentModuleId, @@ -685,8 +661,6 @@ async function handleCreate(argv: Partial>, prompter: In outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, - outRequirementsTableId: true, - outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, @@ -960,20 +934,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'outRequirementsTableId', - message: 'outRequirementsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'outConfigRequirementsTableId', - message: 'outConfigRequirementsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'outGraphModuleId', @@ -1041,8 +1001,6 @@ async function handleUpdate(argv: Partial>, prompter: In outInvocationsTableId: cleanedData.outInvocationsTableId, outExecutionLogsTableId: cleanedData.outExecutionLogsTableId, outSecretDefinitionsTableId: cleanedData.outSecretDefinitionsTableId, - outRequirementsTableId: cleanedData.outRequirementsTableId, - outConfigRequirementsTableId: cleanedData.outConfigRequirementsTableId, outGraphModuleId: cleanedData.outGraphModuleId, outGraphsTableId: cleanedData.outGraphsTableId, outAgentModuleId: cleanedData.outAgentModuleId, @@ -1085,8 +1043,6 @@ async function handleUpdate(argv: Partial>, prompter: In outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, - outRequirementsTableId: true, - outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts index 3d4852816e..9061fa3368 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/events-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/events-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', eventsTableId: 'uuid', eventsTableName: 'string', eventAggregatesTableId: 'uuid', @@ -55,6 +57,7 @@ const fieldSchema: FieldSchema = { prefix: 'string', entityTableId: 'uuid', actorTableId: 'uuid', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -113,6 +116,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, @@ -148,6 +153,7 @@ async function handleList(argv: Partial>, _prompter: Inq prefix: true, entityTableId: true, actorTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -174,6 +180,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, @@ -209,6 +217,7 @@ async function handleFindFirst(argv: Partial>, _prompter prefix: true, entityTableId: true, actorTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -247,6 +256,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, @@ -282,6 +293,7 @@ async function handleGet(argv: Partial>, prompter: Inqui prefix: true, entityTableId: true, actorTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -319,6 +331,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'eventsTableId', @@ -564,6 +590,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -591,6 +624,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -626,6 +661,7 @@ async function handleCreate(argv: Partial>, prompter: In prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -634,6 +670,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, @@ -669,6 +707,7 @@ async function handleCreate(argv: Partial>, prompter: In prefix: true, entityTableId: true, actorTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -712,6 +751,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'eventsTableId', @@ -957,6 +1010,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -984,6 +1044,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, eventsTableId: cleanedData.eventsTableId, eventsTableName: cleanedData.eventsTableName, eventAggregatesTableId: cleanedData.eventAggregatesTableId, @@ -1019,6 +1081,7 @@ async function handleUpdate(argv: Partial>, prompter: In prefix: cleanedData.prefix, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -1027,6 +1090,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, @@ -1062,6 +1127,7 @@ async function handleUpdate(argv: Partial>, prompter: In prefix: true, entityTableId: true, actorTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts new file mode 100644 index 0000000000..386104c734 --- /dev/null +++ b/sdk/constructive-cli/src/modules/cli/commands/function-invocation-module.ts @@ -0,0 +1,611 @@ +/** + * CLI commands for FunctionInvocationModule + * @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 { + CreateFunctionInvocationModuleInput, + FunctionInvocationModulePatch, + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', + invocationsTableId: 'uuid', + executionLogsTableId: 'uuid', + invocationsTableName: 'string', + executionLogsTableName: 'string', + apiName: 'string', + privateApiName: 'string', + scope: 'string', + prefix: 'string', + entityTableId: 'uuid', + policies: 'json', + provisions: 'json', + defaultPermissions: 'string', +}; +const usage = + '\nfunction-invocation-module \n\nCommands:\n list List functionInvocationModule records\n find-first Find first matching functionInvocationModule record\n get Get a functionInvocationModule by ID\n create Create a new functionInvocationModule\n update Update an existing functionInvocationModule\n delete Delete a functionInvocationModule\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\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, + publicSchemaName: true, + privateSchemaName: true, + invocationsTableId: true, + executionLogsTableId: true, + invocationsTableName: true, + executionLogsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + defaultPermissions: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + > & { + select: FunctionInvocationModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.functionInvocationModule.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, + publicSchemaName: true, + privateSchemaName: true, + invocationsTableId: true, + executionLogsTableId: true, + invocationsTableName: true, + executionLogsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + defaultPermissions: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + > & { + select: FunctionInvocationModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.functionInvocationModule.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.functionInvocationModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + invocationsTableId: true, + executionLogsTableId: true, + invocationsTableName: true, + executionLogsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + defaultPermissions: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationsTableId', + message: 'invocationsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionLogsTableId', + message: 'executionLogsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationsTableName', + message: 'invocationsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionLogsTableName', + message: 'executionLogsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateFunctionInvocationModuleInput['functionInvocationModule']; + const client = getClient(); + const result = await client.functionInvocationModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + invocationsTableId: cleanedData.invocationsTableId, + executionLogsTableId: cleanedData.executionLogsTableId, + invocationsTableName: cleanedData.invocationsTableName, + executionLogsTableName: cleanedData.executionLogsTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + invocationsTableId: true, + executionLogsTableId: true, + invocationsTableName: true, + executionLogsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + defaultPermissions: 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: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationsTableId', + message: 'invocationsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionLogsTableId', + message: 'executionLogsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'invocationsTableName', + message: 'invocationsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'executionLogsTableName', + message: 'executionLogsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'apiName', + message: 'apiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateApiName', + message: 'privateApiName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'scope', + message: 'scope', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityTableId', + message: 'entityTableId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'policies', + message: 'policies', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'provisions', + message: 'provisions', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as FunctionInvocationModulePatch; + const client = getClient(); + const result = await client.functionInvocationModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, + invocationsTableId: cleanedData.invocationsTableId, + executionLogsTableId: cleanedData.executionLogsTableId, + invocationsTableName: cleanedData.invocationsTableName, + executionLogsTableName: cleanedData.executionLogsTableName, + apiName: cleanedData.apiName, + privateApiName: cleanedData.privateApiName, + scope: cleanedData.scope, + prefix: cleanedData.prefix, + entityTableId: cleanedData.entityTableId, + policies: cleanedData.policies, + provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, + invocationsTableId: true, + executionLogsTableId: true, + invocationsTableName: true, + executionLogsTableName: true, + apiName: true, + privateApiName: true, + scope: true, + prefix: true, + entityTableId: true, + policies: true, + provisions: true, + defaultPermissions: 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.functionInvocationModule + .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/modules/cli/commands/function-module.ts b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts index bd4969b341..3bb2cd0301 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/function-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/function-module.ts @@ -23,18 +23,9 @@ const fieldSchema: FieldSchema = { publicSchemaName: 'string', privateSchemaName: 'string', definitionsTableId: 'uuid', - invocationsTableId: 'uuid', - executionLogsTableId: 'uuid', secretDefinitionsTableId: 'uuid', - requirementsTableId: 'uuid', - configDefinitionsTableId: 'uuid', - configRequirementsTableId: 'uuid', definitionsTableName: 'string', - invocationsTableName: 'string', - executionLogsTableName: 'string', secretDefinitionsTableName: 'string', - requirementsTableName: 'string', - configRequirementsTableName: 'string', apiName: 'string', privateApiName: 'string', scope: 'string', @@ -42,6 +33,7 @@ const fieldSchema: FieldSchema = { entityTableId: 'uuid', policies: 'json', provisions: 'json', + defaultPermissions: 'string', }; const usage = '\nfunction-module \n\nCommands:\n list List functionModule records\n find-first Find first matching functionModule record\n get Get a functionModule by ID\n create Create a new functionModule\n update Update an existing functionModule\n delete Delete a functionModule\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -101,18 +93,9 @@ async function handleList(argv: Partial>, _prompter: Inq publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - invocationsTableId: true, - executionLogsTableId: true, secretDefinitionsTableId: true, - requirementsTableId: true, - configDefinitionsTableId: true, - configRequirementsTableId: true, definitionsTableName: true, - invocationsTableName: true, - executionLogsTableName: true, secretDefinitionsTableName: true, - requirementsTableName: true, - configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -120,6 +103,7 @@ async function handleList(argv: Partial>, _prompter: Inq entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -147,18 +131,9 @@ async function handleFindFirst(argv: Partial>, _prompter publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - invocationsTableId: true, - executionLogsTableId: true, secretDefinitionsTableId: true, - requirementsTableId: true, - configDefinitionsTableId: true, - configRequirementsTableId: true, definitionsTableName: true, - invocationsTableName: true, - executionLogsTableName: true, secretDefinitionsTableName: true, - requirementsTableName: true, - configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -166,6 +141,7 @@ async function handleFindFirst(argv: Partial>, _prompter entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -205,18 +181,9 @@ async function handleGet(argv: Partial>, prompter: Inqui publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - invocationsTableId: true, - executionLogsTableId: true, secretDefinitionsTableId: true, - requirementsTableId: true, - configDefinitionsTableId: true, - configRequirementsTableId: true, definitionsTableName: true, - invocationsTableName: true, - executionLogsTableName: true, secretDefinitionsTableName: true, - requirementsTableName: true, - configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -224,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -280,20 +248,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'invocationsTableId', - message: 'invocationsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'executionLogsTableId', - message: 'executionLogsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'secretDefinitionsTableId', @@ -301,27 +255,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'requirementsTableId', - message: 'requirementsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configRequirementsTableId', - message: 'configRequirementsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'definitionsTableName', @@ -329,20 +262,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'invocationsTableName', - message: 'invocationsTableName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'executionLogsTableName', - message: 'executionLogsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'secretDefinitionsTableName', @@ -350,20 +269,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'requirementsTableName', - message: 'requirementsTableName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configRequirementsTableName', - message: 'configRequirementsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -413,6 +318,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -429,18 +341,9 @@ async function handleCreate(argv: Partial>, prompter: In publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, definitionsTableId: cleanedData.definitionsTableId, - invocationsTableId: cleanedData.invocationsTableId, - executionLogsTableId: cleanedData.executionLogsTableId, secretDefinitionsTableId: cleanedData.secretDefinitionsTableId, - requirementsTableId: cleanedData.requirementsTableId, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, - configRequirementsTableId: cleanedData.configRequirementsTableId, definitionsTableName: cleanedData.definitionsTableName, - invocationsTableName: cleanedData.invocationsTableName, - executionLogsTableName: cleanedData.executionLogsTableName, secretDefinitionsTableName: cleanedData.secretDefinitionsTableName, - requirementsTableName: cleanedData.requirementsTableName, - configRequirementsTableName: cleanedData.configRequirementsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -448,6 +351,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -457,18 +361,9 @@ async function handleCreate(argv: Partial>, prompter: In publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - invocationsTableId: true, - executionLogsTableId: true, secretDefinitionsTableId: true, - requirementsTableId: true, - configDefinitionsTableId: true, - configRequirementsTableId: true, definitionsTableName: true, - invocationsTableName: true, - executionLogsTableName: true, secretDefinitionsTableName: true, - requirementsTableName: true, - configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -476,6 +371,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -538,20 +434,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'invocationsTableId', - message: 'invocationsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'executionLogsTableId', - message: 'executionLogsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'secretDefinitionsTableId', @@ -559,27 +441,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'requirementsTableId', - message: 'requirementsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configDefinitionsTableId', - message: 'configDefinitionsTableId', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configRequirementsTableId', - message: 'configRequirementsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'definitionsTableName', @@ -587,20 +448,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'invocationsTableName', - message: 'invocationsTableName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'executionLogsTableName', - message: 'executionLogsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'secretDefinitionsTableName', @@ -608,20 +455,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'requirementsTableName', - message: 'requirementsTableName', - required: false, - skipPrompt: true, - }, - { - type: 'text', - name: 'configRequirementsTableName', - message: 'configRequirementsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'apiName', @@ -671,6 +504,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as FunctionModulePatch; @@ -687,18 +527,9 @@ async function handleUpdate(argv: Partial>, prompter: In publicSchemaName: cleanedData.publicSchemaName, privateSchemaName: cleanedData.privateSchemaName, definitionsTableId: cleanedData.definitionsTableId, - invocationsTableId: cleanedData.invocationsTableId, - executionLogsTableId: cleanedData.executionLogsTableId, secretDefinitionsTableId: cleanedData.secretDefinitionsTableId, - requirementsTableId: cleanedData.requirementsTableId, - configDefinitionsTableId: cleanedData.configDefinitionsTableId, - configRequirementsTableId: cleanedData.configRequirementsTableId, definitionsTableName: cleanedData.definitionsTableName, - invocationsTableName: cleanedData.invocationsTableName, - executionLogsTableName: cleanedData.executionLogsTableName, secretDefinitionsTableName: cleanedData.secretDefinitionsTableName, - requirementsTableName: cleanedData.requirementsTableName, - configRequirementsTableName: cleanedData.configRequirementsTableName, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, @@ -706,6 +537,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -715,18 +547,9 @@ async function handleUpdate(argv: Partial>, prompter: In publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, - invocationsTableId: true, - executionLogsTableId: true, secretDefinitionsTableId: true, - requirementsTableId: true, - configDefinitionsTableId: true, - configRequirementsTableId: true, definitionsTableName: true, - invocationsTableName: true, - executionLogsTableName: true, secretDefinitionsTableName: true, - requirementsTableName: true, - configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, @@ -734,6 +557,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts index 542beafbf2..a08293a729 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/graph-module.ts @@ -33,6 +33,7 @@ const fieldSchema: FieldSchema = { entityTableId: 'uuid', policies: 'json', provisions: 'json', + defaultPermissions: 'string', createdAt: 'string', }; const usage = @@ -103,6 +104,7 @@ async function handleList(argv: Partial>, _prompter: Inq entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, createdAt: true, }; const findManyArgs = parseFindManyArgs< @@ -141,6 +143,7 @@ async function handleFindFirst(argv: Partial>, _prompter entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, createdAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -191,6 +194,7 @@ async function handleGet(argv: Partial>, prompter: Inqui entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, createdAt: true, }, }) @@ -317,6 +321,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -343,6 +354,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -362,6 +374,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, createdAt: true, }, }) @@ -494,6 +507,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as GraphModulePatch; @@ -520,6 +540,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -539,6 +560,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, createdAt: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts index e82465d05e..c3487890d4 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/hierarchy-module.ts @@ -36,6 +36,7 @@ const fieldSchema: FieldSchema = { getSubordinatesFunction: 'string', getManagersFunction: 'string', isManagerOfFunction: 'string', + defaultPermissions: 'string', createdAt: 'string', }; const usage = @@ -109,6 +110,7 @@ async function handleList(argv: Partial>, _prompter: Inq getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, + defaultPermissions: true, createdAt: true, }; const findManyArgs = parseFindManyArgs< @@ -150,6 +152,7 @@ async function handleFindFirst(argv: Partial>, _prompter getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, + defaultPermissions: true, createdAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -203,6 +206,7 @@ async function handleGet(argv: Partial>, prompter: Inqui getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, + defaultPermissions: true, createdAt: true, }, }) @@ -349,6 +353,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -378,6 +389,7 @@ async function handleCreate(argv: Partial>, prompter: In getSubordinatesFunction: cleanedData.getSubordinatesFunction, getManagersFunction: cleanedData.getManagersFunction, isManagerOfFunction: cleanedData.isManagerOfFunction, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -400,6 +412,7 @@ async function handleCreate(argv: Partial>, prompter: In getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, + defaultPermissions: true, createdAt: true, }, }) @@ -552,6 +565,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as HierarchyModulePatch; @@ -581,6 +601,7 @@ async function handleUpdate(argv: Partial>, prompter: In getSubordinatesFunction: cleanedData.getSubordinatesFunction, getManagersFunction: cleanedData.getManagersFunction, isManagerOfFunction: cleanedData.isManagerOfFunction, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -603,6 +624,7 @@ async function handleUpdate(argv: Partial>, prompter: In getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, + defaultPermissions: true, createdAt: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts index ab7490e630..eea6c037b9 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/identity-providers-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableId: 'uuid', tableName: 'string', apiName: 'string', @@ -83,6 +85,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, apiName: true, @@ -118,6 +122,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, apiName: true, @@ -165,6 +171,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, apiName: true, @@ -207,6 +215,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -269,6 +291,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, apiName: cleanedData.apiName, @@ -282,6 +306,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, apiName: true, @@ -330,6 +356,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -392,6 +432,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, apiName: cleanedData.apiName, @@ -405,6 +447,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, apiName: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts index 64d476f718..22049731a4 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/inference-log-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', inferenceLogTableId: 'uuid', inferenceLogTableName: 'string', usageDailyTableId: 'uuid', @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, @@ -130,6 +134,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, @@ -183,6 +189,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, @@ -231,6 +239,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'inferenceLogTableId', @@ -335,6 +357,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, inferenceLogTableId: cleanedData.inferenceLogTableId, inferenceLogTableName: cleanedData.inferenceLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -354,6 +378,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, @@ -408,6 +434,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'inferenceLogTableId', @@ -512,6 +552,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, inferenceLogTableId: cleanedData.inferenceLogTableId, inferenceLogTableName: cleanedData.inferenceLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -531,6 +573,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts index 8ea5b8ed79..0a64be883a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/invites-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', emailsTableId: 'uuid', usersTableId: 'uuid', invitesTableId: 'uuid', @@ -88,6 +90,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, @@ -124,6 +128,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, @@ -172,6 +178,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, @@ -219,6 +227,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'emailsTableId', @@ -316,6 +338,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, emailsTableId: cleanedData.emailsTableId, usersTableId: cleanedData.usersTableId, invitesTableId: cleanedData.invitesTableId, @@ -334,6 +358,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, @@ -387,6 +413,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'emailsTableId', @@ -484,6 +524,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, emailsTableId: cleanedData.emailsTableId, usersTableId: cleanedData.usersTableId, invitesTableId: cleanedData.invitesTableId, @@ -502,6 +544,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts index c8b894bd39..c9877a1f96 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/limits-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableId: 'uuid', tableName: 'string', defaultTableId: 'uuid', @@ -106,6 +108,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -160,6 +164,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -226,6 +232,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -291,6 +299,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -514,6 +536,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, defaultTableId: cleanedData.defaultTableId, @@ -550,6 +574,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -621,6 +647,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -844,6 +884,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, defaultTableId: cleanedData.defaultTableId, @@ -880,6 +922,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts index 66e048dc4e..9e4dc82f65 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/memberships-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', membershipsTableId: 'uuid', membershipsTableName: 'string', membersTableId: 'uuid', @@ -51,6 +53,8 @@ const fieldSchema: FieldSchema = { entityIdsByPerm: 'string', entityIdsFunction: 'string', memberProfilesTableId: 'uuid', + permissionDefaultPermissionsTableId: 'uuid', + permissionDefaultGrantsTableId: 'uuid', apiName: 'string', privateApiName: 'string', }; @@ -109,6 +113,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, @@ -140,6 +146,8 @@ async function handleList(argv: Partial>, _prompter: Inq entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + permissionDefaultPermissionsTableId: true, + permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true, }; @@ -166,6 +174,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, @@ -197,6 +207,8 @@ async function handleFindFirst(argv: Partial>, _prompter entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + permissionDefaultPermissionsTableId: true, + permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true, }; @@ -235,6 +247,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, @@ -266,6 +280,8 @@ async function handleGet(argv: Partial>, prompter: Inqui entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + permissionDefaultPermissionsTableId: true, + permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true, }, @@ -303,6 +319,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'membershipsTableId', @@ -520,6 +550,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'permissionDefaultPermissionsTableId', + message: 'permissionDefaultPermissionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'permissionDefaultGrantsTableId', + message: 'permissionDefaultGrantsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -547,6 +591,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, membershipsTableId: cleanedData.membershipsTableId, membershipsTableName: cleanedData.membershipsTableName, membersTableId: cleanedData.membersTableId, @@ -578,6 +624,8 @@ async function handleCreate(argv: Partial>, prompter: In entityIdsByPerm: cleanedData.entityIdsByPerm, entityIdsFunction: cleanedData.entityIdsFunction, memberProfilesTableId: cleanedData.memberProfilesTableId, + permissionDefaultPermissionsTableId: cleanedData.permissionDefaultPermissionsTableId, + permissionDefaultGrantsTableId: cleanedData.permissionDefaultGrantsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -586,6 +634,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, @@ -617,6 +667,8 @@ async function handleCreate(argv: Partial>, prompter: In entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + permissionDefaultPermissionsTableId: true, + permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true, }, @@ -660,6 +712,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'membershipsTableId', @@ -877,6 +943,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'permissionDefaultPermissionsTableId', + message: 'permissionDefaultPermissionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'permissionDefaultGrantsTableId', + message: 'permissionDefaultGrantsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -904,6 +984,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, membershipsTableId: cleanedData.membershipsTableId, membershipsTableName: cleanedData.membershipsTableName, membersTableId: cleanedData.membersTableId, @@ -935,6 +1017,8 @@ async function handleUpdate(argv: Partial>, prompter: In entityIdsByPerm: cleanedData.entityIdsByPerm, entityIdsFunction: cleanedData.entityIdsFunction, memberProfilesTableId: cleanedData.memberProfilesTableId, + permissionDefaultPermissionsTableId: cleanedData.permissionDefaultPermissionsTableId, + permissionDefaultGrantsTableId: cleanedData.permissionDefaultGrantsTableId, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -943,6 +1027,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, @@ -974,6 +1060,8 @@ async function handleUpdate(argv: Partial>, prompter: In entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, + permissionDefaultPermissionsTableId: true, + permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts index 163c048d56..15c24c09ee 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/merkle-store-module.ts @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { apiName: 'string', privateApiName: 'string', scope: 'string', + functionPrefix: 'string', createdAt: 'string', }; const usage = @@ -97,6 +98,7 @@ async function handleList(argv: Partial>, _prompter: Inq apiName: true, privateApiName: true, scope: true, + functionPrefix: true, createdAt: true, }; const findManyArgs = parseFindManyArgs< @@ -132,6 +134,7 @@ async function handleFindFirst(argv: Partial>, _prompter apiName: true, privateApiName: true, scope: true, + functionPrefix: true, createdAt: true, }; const findFirstArgs = parseFindFirstArgs< @@ -179,6 +182,7 @@ async function handleGet(argv: Partial>, prompter: Inqui apiName: true, privateApiName: true, scope: true, + functionPrefix: true, createdAt: true, }, }) @@ -285,6 +289,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'functionPrefix', + message: 'functionPrefix', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -308,6 +319,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, + functionPrefix: cleanedData.functionPrefix, }, select: { id: true, @@ -324,6 +336,7 @@ async function handleCreate(argv: Partial>, prompter: In apiName: true, privateApiName: true, scope: true, + functionPrefix: true, createdAt: true, }, }) @@ -436,6 +449,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'functionPrefix', + message: 'functionPrefix', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as MerkleStoreModulePatch; @@ -459,6 +479,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, scope: cleanedData.scope, + functionPrefix: cleanedData.functionPrefix, }, select: { id: true, @@ -475,6 +496,7 @@ async function handleUpdate(argv: Partial>, prompter: In apiName: true, privateApiName: true, scope: true, + functionPrefix: true, createdAt: true, }, }) diff --git a/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts index 8c879f17af..bb98a56283 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/namespace-module.ts @@ -33,6 +33,7 @@ const fieldSchema: FieldSchema = { entityTableId: 'uuid', policies: 'json', provisions: 'json', + defaultPermissions: 'string', }; const usage = '\nnamespace-module \n\nCommands:\n list List namespaceModule records\n find-first Find first matching namespaceModule record\n get Get a namespaceModule by ID\n create Create a new namespaceModule\n update Update an existing namespaceModule\n delete Delete a namespaceModule\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 --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\n --help, -h Show this help message\n'; @@ -102,6 +103,7 @@ async function handleList(argv: Partial>, _prompter: Inq entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -139,6 +141,7 @@ async function handleFindFirst(argv: Partial>, _prompter entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -188,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -314,6 +318,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -340,6 +351,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -359,6 +371,7 @@ async function handleCreate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); @@ -491,6 +504,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as NamespaceModulePatch; @@ -517,6 +537,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: cleanedData.entityTableId, policies: cleanedData.policies, provisions: cleanedData.provisions, + defaultPermissions: cleanedData.defaultPermissions, }, select: { id: true, @@ -536,6 +557,7 @@ async function handleUpdate(argv: Partial>, prompter: In entityTableId: true, policies: true, provisions: true, + defaultPermissions: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts index a6fa80dba3..88db9c2885 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/notifications-module.ts @@ -20,11 +20,14 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', notificationsTableId: 'uuid', readStateTableId: 'uuid', preferencesTableId: 'uuid', channelsTableId: 'uuid', deliveryLogTableId: 'uuid', + suppressionsTableId: 'uuid', ownerTableId: 'uuid', userSettingsTableId: 'uuid', organizationSettingsTableId: 'uuid', @@ -33,6 +36,7 @@ const fieldSchema: FieldSchema = { hasSettingsExtension: 'boolean', hasDigestMetadata: 'boolean', hasSubscriptions: 'boolean', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -91,11 +95,14 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, + suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, @@ -104,6 +111,7 @@ async function handleList(argv: Partial>, _prompter: Inq hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -134,11 +142,14 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, + suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, @@ -147,6 +158,7 @@ async function handleFindFirst(argv: Partial>, _prompter hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -189,11 +201,14 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, + suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, @@ -202,6 +217,7 @@ async function handleGet(argv: Partial>, prompter: Inqui hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -239,6 +255,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'notificationsTableId', @@ -274,6 +304,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'suppressionsTableId', + message: 'suppressionsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'ownerTableId', @@ -330,6 +367,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -357,11 +401,14 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, notificationsTableId: cleanedData.notificationsTableId, readStateTableId: cleanedData.readStateTableId, preferencesTableId: cleanedData.preferencesTableId, channelsTableId: cleanedData.channelsTableId, deliveryLogTableId: cleanedData.deliveryLogTableId, + suppressionsTableId: cleanedData.suppressionsTableId, ownerTableId: cleanedData.ownerTableId, userSettingsTableId: cleanedData.userSettingsTableId, organizationSettingsTableId: cleanedData.organizationSettingsTableId, @@ -370,6 +417,7 @@ async function handleCreate(argv: Partial>, prompter: In hasSettingsExtension: cleanedData.hasSettingsExtension, hasDigestMetadata: cleanedData.hasDigestMetadata, hasSubscriptions: cleanedData.hasSubscriptions, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -378,11 +426,14 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, + suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, @@ -391,6 +442,7 @@ async function handleCreate(argv: Partial>, prompter: In hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -434,6 +486,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'notificationsTableId', @@ -469,6 +535,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'suppressionsTableId', + message: 'suppressionsTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'ownerTableId', @@ -525,6 +598,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -552,11 +632,14 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, notificationsTableId: cleanedData.notificationsTableId, readStateTableId: cleanedData.readStateTableId, preferencesTableId: cleanedData.preferencesTableId, channelsTableId: cleanedData.channelsTableId, deliveryLogTableId: cleanedData.deliveryLogTableId, + suppressionsTableId: cleanedData.suppressionsTableId, ownerTableId: cleanedData.ownerTableId, userSettingsTableId: cleanedData.userSettingsTableId, organizationSettingsTableId: cleanedData.organizationSettingsTableId, @@ -565,6 +648,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasSettingsExtension: cleanedData.hasSettingsExtension, hasDigestMetadata: cleanedData.hasDigestMetadata, hasSubscriptions: cleanedData.hasSubscriptions, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -573,11 +657,14 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, + suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, @@ -586,6 +673,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts index c0111cfde5..b3d22674c3 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/permissions-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableId: 'uuid', tableName: 'string', defaultTableId: 'uuid', @@ -91,6 +93,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -130,6 +134,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -181,6 +187,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -231,6 +239,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -349,6 +371,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, defaultTableId: cleanedData.defaultTableId, @@ -370,6 +394,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, @@ -426,6 +452,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -544,6 +584,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, defaultTableId: cleanedData.defaultTableId, @@ -565,6 +607,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts b/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts index cd2a589d3f..57460a413d 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/plans-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', plansTableId: 'uuid', plansTableName: 'string', planLimitsTableId: 'uuid', @@ -91,6 +93,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, @@ -130,6 +134,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, @@ -181,6 +187,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, @@ -231,6 +239,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'plansTableId', @@ -349,6 +371,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, plansTableId: cleanedData.plansTableId, plansTableName: cleanedData.plansTableName, planLimitsTableId: cleanedData.planLimitsTableId, @@ -370,6 +394,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, @@ -426,6 +452,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'plansTableId', @@ -544,6 +584,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, plansTableId: cleanedData.plansTableId, plansTableName: cleanedData.plansTableName, planLimitsTableId: cleanedData.planLimitsTableId, @@ -565,6 +607,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts index 2136e087ba..2c40f7aa13 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/profiles-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', tableId: 'uuid', tableName: 'string', profilePermissionsTableId: 'uuid', @@ -94,6 +96,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, @@ -136,6 +140,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, @@ -190,6 +196,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, @@ -243,6 +251,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -382,6 +404,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, profilePermissionsTableId: cleanedData.profilePermissionsTableId, @@ -406,6 +430,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, @@ -465,6 +491,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'tableId', @@ -604,6 +644,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, tableId: cleanedData.tableId, tableName: cleanedData.tableName, profilePermissionsTableId: cleanedData.profilePermissionsTableId, @@ -628,6 +670,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts index 83b249154e..3ead81262a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/rate-limit-meters-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', rateLimitStateTableId: 'uuid', rateLimitStateTableName: 'string', rateLimitOverridesTableId: 'uuid', @@ -28,6 +30,7 @@ const fieldSchema: FieldSchema = { rateWindowLimitsTableName: 'string', checkRateLimitFunction: 'string', prefix: 'string', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -86,6 +89,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, @@ -94,6 +99,7 @@ async function handleList(argv: Partial>, _prompter: Inq rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -124,6 +130,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, @@ -132,6 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -174,6 +183,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, @@ -182,6 +193,7 @@ async function handleGet(argv: Partial>, prompter: Inqui rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -219,6 +231,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'rateLimitStateTableId', @@ -275,6 +301,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -302,6 +335,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, rateLimitStateTableId: cleanedData.rateLimitStateTableId, rateLimitStateTableName: cleanedData.rateLimitStateTableName, rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId, @@ -310,6 +345,7 @@ async function handleCreate(argv: Partial>, prompter: In rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -318,6 +354,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, @@ -326,6 +364,7 @@ async function handleCreate(argv: Partial>, prompter: In rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -369,6 +408,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'rateLimitStateTableId', @@ -425,6 +478,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -452,6 +512,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, rateLimitStateTableId: cleanedData.rateLimitStateTableId, rateLimitStateTableName: cleanedData.rateLimitStateTableName, rateLimitOverridesTableId: cleanedData.rateLimitOverridesTableId, @@ -460,6 +522,7 @@ async function handleUpdate(argv: Partial>, prompter: In rateWindowLimitsTableName: cleanedData.rateWindowLimitsTableName, checkRateLimitFunction: cleanedData.checkRateLimitFunction, prefix: cleanedData.prefix, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -468,6 +531,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, @@ -476,6 +541,7 @@ async function handleUpdate(argv: Partial>, prompter: In rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts index 4cd5196cc6..e84482ed78 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-log-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', storageLogTableId: 'uuid', storageLogTableName: 'string', usageDailyTableId: 'uuid', @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, @@ -126,6 +130,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, @@ -175,6 +181,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, @@ -223,6 +231,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'storageLogTableId', @@ -327,6 +349,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, storageLogTableId: cleanedData.storageLogTableId, storageLogTableName: cleanedData.storageLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -346,6 +370,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, @@ -400,6 +426,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'storageLogTableId', @@ -504,6 +544,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, storageLogTableId: cleanedData.storageLogTableId, storageLogTableName: cleanedData.storageLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -523,6 +565,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, diff --git a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts index 8c38685875..9d11f48d0a 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/storage-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', bucketsTableId: 'uuid', filesTableId: 'uuid', bucketsTableName: 'string', @@ -50,6 +52,7 @@ const fieldSchema: FieldSchema = { hasConfirmUpload: 'boolean', confirmUploadDelay: 'string', fileEventsTableId: 'uuid', + defaultPermissions: 'string', apiName: 'string', privateApiName: 'string', }; @@ -108,6 +111,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, @@ -138,6 +143,7 @@ async function handleList(argv: Partial>, _prompter: Inq hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -164,6 +170,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, @@ -194,6 +202,7 @@ async function handleFindFirst(argv: Partial>, _prompter hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }; @@ -232,6 +241,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, @@ -262,6 +273,7 @@ async function handleGet(argv: Partial>, prompter: Inqui hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -299,6 +311,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bucketsTableId', @@ -509,6 +535,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -536,6 +569,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, bucketsTableId: cleanedData.bucketsTableId, filesTableId: cleanedData.filesTableId, bucketsTableName: cleanedData.bucketsTableName, @@ -566,6 +601,7 @@ async function handleCreate(argv: Partial>, prompter: In hasConfirmUpload: cleanedData.hasConfirmUpload, confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -574,6 +610,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, @@ -604,6 +642,7 @@ async function handleCreate(argv: Partial>, prompter: In hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, @@ -647,6 +686,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'bucketsTableId', @@ -857,6 +910,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'defaultPermissions', + message: 'defaultPermissions', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'apiName', @@ -884,6 +944,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, bucketsTableId: cleanedData.bucketsTableId, filesTableId: cleanedData.filesTableId, bucketsTableName: cleanedData.bucketsTableName, @@ -914,6 +976,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasConfirmUpload: cleanedData.hasConfirmUpload, confirmUploadDelay: cleanedData.confirmUploadDelay, fileEventsTableId: cleanedData.fileEventsTableId, + defaultPermissions: cleanedData.defaultPermissions, apiName: cleanedData.apiName, privateApiName: cleanedData.privateApiName, }, @@ -922,6 +985,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, @@ -952,6 +1017,7 @@ async function handleUpdate(argv: Partial>, prompter: In hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, + defaultPermissions: true, apiName: true, privateApiName: true, }, diff --git a/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts index 4215f169ba..61a85cc3ce 100644 --- a/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts +++ b/sdk/constructive-cli/src/modules/cli/commands/transfer-log-module.ts @@ -20,6 +20,8 @@ const fieldSchema: FieldSchema = { databaseId: 'uuid', schemaId: 'uuid', privateSchemaId: 'uuid', + publicSchemaName: 'string', + privateSchemaName: 'string', transferLogTableId: 'uuid', transferLogTableName: 'string', usageDailyTableId: 'uuid', @@ -89,6 +91,8 @@ async function handleList(argv: Partial>, _prompter: Inq databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, @@ -126,6 +130,8 @@ async function handleFindFirst(argv: Partial>, _prompter databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, @@ -175,6 +181,8 @@ async function handleGet(argv: Partial>, prompter: Inqui databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, @@ -223,6 +231,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'transferLogTableId', @@ -327,6 +349,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, transferLogTableId: cleanedData.transferLogTableId, transferLogTableName: cleanedData.transferLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -346,6 +370,8 @@ async function handleCreate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, @@ -400,6 +426,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'publicSchemaName', + message: 'publicSchemaName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaName', + message: 'privateSchemaName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'transferLogTableId', @@ -504,6 +544,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: cleanedData.databaseId, schemaId: cleanedData.schemaId, privateSchemaId: cleanedData.privateSchemaId, + publicSchemaName: cleanedData.publicSchemaName, + privateSchemaName: cleanedData.privateSchemaName, transferLogTableId: cleanedData.transferLogTableId, transferLogTableName: cleanedData.transferLogTableName, usageDailyTableId: cleanedData.usageDailyTableId, @@ -523,6 +565,8 @@ async function handleUpdate(argv: Partial>, prompter: In databaseId: true, schemaId: true, privateSchemaId: true, + publicSchemaName: true, + privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, diff --git a/sdk/constructive-cli/src/modules/orm/README.md b/sdk/constructive-cli/src/modules/orm/README.md index 2d52e7421a..029e5d6ca7 100644 --- a/sdk/constructive-cli/src/modules/orm/README.md +++ b/sdk/constructive-cli/src/modules/orm/README.md @@ -38,45 +38,46 @@ const db = createClient({ | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | | `merkleStoreModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | | `permissionsModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | ## Table Operations @@ -681,9 +682,9 @@ const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.denormalizedTableField` -CRUD operations for IdentityProvidersModule records. +CRUD operations for DenormalizedTableField records. **Fields:** @@ -691,38 +692,39 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.denormalizedTableField` +### `db.identityProvidersModule` -CRUD operations for DenormalizedTableField records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -730,34 +732,35 @@ CRUD operations for DenormalizedTableField records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -970,48 +973,6 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionsModule` CRUD operations for SessionsModule records. @@ -1051,9 +1012,9 @@ const updated = await db.sessionsModule.update({ where: { id: '' }, data: const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.secureTableProvision` -CRUD operations for ConfigSecretsModule records. +CRUD operations for SecureTableProvision records. **Fields:** @@ -1062,36 +1023,32 @@ CRUD operations for ConfigSecretsModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | | `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | +| `outFields` | UUID | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.merkleStoreModule` @@ -1116,19 +1073,20 @@ CRUD operations for MerkleStoreModule records. | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | +| `functionPrefix` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1162,19 +1120,20 @@ CRUD operations for GraphModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1183,89 +1142,6 @@ const updated = await db.graphModule.update({ where: { id: '' }, data: { d const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -1308,9 +1184,9 @@ const updated = await db.databaseProvisionModule.update({ where: { id: '' const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceModule` +### `db.configSecretsModule` -CRUD operations for NamespaceModule records. +CRUD operations for ConfigSecretsModule records. **Fields:** @@ -1322,10 +1198,9 @@ CRUD operations for NamespaceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1333,29 +1208,75 @@ CRUD operations for NamespaceModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +// List all configSecretsModule records +const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.rateLimitMetersModule` -CRUD operations for RealtimeModule records. +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +CRUD operations for RealtimeModule records. **Fields:** @@ -1439,6 +1360,190 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.functionInvocationModule` + +CRUD operations for FunctionInvocationModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionModule records +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all namespaceModule records +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.computeLogModule` CRUD operations for ComputeLogModule records. @@ -1451,6 +1556,8 @@ CRUD operations for ComputeLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `computeLogTableId` | UUID | Yes | | `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1469,13 +1576,13 @@ CRUD operations for ComputeLogModule records. ```typescript // List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1496,6 +1603,8 @@ CRUD operations for InferenceLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1514,13 +1623,13 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1541,6 +1650,8 @@ CRUD operations for StorageLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `storageLogTableId` | UUID | Yes | | `storageLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1559,13 +1670,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1586,6 +1697,8 @@ CRUD operations for TransferLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `transferLogTableId` | UUID | Yes | | `transferLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1604,13 +1717,13 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1619,9 +1732,9 @@ const updated = await db.transferLogModule.update({ where: { id: '' }, dat const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.plansModule` -CRUD operations for DbUsageModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1631,18 +1744,20 @@ CRUD operations for DbUsageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1650,25 +1765,25 @@ CRUD operations for DbUsageModule records. **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.billingProviderModule` -CRUD operations for NotificationsModule records. +CRUD operations for BillingProviderModule records. **Fields:** @@ -1678,44 +1793,47 @@ CRUD operations for NotificationsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.dbUsageModule` -CRUD operations for PlansModule records. +CRUD operations for DbUsageModule records. **Fields:** @@ -1725,39 +1843,42 @@ CRUD operations for PlansModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// 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, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -1788,19 +1909,20 @@ CRUD operations for HierarchyModule records. | `getSubordinatesFunction` | String | Yes | | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1809,9 +1931,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.permissionsModule` -CRUD operations for BillingModule records. +CRUD operations for PermissionsModule records. **Fields:** @@ -1821,92 +1943,92 @@ CRUD operations for BillingModule records. | `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 | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `meterDefaultsTableId` | UUID | Yes | -| `meterDefaultsTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingProviderModule` +### `db.notificationsModule` -CRUD operations for BillingProviderModule records. +CRUD operations for NotificationsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -1921,6 +2043,8 @@ CRUD operations for ProfilesModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `profilePermissionsTableId` | UUID | Yes | @@ -1944,13 +2068,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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1959,9 +2083,9 @@ const updated = await db.profilesModule.update({ where: { id: '' }, data: const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.billingModule` -CRUD operations for PermissionsModule records. +CRUD operations for BillingModule records. **Fields:** @@ -1971,39 +2095,45 @@ CRUD operations for PermissionsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | 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 | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -2058,60 +2188,6 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.userAuthModule` CRUD operations for UserAuthModule records. @@ -2180,6 +2256,8 @@ CRUD operations for AgentModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `threadTableId` | UUID | Yes | | `messageTableId` | UUID | Yes | | `taskTableId` | UUID | Yes | @@ -2199,6 +2277,7 @@ CRUD operations for AgentModule records. | `hasPlans` | Boolean | Yes | | `hasResources` | Boolean | Yes | | `hasAgents` | Boolean | Yes | +| `shared` | Boolean | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -2207,18 +2286,19 @@ CRUD operations for AgentModule records. | `policies` | JSON | Yes | | `resources` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2239,6 +2319,8 @@ CRUD operations for LimitsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `defaultTableId` | UUID | Yes | @@ -2274,13 +2356,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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2301,6 +2383,8 @@ CRUD operations for MembershipsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `membershipsTableId` | UUID | Yes | | `membershipsTableName` | String | Yes | | `membersTableId` | UUID | Yes | @@ -2332,6 +2416,8 @@ CRUD operations for MembershipsModule records. | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | | `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2339,13 +2425,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2354,6 +2440,74 @@ const updated = await db.membershipsModule.update({ where: { id: '' }, dat const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all entityTypeProvision records +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Get one by id +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Create +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.storageModule` CRUD operations for StorageModule records. @@ -2366,6 +2520,8 @@ CRUD operations for StorageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | @@ -2396,6 +2552,7 @@ CRUD operations for StorageModule records. | `hasConfirmUpload` | Boolean | Yes | | `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2403,13 +2560,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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: 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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2430,6 +2587,8 @@ CRUD operations for EventsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -2465,6 +2624,7 @@ CRUD operations for EventsModule records. | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2472,13 +2632,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2487,76 +2647,6 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```typescript -// List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.resolveBlueprintField` diff --git a/sdk/constructive-cli/src/modules/orm/index.ts b/sdk/constructive-cli/src/modules/orm/index.ts index c119d6f628..e8c151cfdb 100644 --- a/sdk/constructive-cli/src/modules/orm/index.ts +++ b/sdk/constructive-cli/src/modules/orm/index.ts @@ -22,45 +22,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { SessionsModuleModel } from './models/sessionsModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { GraphModuleModel } from './models/graphModule'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { InvitesModuleModel } from './models/invitesModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { FunctionModuleModel } from './models/functionModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; import { PlansModuleModel } from './models/plansModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { ProfilesModuleModel } from './models/profilesModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; import { PermissionsModuleModel } from './models/permissionsModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { BillingModuleModel } from './models/billingModule'; import { RelationProvisionModel } from './models/relationProvision'; -import { FunctionModuleModel } from './models/functionModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; import { MembershipsModuleModel } from './models/membershipsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; import { EventsModuleModel } from './models/eventsModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -113,45 +114,46 @@ export function createClient(config: OrmClientConfig) { usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), blueprintConstruction: new BlueprintConstructionModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), sessionsModule: new SessionsModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), merkleStoreModule: new MerkleStoreModuleModel(client), graphModule: new GraphModuleModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - invitesModule: new InvitesModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), + functionModule: new FunctionModuleModel(client), + invitesModule: new InvitesModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), plansModule: new PlansModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - profilesModule: new ProfilesModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), permissionsModule: new PermissionsModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + billingModule: new BillingModuleModel(client), relationProvision: new RelationProvisionModel(client), - functionModule: new FunctionModuleModel(client), userAuthModule: new UserAuthModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), membershipsModule: new MembershipsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), eventsModule: new EventsModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-cli/src/modules/orm/input-types.ts b/sdk/constructive-cli/src/modules/orm/input-types.ts index 75db6ada94..62271cf277 100644 --- a/sdk/constructive-cli/src/modules/orm/input-types.ts +++ b/sdk/constructive-cli/src/modules/orm/input-types.ts @@ -400,6 +400,20 @@ export interface CryptoAddressesModule { apiName?: string | null; privateApiName?: string | null; } +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} /** * Entity-aware config row for the identity_providers_module, which provisions a per-database * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. @@ -418,6 +432,8 @@ export interface IdentityProvidersModule { schemaId?: string | null; /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; apiName?: string | null; @@ -426,20 +442,6 @@ export interface IdentityProvidersModule { prefix?: string | null; entityTableId?: string | null; } -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -566,22 +568,6 @@ export interface CryptoAuthModule { signUpWithKey?: string | null; signInWithChallenge?: string | null; } -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface SessionsModule { id: string; databaseId?: string | null; @@ -595,27 +581,30 @@ export interface SessionsModule { sessionCredentialsTable?: string | null; authSettingsTable?: string | null; } -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. - */ -export interface ConfigSecretsModule { +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database this provision belongs to. Required. */ databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ schemaId?: string | null; - privateSchemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string | null; - configDefinitionsTableId?: string | null; + /** 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 | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + /** 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?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** 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?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + /** 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[] | null; } export interface MerkleStoreModule { id: string; @@ -632,6 +621,7 @@ export interface MerkleStoreModule { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; createdAt?: string | null; } export interface GraphModule { @@ -652,51 +642,9 @@ export interface GraphModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** 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?: Record | null; - /** 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[] | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { id: string; @@ -723,17 +671,21 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: string | null; } -export interface NamespaceModule { +/** + * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + * User-scoped bcrypt credentials are handled by user_credentials_module. + */ +export interface ConfigSecretsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -741,6 +693,26 @@ export interface NamespaceModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } export interface RealtimeModule { id: string; @@ -776,11 +748,93 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } +export interface FunctionInvocationModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NamespaceModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface ComputeLogModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; computeLogTableId?: string | null; computeLogTableName?: string | null; usageDailyTableId?: string | null; @@ -800,6 +854,8 @@ export interface InferenceLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; usageDailyTableId?: string | null; @@ -819,6 +875,8 @@ export interface StorageLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; storageLogTableId?: string | null; storageLogTableName?: string | null; usageDailyTableId?: string | null; @@ -838,6 +896,8 @@ export interface TransferLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; transferLogTableId?: string | null; transferLogTableName?: string | null; usageDailyTableId?: string | null; @@ -852,53 +912,13 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface PlansModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -915,6 +935,54 @@ export interface PlansModule { apiName?: string | null; privateApiName?: string | null; } +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface HierarchyModule { id: string; databaseId?: string | null; @@ -936,53 +1004,54 @@ export interface HierarchyModule { getSubordinatesFunction?: string | null; getManagersFunction?: string | null; isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface BillingModule { +export interface PermissionsModule { 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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface BillingProviderModule { +export interface NotificationsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -991,6 +1060,8 @@ export interface ProfilesModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; profilePermissionsTableId?: string | null; @@ -1010,24 +1081,30 @@ export interface ProfilesModule { apiName?: string | null; privateApiName?: string | null; } -export interface PermissionsModule { +export interface BillingModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -1164,34 +1241,6 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1227,6 +1276,8 @@ export interface AgentModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -1246,6 +1297,7 @@ export interface AgentModule { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -1254,12 +1306,15 @@ export interface AgentModule { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface LimitsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -1296,6 +1351,8 @@ export interface MembershipsModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -1327,116 +1384,37 @@ export interface MembershipsModule { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface StorageModule { +/** + * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database to provision this entity type in. Required. */ databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ prefix?: string | null; /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ description?: string | null; @@ -1669,12 +1647,97 @@ export interface EntityTypeProvision { outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; } +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1705,8 +1768,8 @@ export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} export interface CryptoAddressesModuleRelations {} -export interface IdentityProvidersModuleRelations {} export interface DenormalizedTableFieldRelations {} +export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1721,42 +1784,43 @@ export interface BlueprintConstructionRelations { blueprint?: Blueprint | null; } export interface CryptoAuthModuleRelations {} -export interface RateLimitMetersModuleRelations {} export interface SessionsModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface SecureTableProvisionRelations {} export interface MerkleStoreModuleRelations { graphModules?: ConnectionResult; } export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface SecureTableProvisionRelations {} -export interface InvitesModuleRelations {} export interface DatabaseProvisionModuleRelations {} -export interface NamespaceModuleRelations {} +export interface ConfigSecretsModuleRelations {} +export interface RateLimitMetersModuleRelations {} export interface RealtimeModuleRelations {} export interface WebauthnAuthModuleRelations {} +export interface FunctionInvocationModuleRelations {} +export interface FunctionModuleRelations {} +export interface InvitesModuleRelations {} +export interface NamespaceModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} -export interface DbUsageModuleRelations {} -export interface NotificationsModuleRelations {} export interface PlansModuleRelations {} -export interface HierarchyModuleRelations {} -export interface BillingModuleRelations {} export interface BillingProviderModuleRelations {} -export interface ProfilesModuleRelations {} +export interface DbUsageModuleRelations {} +export interface HierarchyModuleRelations {} export interface PermissionsModuleRelations {} +export interface NotificationsModuleRelations {} +export interface ProfilesModuleRelations {} +export interface BillingModuleRelations {} export interface RelationProvisionRelations {} -export interface FunctionModuleRelations {} export interface UserAuthModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} export interface MembershipsModuleRelations {} +export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} export interface EventsModuleRelations {} -export interface EntityTypeProvisionRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & @@ -1783,52 +1847,54 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & + FunctionInvocationModuleRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { id?: boolean; @@ -1989,19 +2055,6 @@ export type CryptoAddressesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type DenormalizedTableFieldSelect = { id?: boolean; databaseId?: boolean; @@ -2016,6 +2069,21 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; +}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2123,23 +2191,7 @@ export type CryptoAuthModuleSelect = { signUpWithKey?: boolean; signInWithChallenge?: boolean; }; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; -export type SessionsModuleSelect = { +export type SessionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -2152,22 +2204,18 @@ export type SessionsModuleSelect = { sessionCredentialsTable?: boolean; authSettingsTable?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type SecureTableProvisionSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; policies?: boolean; - provisions?: boolean; - hasConfig?: boolean; + outFields?: boolean; }; export type MerkleStoreModuleSelect = { id?: boolean; @@ -2184,6 +2232,7 @@ export type MerkleStoreModuleSelect = { apiName?: boolean; privateApiName?: boolean; scope?: boolean; + functionPrefix?: boolean; createdAt?: boolean; graphModules?: { select: GraphModuleSelect; @@ -2210,42 +2259,12 @@ export type GraphModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -2262,17 +2281,16 @@ export type DatabaseProvisionModuleSelect = { updatedAt?: boolean; completedAt?: boolean; }; -export type NamespaceModuleSelect = { +export type ConfigSecretsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2280,6 +2298,26 @@ export type NamespaceModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + hasConfig?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; }; export type RealtimeModuleSelect = { id?: boolean; @@ -2315,11 +2353,93 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; +export type FunctionInvocationModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + secretDefinitionsTableId?: boolean; + definitionsTableName?: boolean; + secretDefinitionsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; computeLogTableId?: boolean; computeLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2339,6 +2459,8 @@ export type InferenceLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2358,6 +2480,8 @@ export type StorageLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; storageLogTableId?: boolean; storageLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2377,6 +2501,8 @@ export type TransferLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; transferLogTableId?: boolean; transferLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2391,66 +2517,74 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type NotificationsModuleSelect = { +export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type DbUsageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; prefix?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2475,53 +2609,54 @@ export type HierarchyModuleSelect = { getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; }; -export type BillingModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - meterDefaultsTableId?: boolean; - meterDefaultsTableName?: boolean; - recordUsageFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type BillingProviderModuleSelect = { +export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + suppressionsTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2530,6 +2665,8 @@ export type ProfilesModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; profilePermissionsTableId?: boolean; @@ -2549,24 +2686,30 @@ export type ProfilesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type PermissionsModuleSelect = { +export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2596,34 +2739,6 @@ export type RelationProvisionSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; -}; export type UserAuthModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2659,6 +2774,8 @@ export type AgentModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; threadTableId?: boolean; messageTableId?: boolean; taskTableId?: boolean; @@ -2678,6 +2795,7 @@ export type AgentModuleSelect = { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2686,12 +2804,15 @@ export type AgentModuleSelect = { policies?: boolean; resources?: boolean; provisions?: boolean; + defaultPermissions?: boolean; }; export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; defaultTableId?: boolean; @@ -2728,6 +2849,8 @@ export type MembershipsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; membershipsTableId?: boolean; membershipsTableName?: boolean; membersTableId?: boolean; @@ -2759,14 +2882,60 @@ export type MembershipsModuleSelect = { entityIdsByPerm?: boolean; entityIdsFunction?: boolean; memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; export type StorageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; bucketsTableName?: boolean; @@ -2797,6 +2966,7 @@ export type StorageModuleSelect = { hasConfirmUpload?: boolean; confirmUploadDelay?: boolean; fileEventsTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2805,6 +2975,8 @@ export type EventsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; eventAggregatesTableId?: boolean; @@ -2840,53 +3012,10 @@ export type EventsModuleSelect = { prefix?: boolean; entityTableId?: boolean; actorTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; -}; // ============ Table Filter Types ============ export interface DefaultIdsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3274,36 +3403,6 @@ export interface CryptoAddressesModuleFilter { /** Negates the expression. */ not?: CryptoAddressesModuleFilter; } -export interface IdentityProvidersModuleFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface DenormalizedTableFieldFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3336,7 +3435,7 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface RlsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3345,16 +3444,50 @@ export interface RlsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `authenticate` field. */ - authenticate?: StringFilter; - /** Filter by the object’s `authenticateStrict` field. */ - authenticateStrict?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface RlsModuleFilter { + /** 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 `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `authenticate` field. */ + authenticate?: StringFilter; + /** Filter by the object’s `authenticateStrict` field. */ + authenticateStrict?: StringFilter; /** Filter by the object’s `currentRole` field. */ currentRole?: StringFilter; /** Filter by the object’s `currentRoleId` field. */ @@ -3538,42 +3671,6 @@ export interface CryptoAuthModuleFilter { /** Negates the expression. */ not?: CryptoAuthModuleFilter; } -export interface RateLimitMetersModuleFilter { - /** 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 `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; -} export interface SessionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3604,43 +3701,35 @@ export interface SessionsModuleFilter { /** Negates the expression. */ not?: SessionsModuleFilter; } -export interface ConfigSecretsModuleFilter { +export interface SecureTableProvisionFilter { /** 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 `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: SecureTableProvisionFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: SecureTableProvisionFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: SecureTableProvisionFilter; } export interface MerkleStoreModuleFilter { /** Filter by the object’s `id` field. */ @@ -3671,6 +3760,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3719,6 +3810,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3730,76 +3823,6 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } -export interface SecureTableProvisionFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; -} -export interface InvitesModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; -} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3836,7 +3859,7 @@ export interface DatabaseProvisionModuleFilter { /** Negates the expression. */ not?: DatabaseProvisionModuleFilter; } -export interface NamespaceModuleFilter { +export interface ConfigSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3849,14 +3872,12 @@ export interface NamespaceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `namespacesTableId` field. */ - namespacesTableId?: UUIDFilter; - /** Filter by the object’s `namespaceEventsTableId` field. */ - namespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `namespacesTableName` field. */ - namespacesTableName?: StringFilter; - /** Filter by the object’s `namespaceEventsTableName` field. */ - namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3871,12 +3892,56 @@ export interface NamespaceModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `hasConfig` field. */ + hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: NamespaceModuleFilter[]; + and?: ConfigSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; + or?: ConfigSecretsModuleFilter[]; /** Negates the expression. */ - not?: NamespaceModuleFilter; + not?: ConfigSecretsModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; } export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ @@ -3954,7 +4019,7 @@ export interface WebauthnAuthModuleFilter { /** Negates the expression. */ not?: WebauthnAuthModuleFilter; } -export interface ComputeLogModuleFilter { +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3963,11 +4028,191 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface FunctionModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface InvitesModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +export interface NamespaceModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `namespacesTableId` field. */ + namespacesTableId?: UUIDFilter; + /** Filter by the object’s `namespaceEventsTableId` field. */ + namespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `namespacesTableName` field. */ + namespacesTableName?: StringFilter; + /** Filter by the object’s `namespaceEventsTableName` field. */ + namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ usageDailyTableName?: StringFilter; @@ -4005,6 +4250,10 @@ export interface InferenceLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `inferenceLogTableId` field. */ inferenceLogTableId?: UUIDFilter; /** Filter by the object’s `inferenceLogTableName` field. */ @@ -4047,6 +4296,10 @@ export interface StorageLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `storageLogTableId` field. */ storageLogTableId?: UUIDFilter; /** Filter by the object’s `storageLogTableName` field. */ @@ -4089,6 +4342,10 @@ export interface TransferLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `transferLogTableId` field. */ transferLogTableId?: UUIDFilter; /** Filter by the object’s `transferLogTableName` field. */ @@ -4122,7 +4379,7 @@ export interface TransferLogModuleFilter { /** Negates the expression. */ not?: TransferLogModuleFilter; } -export interface DbUsageModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4131,30 +4388,34 @@ export interface DbUsageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4162,13 +4423,13 @@ export interface DbUsageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PlansModuleFilter; } -export interface NotificationsModuleFilter { +export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4177,44 +4438,50 @@ export interface NotificationsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `notificationsTableId` field. */ - notificationsTableId?: UUIDFilter; - /** Filter by the object’s `readStateTableId` field. */ - readStateTableId?: UUIDFilter; - /** Filter by the object’s `preferencesTableId` field. */ - preferencesTableId?: UUIDFilter; - /** Filter by the object’s `channelsTableId` field. */ - channelsTableId?: UUIDFilter; - /** Filter by the object’s `deliveryLogTableId` field. */ - deliveryLogTableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; - /** Filter by the object’s `userSettingsTableId` field. */ - userSettingsTableId?: UUIDFilter; - /** Filter by the object’s `organizationSettingsTableId` field. */ - organizationSettingsTableId?: UUIDFilter; - /** Filter by the object’s `hasChannels` field. */ - hasChannels?: BooleanFilter; - /** Filter by the object’s `hasPreferences` field. */ - hasPreferences?: BooleanFilter; - /** Filter by the object’s `hasSettingsExtension` field. */ - hasSettingsExtension?: BooleanFilter; - /** Filter by the object’s `hasDigestMetadata` field. */ - hasDigestMetadata?: BooleanFilter; - /** Filter by the object’s `hasSubscriptions` field. */ - hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `productsTableId` field. */ + productsTableId?: UUIDFilter; + /** Filter by the object’s `pricesTableId` field. */ + pricesTableId?: UUIDFilter; + /** Filter by the object’s `subscriptionsTableId` field. */ + subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableId` field. */ + billingCustomersTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableName` field. */ + billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingProductsTableId` field. */ + billingProductsTableId?: UUIDFilter; + /** Filter by the object’s `billingProductsTableName` field. */ + billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingPricesTableId` field. */ + billingPricesTableId?: UUIDFilter; + /** Filter by the object’s `billingPricesTableName` field. */ + billingPricesTableName?: StringFilter; + /** Filter by the object’s `billingSubscriptionsTableId` field. */ + billingSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingSubscriptionsTableName` field. */ + billingSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `billingWebhookEventsTableId` field. */ + billingWebhookEventsTableId?: UUIDFilter; + /** Filter by the object’s `billingWebhookEventsTableName` field. */ + billingWebhookEventsTableName?: StringFilter; + /** Filter by the object’s `processBillingEventFunction` field. */ + processBillingEventFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; + and?: BillingProviderModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; + or?: BillingProviderModuleFilter[]; /** Negates the expression. */ - not?: NotificationsModuleFilter; + not?: BillingProviderModuleFilter; } -export interface PlansModuleFilter { +export interface DbUsageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4223,42 +4490,48 @@ export interface PlansModuleFilter { 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 `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: DbUsageModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: DbUsageModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: DbUsageModuleFilter; } export interface HierarchyModuleFilter { /** Filter by the object’s `id` field. */ @@ -4301,6 +4574,8 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; /** Filter by the object’s `isManagerOfFunction` field. */ isManagerOfFunction?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -4310,7 +4585,7 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface BillingModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4319,50 +4594,48 @@ export interface BillingModuleFilter { 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 `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `meterDefaultsTableId` field. */ - meterDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `meterDefaultsTableName` field. */ - meterDefaultsTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; + not?: PermissionsModuleFilter; } -export interface BillingProviderModuleFilter { +export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4371,48 +4644,50 @@ export interface BillingProviderModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `productsTableId` field. */ - productsTableId?: UUIDFilter; - /** Filter by the object’s `pricesTableId` field. */ - pricesTableId?: UUIDFilter; - /** Filter by the object’s `subscriptionsTableId` field. */ - subscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableId` field. */ - billingCustomersTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableName` field. */ - billingCustomersTableName?: StringFilter; - /** Filter by the object’s `billingProductsTableId` field. */ - billingProductsTableId?: UUIDFilter; - /** Filter by the object’s `billingProductsTableName` field. */ - billingProductsTableName?: StringFilter; - /** Filter by the object’s `billingPricesTableId` field. */ - billingPricesTableId?: UUIDFilter; - /** Filter by the object’s `billingPricesTableName` field. */ - billingPricesTableName?: StringFilter; - /** Filter by the object’s `billingSubscriptionsTableId` field. */ - billingSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingSubscriptionsTableName` field. */ - billingSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `billingWebhookEventsTableId` field. */ - billingWebhookEventsTableId?: UUIDFilter; - /** Filter by the object’s `billingWebhookEventsTableName` field. */ - billingWebhookEventsTableName?: StringFilter; - /** Filter by the object’s `processBillingEventFunction` field. */ - processBillingEventFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `notificationsTableId` field. */ + notificationsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; + /** Filter by the object’s `preferencesTableId` field. */ + preferencesTableId?: UUIDFilter; + /** Filter by the object’s `channelsTableId` field. */ + channelsTableId?: UUIDFilter; + /** Filter by the object’s `deliveryLogTableId` field. */ + deliveryLogTableId?: UUIDFilter; + /** Filter by the object’s `suppressionsTableId` field. */ + suppressionsTableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `userSettingsTableId` field. */ + userSettingsTableId?: UUIDFilter; + /** Filter by the object’s `organizationSettingsTableId` field. */ + organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: NotificationsModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: NotificationsModuleFilter; } export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ @@ -4423,8 +4698,12 @@ export interface ProfilesModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `profilePermissionsTableId` field. */ @@ -4466,7 +4745,7 @@ export interface ProfilesModuleFilter { /** Negates the expression. */ not?: ProfilesModuleFilter; } -export interface PermissionsModuleFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4475,42 +4754,54 @@ export interface PermissionsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: PermissionsModuleFilter; + not?: BillingModuleFilter; } export interface RelationProvisionFilter { /** Filter by the object’s `id` field. */ @@ -4568,66 +4859,6 @@ export interface RelationProvisionFilter { /** Negates the expression. */ not?: RelationProvisionFilter; } -export interface FunctionModuleFilter { - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; -} export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4701,6 +4932,10 @@ export interface AgentModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `threadTableId` field. */ threadTableId?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4739,6 +4974,8 @@ export interface AgentModuleFilter { hasResources?: BooleanFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `shared` field. */ + shared?: BooleanFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4755,6 +4992,8 @@ export interface AgentModuleFilter { resources?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ and?: AgentModuleFilter[]; /** Checks for any expressions in this list. */ @@ -4771,6 +5010,10 @@ export interface LimitsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ @@ -4847,6 +5090,10 @@ export interface MembershipsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Filter by the object’s `membershipsTableName` field. */ @@ -4909,6 +5156,10 @@ export interface MembershipsModuleFilter { entityIdsFunction?: StringFilter; /** Filter by the object’s `memberProfilesTableId` field. */ memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4920,6 +5171,94 @@ export interface MembershipsModuleFilter { /** Negates the expression. */ not?: MembershipsModuleFilter; } +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + outInvocationsTableId?: UUIDFilter; + /** Filter by the object’s `outExecutionLogsTableId` field. */ + outExecutionLogsTableId?: UUIDFilter; + /** Filter by the object’s `outSecretDefinitionsTableId` field. */ + outSecretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} export interface StorageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4929,6 +5268,10 @@ export interface StorageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ @@ -4989,6 +5332,8 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5009,6 +5354,10 @@ export interface EventsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `eventsTableId` field. */ eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ @@ -5079,6 +5428,8 @@ export interface EventsModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5090,98 +5441,6 @@ export interface EventsModuleFilter { /** Negates the expression. */ not?: EventsModuleFilter; } -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - outInvocationsTableId?: UUIDFilter; - /** Filter by the object’s `outExecutionLogsTableId` field. */ - outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; -} // ============ OrderBy Types ============ export type DefaultIdsModuleOrderBy = | 'NATURAL' @@ -5501,32 +5760,6 @@ export type CryptoAddressesModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type IdentityProvidersModuleOrderBy = - | '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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type DenormalizedTableFieldOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5555,6 +5788,36 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; +export type IdentityProvidersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5715,38 +5978,6 @@ export type CryptoAuthModuleOrderBy = | 'SIGN_UP_WITH_KEY_DESC' | 'SIGN_IN_WITH_CHALLENGE_ASC' | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | 'RATE_LIMIT_STATE_TABLE_ID_ASC' - | 'RATE_LIMIT_STATE_TABLE_ID_DESC' - | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' - | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' - | 'CHECK_RATE_LIMIT_FUNCTION_ASC' - | 'CHECK_RATE_LIMIT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type SessionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5773,7 +6004,7 @@ export type SessionsModuleOrderBy = | 'SESSION_CREDENTIALS_TABLE_DESC' | 'AUTH_SETTINGS_TABLE_ASC' | 'AUTH_SETTINGS_TABLE_DESC'; -export type ConfigSecretsModuleOrderBy = +export type SecureTableProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5783,30 +6014,22 @@ export type ConfigSecretsModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5839,6 +6062,8 @@ export type MerkleStoreModuleOrderBy = | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type GraphModuleOrderBy = @@ -5879,70 +6104,10 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC'; -export type InvitesModuleOrderBy = - | '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' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5975,7 +6140,7 @@ export type DatabaseProvisionModuleOrderBy = | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC'; -export type NamespaceModuleOrderBy = +export type ConfigSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5991,16 +6156,14 @@ export type NamespaceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NAMESPACES_TABLE_ID_ASC' - | 'NAMESPACES_TABLE_ID_DESC' - | 'NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'NAMESPACES_TABLE_NAME_ASC' - | 'NAMESPACES_TABLE_NAME_DESC' - | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' - | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' @@ -6012,7 +6175,47 @@ export type NamespaceModuleOrderBy = | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'HAS_CONFIG_ASC' + | 'HAS_CONFIG_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RATE_LIMIT_STATE_TABLE_ID_ASC' + | 'RATE_LIMIT_STATE_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' + | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' + | 'CHECK_RATE_LIMIT_FUNCTION_ASC' + | 'CHECK_RATE_LIMIT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type RealtimeModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6081,6 +6284,166 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; +export type FunctionInvocationModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type FunctionModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NamespaceModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NAMESPACES_TABLE_ID_ASC' + | 'NAMESPACES_TABLE_ID_DESC' + | 'NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'NAMESPACES_TABLE_NAME_ASC' + | 'NAMESPACES_TABLE_NAME_DESC' + | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' + | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6093,6 +6456,10 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'COMPUTE_LOG_TABLE_ID_ASC' | 'COMPUTE_LOG_TABLE_ID_DESC' | 'COMPUTE_LOG_TABLE_NAME_ASC' @@ -6131,6 +6498,10 @@ export type InferenceLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' | 'INFERENCE_LOG_TABLE_ID_DESC' | 'INFERENCE_LOG_TABLE_NAME_ASC' @@ -6169,6 +6540,10 @@ export type StorageLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'STORAGE_LOG_TABLE_ID_ASC' | 'STORAGE_LOG_TABLE_ID_DESC' | 'STORAGE_LOG_TABLE_NAME_ASC' @@ -6207,6 +6582,10 @@ export type TransferLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TRANSFER_LOG_TABLE_ID_ASC' | 'TRANSFER_LOG_TABLE_ID_DESC' | 'TRANSFER_LOG_TABLE_NAME_ASC' @@ -6233,91 +6612,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = - | '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' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type NotificationsModuleOrderBy = - | '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' - | 'NOTIFICATIONS_TABLE_ID_ASC' - | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'READ_STATE_TABLE_ID_ASC' - | 'READ_STATE_TABLE_ID_DESC' - | 'PREFERENCES_TABLE_ID_ASC' - | 'PREFERENCES_TABLE_ID_DESC' - | 'CHANNELS_TABLE_ID_ASC' - | 'CHANNELS_TABLE_ID_DESC' - | 'DELIVERY_LOG_TABLE_ID_ASC' - | 'DELIVERY_LOG_TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'USER_SETTINGS_TABLE_ID_ASC' - | 'USER_SETTINGS_TABLE_ID_DESC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' - | 'HAS_CHANNELS_ASC' - | 'HAS_CHANNELS_DESC' - | 'HAS_PREFERENCES_ASC' - | 'HAS_PREFERENCES_DESC' - | 'HAS_SETTINGS_EXTENSION_ASC' - | 'HAS_SETTINGS_EXTENSION_DESC' - | 'HAS_DIGEST_METADATA_ASC' - | 'HAS_DIGEST_METADATA_DESC' - | 'HAS_SUBSCRIPTIONS_ASC' - | 'HAS_SUBSCRIPTIONS_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PlansModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6329,6 +6624,10 @@ export type PlansModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'PLANS_TABLE_ID_ASC' | 'PLANS_TABLE_ID_DESC' | 'PLANS_TABLE_NAME_ASC' @@ -6359,100 +6658,6 @@ export type PlansModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type HierarchyModuleOrderBy = - | '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' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'METER_DEFAULTS_TABLE_ID_ASC' - | 'METER_DEFAULTS_TABLE_ID_DESC' - | 'METER_DEFAULTS_TABLE_NAME_ASC' - | 'METER_DEFAULTS_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6501,7 +6706,7 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type ProfilesModuleOrderBy = +export type DbUsageModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6513,42 +6718,90 @@ export type ProfilesModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type HierarchyModuleOrderBy = + | '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' + | 'CHART_EDGES_TABLE_ID_ASC' + | 'CHART_EDGES_TABLE_ID_DESC' + | 'CHART_EDGES_TABLE_NAME_ASC' + | 'CHART_EDGES_TABLE_NAME_DESC' + | 'HIERARCHY_SPRT_TABLE_ID_ASC' + | 'HIERARCHY_SPRT_TABLE_ID_DESC' + | 'HIERARCHY_SPRT_TABLE_NAME_ASC' + | 'HIERARCHY_SPRT_TABLE_NAME_DESC' + | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' + | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SPRT_TABLE_NAME_ASC' + | 'SPRT_TABLE_NAME_DESC' + | 'REBUILD_HIERARCHY_FUNCTION_ASC' + | 'REBUILD_HIERARCHY_FUNCTION_DESC' + | 'GET_SUBORDINATES_FUNCTION_ASC' + | 'GET_SUBORDINATES_FUNCTION_DESC' + | 'GET_MANAGERS_FUNCTION_ASC' + | 'GET_MANAGERS_FUNCTION_DESC' + | 'IS_MANAGER_OF_FUNCTION_ASC' + | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6561,6 +6814,10 @@ export type PermissionsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6591,7 +6848,7 @@ export type PermissionsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6599,10 +6856,166 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NOTIFICATIONS_TABLE_ID_ASC' + | 'NOTIFICATIONS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' + | 'PREFERENCES_TABLE_ID_ASC' + | 'PREFERENCES_TABLE_ID_DESC' + | 'CHANNELS_TABLE_ID_ASC' + | 'CHANNELS_TABLE_ID_DESC' + | 'DELIVERY_LOG_TABLE_ID_ASC' + | 'DELIVERY_LOG_TABLE_ID_DESC' + | 'SUPPRESSIONS_TABLE_ID_ASC' + | 'SUPPRESSIONS_TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'USER_SETTINGS_TABLE_ID_ASC' + | 'USER_SETTINGS_TABLE_ID_DESC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type ProfilesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' + | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' + | 'PROFILE_GRANTS_TABLE_ID_ASC' + | 'PROFILE_GRANTS_TABLE_ID_DESC' + | 'PROFILE_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' + | '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' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_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' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'METER_DEFAULTS_TABLE_ID_ASC' + | 'METER_DEFAULTS_TABLE_ID_DESC' + | 'METER_DEFAULTS_TABLE_NAME_ASC' + | 'METER_DEFAULTS_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' | 'TARGET_TABLE_ID_DESC' | 'FIELD_NAME_ASC' @@ -6643,62 +7056,6 @@ export type RelationProvisionOrderBy = | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6771,6 +7128,10 @@ export type AgentModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -6809,6 +7170,8 @@ export type AgentModuleOrderBy = | 'HAS_RESOURCES_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'SHARED_ASC' + | 'SHARED_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6824,7 +7187,9 @@ export type AgentModuleOrderBy = | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type LimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6837,6 +7202,10 @@ export type LimitsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6909,6 +7278,10 @@ export type MembershipsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' @@ -6971,11 +7344,15 @@ export type MembershipsModuleOrderBy = | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type StorageModuleOrderBy = +export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6983,46 +7360,134 @@ export type StorageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | 'OUT_INVOCATIONS_TABLE_ID_DESC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' | 'MAX_FILENAME_LENGTH_ASC' @@ -7047,6 +7512,8 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7063,6 +7530,10 @@ export type EventsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'EVENTS_TABLE_NAME_ASC' @@ -7133,98 +7604,12 @@ export type EventsModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | 'OUT_INVOCATIONS_TABLE_ID_DESC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateDefaultIdsModuleInput { clientMutationId?: string; @@ -7714,42 +8099,6 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; denormalizedTableField: { @@ -7788,16 +8137,56 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateRlsModuleInput { +export interface CreateIdentityProvidersModuleInput { clientMutationId?: string; - rlsModule: { + identityProvidersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; authenticateStrict?: string; currentRole?: string; currentRoleId?: string; @@ -7986,48 +8375,6 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateSessionsModuleInput { clientMutationId?: string; sessionsModule: { @@ -8064,47 +8411,39 @@ export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateSecureTableProvisionInput { clientMutationId?: string; - configSecretsModule: { + secureTableProvision: { databaseId: string; schemaId?: string; - privateSchemaId?: string; tableId?: string; - configDefinitionsTableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; policies?: Record; - provisions?: Record; - hasConfig?: boolean; + outFields?: string[]; }; } -export interface ConfigSecretsModulePatch { +export interface SecureTableProvisionPatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + outFields?: string[] | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + secureTableProvisionPatch: SecureTableProvisionPatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; id: string; } @@ -8124,6 +8463,7 @@ export interface CreateMerkleStoreModuleInput { apiName?: string; privateApiName?: string; scope?: string; + functionPrefix?: string; }; } export interface MerkleStoreModulePatch { @@ -8140,6 +8480,7 @@ export interface MerkleStoreModulePatch { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; } export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; @@ -8169,6 +8510,7 @@ export interface CreateGraphModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface GraphModulePatch { @@ -8188,6 +8530,7 @@ export interface GraphModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateGraphModuleInput { clientMutationId?: string; @@ -8198,88 +8541,6 @@ export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -export interface SecureTableProvisionPatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; -} -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; -} -export interface DeleteSecureTableProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -8318,18 +8579,17 @@ export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateNamespaceModuleInput { +export interface CreateConfigSecretsModuleInput { clientMutationId?: string; - namespaceModule: { + configSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -8337,18 +8597,18 @@ export interface CreateNamespaceModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + hasConfig?: boolean; }; } -export interface NamespaceModulePatch { +export interface ConfigSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -8356,38 +8616,87 @@ export interface NamespaceModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; } -export interface UpdateNamespaceModuleInput { +export interface UpdateConfigSecretsModuleInput { clientMutationId?: string; id: string; - namespaceModulePatch: NamespaceModulePatch; + configSecretsModulePatch: ConfigSecretsModulePatch; } -export interface DeleteNamespaceModuleInput { +export interface DeleteConfigSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; - realtimeModule: { + rateLimitMetersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RealtimeModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; subscriptionsSchemaId?: string | null; changeLogTableId?: string | null; listenerNodeTableId?: string | null; @@ -8454,299 +8763,411 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateFunctionModuleInput { clientMutationId?: string; - inferenceLogModule: { + functionModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface InferenceLogModulePatch { +export interface FunctionModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateFunctionModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + functionModulePatch: FunctionModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - storageLogModule: { + invitesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateNamespaceModuleInput { clientMutationId?: string; - transferLogModule: { + namespaceModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface TransferLogModulePatch { +export interface NamespaceModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - dbUsageModule: { + inferenceLogModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; interval?: string; retention?: string; premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; interval?: string | null; retention?: string | null; premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateNotificationsModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - notificationsModule: { + storageLogModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface NotificationsModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateNotificationsModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - notificationsModulePatch: NotificationsModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteNotificationsModuleInput { +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -8756,6 +9177,8 @@ export interface CreatePlansModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; plansTableId?: string; plansTableName?: string; planLimitsTableId?: string; @@ -8777,6 +9200,8 @@ export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -8802,121 +9227,9 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateHierarchyModuleInput { +export interface CreateBillingProviderModuleInput { clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - scope?: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - scope?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { + billingProviderModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; @@ -8972,61 +9285,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateProfilesModuleInput { +export interface CreateDbUsageModuleInput { clientMutationId?: string; - profilesModule: { + dbUsageModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; } -export interface ProfilesModulePatch { +export interface DbUsageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateProfilesModuleInput { +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - profilesModulePatch: ProfilesModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteProfilesModuleInput { +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } @@ -9036,6 +9405,8 @@ export interface CreatePermissionsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9057,6 +9428,8 @@ export interface PermissionsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9082,131 +9455,251 @@ export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - relationProvision: { + notificationsModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; - }; -} -export interface RelationProvisionPatch { - databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; - policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; } -export interface UpdateRelationProvisionInput { +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + notificationsModulePatch: NotificationsModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionModuleInput { +export interface CreateProfilesModuleInput { clientMutationId?: string; - functionModule: { + profilesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; scope?: string; prefix?: string; entityTableId?: string; - policies?: Record; - provisions?: Record; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionModulePatch { +export interface ProfilesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; } -export interface UpdateFunctionModuleInput { +export interface UpdateRelationProvisionInput { clientMutationId?: string; id: string; - functionModulePatch: FunctionModulePatch; + relationProvisionPatch: RelationProvisionPatch; } -export interface DeleteFunctionModuleInput { +export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } @@ -9286,6 +9779,8 @@ export interface CreateAgentModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; threadTableId?: string; messageTableId?: string; taskTableId?: string; @@ -9305,6 +9800,7 @@ export interface CreateAgentModuleInput { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: string; privateApiName?: string; scope?: string; @@ -9313,12 +9809,15 @@ export interface CreateAgentModuleInput { policies?: Record; resources?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface AgentModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -9338,6 +9837,7 @@ export interface AgentModulePatch { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9346,6 +9846,7 @@ export interface AgentModulePatch { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -9362,6 +9863,8 @@ export interface CreateLimitsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9398,6 +9901,8 @@ export interface LimitsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9444,6 +9949,8 @@ export interface CreateMembershipsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; membershipsTableId?: string; membershipsTableName?: string; membersTableId?: string; @@ -9475,6 +9982,8 @@ export interface CreateMembershipsModuleInput { entityIdsByPerm?: string; entityIdsFunction?: string; memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; }; @@ -9483,6 +9992,8 @@ export interface MembershipsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -9514,6 +10025,8 @@ export interface MembershipsModulePatch { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } @@ -9526,12 +10039,108 @@ export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateStorageModuleInput { clientMutationId?: string; storageModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; bucketsTableId?: string; filesTableId?: string; bucketsTableName?: string; @@ -9562,6 +10171,7 @@ export interface CreateStorageModuleInput { hasConfirmUpload?: boolean; confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9570,6 +10180,8 @@ export interface StorageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; bucketsTableName?: string | null; @@ -9600,6 +10212,7 @@ export interface StorageModulePatch { hasConfirmUpload?: boolean | null; confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9618,6 +10231,8 @@ export interface CreateEventsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; eventsTableId?: string; eventsTableName?: string; eventAggregatesTableId?: string; @@ -9653,6 +10268,7 @@ export interface CreateEventsModuleInput { prefix?: string; entityTableId?: string; actorTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9661,6 +10277,8 @@ export interface EventsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; eventAggregatesTableId?: string | null; @@ -9696,6 +10314,7 @@ export interface EventsModulePatch { prefix?: string | null; entityTableId?: string | null; actorTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9708,104 +10327,6 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Blueprint: { @@ -9967,15 +10488,6 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleToManyGraphModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: GraphModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: GraphModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: GraphModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -10015,44 +10527,1586 @@ export interface JSONListFilter { /** Any array item is greater than or equal to the specified value. */ anyGreaterThanOrEqualTo?: Record; } -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** 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?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyGraphModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: GraphModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: GraphModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: GraphModuleFilter; } -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ +/** An input for mutations affecting `DefaultIdsModule` */ +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +/** An input for mutations affecting `MembershipTypesModule` */ +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; +} +/** An input for mutations affecting `ConfigSecretsOrgModule` */ +export interface ConfigSecretsOrgModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DevicesModule` */ +export interface DevicesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; +} +/** An input for mutations affecting `I18NModule` */ +export interface I18NModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; +} +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RateLimitsModule` */ +export interface RateLimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; +} +/** An input for mutations affecting `UsersModule` */ +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnCredentialsModule` */ +export interface WebauthnCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `CryptoAddressesModule` */ +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DenormalizedTableField` */ +export interface DenormalizedTableFieldInput { + id?: string; + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; +} +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `Blueprint` */ +export interface BlueprintInput { + /** Unique identifier for this blueprint. */ + id?: string; + /** The user who owns this blueprint. */ + ownerId: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name: string; + /** Human-readable display name for the blueprint. */ + displayName: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. */ + definition: Record; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintTemplate` */ +export interface BlueprintTemplateInput { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition: Record; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintConstruction` */ +export interface BlueprintConstructionInput { + /** Unique identifier for this construction attempt. */ + id?: string; + /** The blueprint that was constructed. */ + blueprintId: string; + /** The database the blueprint was constructed into. */ + databaseId: string; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string; + /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). */ + status?: string; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. */ + constructedDefinition?: Record; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Timestamp when this construction attempt was created. */ + createdAt?: string; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAuthModule` */ +export interface CryptoAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; +} +/** An input for mutations affecting `SessionsModule` */ +export interface SessionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} +/** 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; +} +/** 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?: Record; + /** 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?: Record[]; + /** 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?: Record; + /** 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?: Record; + /** 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[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + createdAt?: string; +} +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `ConfigSecretsModule` */ +export interface ConfigSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; +} +/** An input for mutations affecting `RateLimitMetersModule` */ +export interface RateLimitMetersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnAuthModule` */ +export interface WebauthnAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + authSettingsTableId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; +} +/** An input for mutations affecting `FunctionInvocationModule` */ +export interface FunctionInvocationModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `StorageLogModule` */ +export interface StorageLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `TransferLogModule` */ +export interface TransferLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingProviderModule` */ +export interface BillingProviderModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `HierarchyModule` */ +export interface HierarchyModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RelationProvision` */ +export interface RelationProvisionInput { + /** Unique identifier for this relation provision row. */ + id?: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId: string; + /** + * The type of relation to create. Uses SuperCase naming: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType: string; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId: string; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId: string; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean; + /** + * For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. + * Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. + * Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + nodes?: Record; + /** For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. */ + grants?: Record; + /** + * For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. + * Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. + * Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + policies?: Record; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; +} +/** An input for mutations affecting `UserAuthModule` */ +export interface UserAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInCrossOriginFunction?: string; + requestCrossOriginTokenFunction?: string; + extendTokenExpires?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `AgentModule` */ +export interface AgentModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + planTableId?: string; + agentTableId?: string; + personaTableId?: string; + resourceTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + planTableName?: string; + agentTableName?: string; + personaTableName?: string; + resourceTableName?: string; + hasPlans?: boolean; + hasResources?: boolean; + hasAgents?: boolean; + shared?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + resources?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EntityTypeProvision` */ +export interface EntityTypeProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database to provision this entity type in. Required. */ + databaseId: string; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name: string; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix: string; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record; + agents?: Record; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[]; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string; + outPathSharesTableId?: string; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: Record; + provisions?: Record; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EventsModule` */ +export interface EventsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + pruneEvents?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** 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?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `version` field. */ version?: StringFilter; @@ -10150,25 +12204,6 @@ export interface BlueprintFilter { /** `blueprintConstructions` exist. */ blueprintConstructionsExist?: boolean; } -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ @@ -10205,6 +12240,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -10472,6 +12509,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -11326,68 +13365,23 @@ export type UpdateCryptoAddressesModulePayloadSelect = { cryptoAddressesModule?: { select: CryptoAddressesModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; }; -export interface DeleteIdentityProvidersModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteIdentityProvidersModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; export interface CreateDenormalizedTableFieldPayload { @@ -11435,6 +13429,51 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -11660,51 +13699,6 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; export interface CreateSessionsModulePayload { clientMutationId?: string | null; /** The `SessionsModule` that was created by this mutation. */ @@ -11750,49 +13744,49 @@ export type DeleteSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -11879,100 +13873,10 @@ export interface DeleteGraphModulePayload { export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; + select: GraphModuleSelect; }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -12020,49 +13924,94 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { +export interface CreateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type CreateNamespaceModulePayloadSelect = { +export type CreateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface UpdateNamespaceModulePayload { +export interface UpdateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type UpdateNamespaceModulePayloadSelect = { +export type UpdateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface DeleteNamespaceModulePayload { +export interface DeleteConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type DeleteNamespaceModulePayloadSelect = { +export type DeleteConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type CreateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type UpdateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type DeleteRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; export interface CreateRealtimeModulePayload { @@ -12112,47 +14061,227 @@ export type DeleteRealtimeModulePayloadSelect = { }; export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface CreateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was created by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type CreateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was updated by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type UpdateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was deleted by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type DeleteFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface CreateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type CreateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface UpdateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type UpdateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface DeleteFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type DeleteFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -12335,139 +14464,139 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateNotificationsModulePayload { +export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type CreateNotificationsModulePayloadSelect = { +export type CreateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface UpdateNotificationsModulePayload { +export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type UpdateNotificationsModulePayloadSelect = { +export type UpdateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface DeleteNotificationsModulePayload { +export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteNotificationsModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface CreatePlansModulePayload { +export interface CreateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type CreatePlansModulePayloadSelect = { +export type CreateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdatePlansModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdatePlansModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeletePlansModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeletePlansModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateHierarchyModulePayload { @@ -12515,94 +14644,94 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface CreateBillingProviderModulePayload { +export interface CreateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type CreateBillingProviderModulePayloadSelect = { +export type CreateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface UpdateBillingProviderModulePayload { +export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type UpdateBillingProviderModulePayloadSelect = { +export type UpdateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface DeleteBillingProviderModulePayload { +export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; export interface CreateProfilesModulePayload { @@ -12650,49 +14779,49 @@ export type DeleteProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreatePermissionsModulePayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdatePermissionsModulePayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdatePermissionsModulePayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeletePermissionsModulePayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeletePermissionsModulePayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateRelationProvisionPayload { @@ -12740,51 +14869,6 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was created by this mutation. */ @@ -12965,6 +15049,51 @@ export type DeleteMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; export interface CreateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was created by this mutation. */ @@ -13046,58 +15175,13 @@ export interface DeleteEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { +export type DeleteEventsModulePayloadSelect = { clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; + eventsModule?: { + select: EventsModuleSelect; }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; }; }; export interface ProvisionTableRecord { @@ -13324,18 +15408,6 @@ export type CryptoAddressesModuleEdgeSelect = { select: CryptoAddressesModuleSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { cursor?: string | null; @@ -13348,6 +15420,18 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -13408,18 +15492,6 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; /** A `SessionsModule` edge in the connection. */ export interface SessionsModuleEdge { cursor?: string | null; @@ -13432,16 +15504,16 @@ export type SessionsModuleEdgeSelect = { select: SessionsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type SecureTableProvisionEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: SecureTableProvisionSelect; }; }; /** A `MerkleStoreModule` edge in the connection. */ @@ -13468,30 +15540,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} -export type SecureTableProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: SecureTableProvisionSelect; - }; -}; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -13504,16 +15552,28 @@ export type DatabaseProvisionModuleEdgeSelect = { select: DatabaseProvisionModuleSelect; }; }; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { +/** A `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; } -export type NamespaceModuleEdgeSelect = { +export type ConfigSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: NamespaceModuleSelect; + select: ConfigSecretsModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; }; }; /** A `RealtimeModule` edge in the connection. */ @@ -13540,6 +15600,54 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { + cursor?: string | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; +} +export type FunctionInvocationModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionInvocationModuleSelect; + }; +}; +/** A `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { cursor?: string | null; @@ -13588,40 +15696,40 @@ export type TransferLogModuleEdgeSelect = { select: TransferLogModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type DbUsageModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: PlansModuleSelect; }; }; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; } -export type NotificationsModuleEdgeSelect = { +export type BillingProviderModuleEdgeSelect = { cursor?: boolean; node?: { - select: NotificationsModuleSelect; + select: BillingProviderModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; } -export type PlansModuleEdgeSelect = { +export type DbUsageModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: DbUsageModuleSelect; }; }; /** A `HierarchyModule` edge in the connection. */ @@ -13636,28 +15744,28 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; } -export type BillingModuleEdgeSelect = { +export type PermissionsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: PermissionsModuleSelect; }; }; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; } -export type BillingProviderModuleEdgeSelect = { +export type NotificationsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingProviderModuleSelect; + select: NotificationsModuleSelect; }; }; /** A `ProfilesModule` edge in the connection. */ @@ -13672,16 +15780,16 @@ export type ProfilesModuleEdgeSelect = { select: ProfilesModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type PermissionsModuleEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: BillingModuleSelect; }; }; /** A `RelationProvision` edge in the connection. */ @@ -13696,18 +15804,6 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { cursor?: string | null; @@ -13756,6 +15852,18 @@ export type MembershipsModuleEdgeSelect = { select: MembershipsModuleSelect; }; }; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; /** A `StorageModule` edge in the connection. */ export interface StorageModuleEdge { cursor?: string | null; @@ -13780,15 +15888,3 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; diff --git a/sdk/constructive-cli/src/modules/orm/models/functionInvocationModule.ts b/sdk/constructive-cli/src/modules/orm/models/functionInvocationModule.ts new file mode 100644 index 0000000000..f8b9e92fc1 --- /dev/null +++ b/sdk/constructive-cli/src/modules/orm/models/functionInvocationModule.ts @@ -0,0 +1,246 @@ +/** + * FunctionInvocationModule 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 { + FunctionInvocationModule, + FunctionInvocationModuleWithRelations, + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, + CreateFunctionInvocationModuleInput, + UpdateFunctionInvocationModuleInput, + FunctionInvocationModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FunctionInvocationModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + 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, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FunctionInvocationModule', + 'createFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.data, + 'CreateFunctionInvocationModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'createFunctionInvocationModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FunctionInvocationModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FunctionInvocationModule', + 'updateFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.where.id, + args.data, + 'UpdateFunctionInvocationModuleInput', + 'id', + 'functionInvocationModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'updateFunctionInvocationModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FunctionInvocationModule', + 'deleteFunctionInvocationModule', + 'functionInvocationModule', + { + id: args.where.id, + }, + 'DeleteFunctionInvocationModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'deleteFunctionInvocationModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/modules/orm/models/index.ts b/sdk/constructive-cli/src/modules/orm/models/index.ts index 7afef56c9e..f478d2642f 100644 --- a/sdk/constructive-cli/src/modules/orm/models/index.ts +++ b/sdk/constructive-cli/src/modules/orm/models/index.ts @@ -20,42 +20,43 @@ export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { SessionsModuleModel } from './sessionsModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { GraphModuleModel } from './graphModule'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { InvitesModuleModel } from './invitesModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { NamespaceModuleModel } from './namespaceModule'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RealtimeModuleModel } from './realtimeModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { FunctionModuleModel } from './functionModule'; +export { InvitesModuleModel } from './invitesModule'; +export { NamespaceModuleModel } from './namespaceModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { NotificationsModuleModel } from './notificationsModule'; export { PlansModuleModel } from './plansModule'; -export { HierarchyModuleModel } from './hierarchyModule'; -export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { ProfilesModuleModel } from './profilesModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { HierarchyModuleModel } from './hierarchyModule'; export { PermissionsModuleModel } from './permissionsModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { BillingModuleModel } from './billingModule'; export { RelationProvisionModel } from './relationProvision'; -export { FunctionModuleModel } from './functionModule'; export { UserAuthModuleModel } from './userAuthModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; export { MembershipsModuleModel } from './membershipsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; export { EventsModuleModel } from './eventsModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index c68287aede..5b07f40d3b 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -680,6 +680,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `Ref` */ +export interface RefInput { + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this ref belongs to */ + storeId: string; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `Store` */ +export interface StoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `Commit` */ +export interface CommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} // ============ Payload/Return Types (for custom operations) ============ export interface InitEmptyRepoPayload { clientMutationId?: string | null; diff --git a/sdk/constructive-cli/src/usage/orm/input-types.ts b/sdk/constructive-cli/src/usage/orm/input-types.ts index 8c8382f866..095012a4be 100644 --- a/sdk/constructive-cli/src/usage/orm/input-types.ts +++ b/sdk/constructive-cli/src/usage/orm/input-types.ts @@ -2194,6 +2194,320 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCapsDefault` */ +export interface OrgLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** 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; +} +/** An input for mutations affecting `AppLimitCredit` */ +export interface AppLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +/** An input for mutations affecting `AppLimitCreditRedemption` */ +export interface AppLimitCreditRedemptionInput { + id?: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId: string; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; +} +/** 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; +} +/** An input for mutations affecting `OrgLimitCredit` */ +export interface OrgLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** 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?: 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -2290,25 +2604,6 @@ export interface AppLimitCreditRedemptionFilter { /** Filter by the object’s `creditCode` relation. */ creditCode?: AppLimitCreditCodeFilter; } -/** 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 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). */ diff --git a/sdk/constructive-react/src/.targets b/sdk/constructive-react/src/.targets new file mode 100644 index 0000000000..bf4de0b16a --- /dev/null +++ b/sdk/constructive-react/src/.targets @@ -0,0 +1 @@ +["admin","agent","api","auth","modules","objects","usage"] diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 7de4257ba8..99dd47ec2e 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 26 +- **Tables:** 30 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 0e11df1f08..ca2d72b18f 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -41,11 +41,26 @@ function App() { | `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useUpdateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useDeleteAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useAppPermissionDefaultGrantsQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | +| `useAppPermissionDefaultGrantQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | +| `useCreateAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | +| `useUpdateAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | +| `useDeleteAppPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | | `useOrgPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useOrgPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `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 | +| `useOrgPermissionDefaultPermissionsQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useOrgPermissionDefaultPermissionQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useCreateOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useUpdateOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useDeleteOrgPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useOrgPermissionDefaultGrantsQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | +| `useOrgPermissionDefaultGrantQuery` | Query | Audit log of permission additions and removals from the defaults bitmask | +| `useCreateOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | +| `useUpdateOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | +| `useDeleteOrgPermissionDefaultGrantMutation` | Mutation | Audit log of permission additions and removals from the defaults bitmask | | `useOrgMembersQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | | `useOrgMemberQuery` | Query | Simplified view of active members in an entity, used for listing who belongs to an org or group | | `useCreateOrgMemberMutation` | Mutation | Simplified view of active members in an entity, used for listing who belongs to an org or group | @@ -61,6 +76,11 @@ function App() { | `useCreateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useUpdateOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | | `useDeleteOrgPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultPermissionsQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useAppPermissionDefaultPermissionQuery` | Query | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useCreateAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useUpdateAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | +| `useDeleteAppPermissionDefaultPermissionMutation` | Mutation | Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask | | `useAppAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | | `useAppAdminGrantQuery` | Query | Records of admin role grants and revocations between members | | `useCreateAppAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | @@ -136,11 +156,6 @@ function App() { | `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useUpdateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useDeleteAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | -| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | -| `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 | | `useOrgMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useOrgMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateOrgMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | @@ -151,6 +166,11 @@ function App() { | `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) | +| `useAppInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useAppInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `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 | | `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 | @@ -225,6 +245,27 @@ const { mutate: create } = useCreateAppPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` +### AppPermissionDefaultGrant + +```typescript +// List all appPermissionDefaultGrants +const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appPermissionDefaultGrant +const { data: item } = useAppPermissionDefaultGrantQuery({ + id: '', + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appPermissionDefaultGrant +const { mutate: create } = useCreateAppPermissionDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissionId: '', isGrant: '', grantorId: '' }); +``` + ### OrgPermission ```typescript @@ -246,6 +287,48 @@ const { mutate: create } = useCreateOrgPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` +### OrgPermissionDefaultPermission + +```typescript +// List all orgPermissionDefaultPermissions +const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ + selection: { fields: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one orgPermissionDefaultPermission +const { data: item } = useOrgPermissionDefaultPermissionQuery({ + id: '', + selection: { fields: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgPermissionDefaultPermission +const { mutate: create } = useCreateOrgPermissionDefaultPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ permissionId: '', entityId: '' }); +``` + +### OrgPermissionDefaultGrant + +```typescript +// List all orgPermissionDefaultGrants +const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one orgPermissionDefaultGrant +const { data: item } = useOrgPermissionDefaultGrantQuery({ + id: '', + selection: { fields: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a orgPermissionDefaultGrant +const { mutate: create } = useCreateOrgPermissionDefaultGrantMutation({ + selection: { fields: { id: true } }, +}); +create({ permissionId: '', isGrant: '', grantorId: '', entityId: '' }); +``` + ### OrgMember ```typescript @@ -309,6 +392,27 @@ const { mutate: create } = useCreateOrgPermissionDefaultMutation({ create({ permissions: '', entityId: '' }); ``` +### AppPermissionDefaultPermission + +```typescript +// List all appPermissionDefaultPermissions +const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ + selection: { fields: { id: true, permissionId: true, createdAt: true, updatedAt: true } }, +}); + +// Get one appPermissionDefaultPermission +const { data: item } = useAppPermissionDefaultPermissionQuery({ + id: '', + selection: { fields: { id: true, permissionId: true, createdAt: true, updatedAt: true } }, +}); + +// Create a appPermissionDefaultPermission +const { mutate: create } = useCreateAppPermissionDefaultPermissionMutation({ + selection: { fields: { id: true } }, +}); +create({ permissionId: '' }); +``` + ### AppAdminGrant ```typescript @@ -624,27 +728,6 @@ const { mutate: create } = useCreateAppMembershipMutation({ create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` -### AppInvite - -```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, 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, 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: '', profileId: '', expiresAt: '' }); -``` - ### OrgMembership ```typescript @@ -687,25 +770,46 @@ const { mutate: create } = useCreateOrgMemberProfileMutation({ create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); ``` +### AppInvite + +```typescript +// List all appInvites +const { data, isLoading } = useAppInvitesQuery({ + selection: { fields: { id: true, channel: true, email: true, phone: 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, channel: true, email: true, phone: 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({ channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); +``` + ### OrgInvite ```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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); +create({ channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index c6a522b17a..e4868bec3c 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, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, OrgAdminGrant, OrgOwnerGrant, OrgChartEdgeGrant, AppClaimedInvite, MembershipType, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMembershipSetting, AppMembership, AppInvite, OrgMembership, OrgMemberProfile, OrgInvite + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, AppPermissionDefaultGrant, OrgPermission, OrgPermissionDefaultPermission, OrgPermissionDefaultGrant, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppPermissionDefaultPermission, AppAdminGrant, AppOwnerGrant, OrgAdminGrant, OrgOwnerGrant, OrgChartEdgeGrant, AppClaimedInvite, MembershipType, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMembershipSetting, AppMembership, OrgMembership, OrgMemberProfile, AppInvite, OrgInvite * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 4c823879d4..392051d412 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -18,10 +18,14 @@ import { orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, appPermissionKeys, + appPermissionDefaultGrantKeys, orgPermissionKeys, + orgPermissionDefaultPermissionKeys, + orgPermissionDefaultGrantKeys, orgMemberKeys, appPermissionDefaultKeys, orgPermissionDefaultKeys, + appPermissionDefaultPermissionKeys, appAdminGrantKeys, appOwnerGrantKeys, orgAdminGrantKeys, @@ -37,9 +41,9 @@ import { orgChartEdgeKeys, orgMembershipSettingKeys, appMembershipKeys, - appInviteKeys, orgMembershipKeys, orgMemberProfileKeys, + appInviteKeys, orgInviteKeys, } from './query-keys'; /** @@ -113,6 +117,23 @@ export const invalidate = { queryKey: appPermissionKeys.detail(id), }), }, + /** Invalidate appPermissionDefaultGrant queries */ appPermissionDefaultGrant: { + /** Invalidate all appPermissionDefaultGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.all, + }), + /** Invalidate appPermissionDefaultGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.lists(), + }), + /** Invalidate a specific appPermissionDefaultGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.detail(id), + }), + }, /** Invalidate orgPermission queries */ orgPermission: { /** Invalidate all orgPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -130,6 +151,42 @@ export const invalidate = { queryKey: orgPermissionKeys.detail(id), }), }, + /** Invalidate orgPermissionDefaultPermission queries */ orgPermissionDefaultPermission: { + /** Invalidate all orgPermissionDefaultPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.all, + }), + /** Invalidate orgPermissionDefaultPermission list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefaultPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.detail(id), + }), + }, + /** Invalidate orgPermissionDefaultGrant queries */ orgPermissionDefaultGrant: { + /** Invalidate all orgPermissionDefaultGrant queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.all, + }), + /** Invalidate orgPermissionDefaultGrant list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.lists(), + }), + /** Invalidate a specific orgPermissionDefaultGrant */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.detail(id), + }), + }, /** Invalidate orgMember queries */ orgMember: { /** Invalidate all orgMember queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -181,6 +238,25 @@ export const invalidate = { queryKey: orgPermissionDefaultKeys.detail(id), }), }, + /** Invalidate appPermissionDefaultPermission queries */ appPermissionDefaultPermission: { + /** Invalidate all appPermissionDefaultPermission queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.all, + }), + /** Invalidate appPermissionDefaultPermission list queries */ lists: ( + queryClient: QueryClient + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.lists(), + }), + /** Invalidate a specific appPermissionDefaultPermission */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.detail(id), + }), + }, /** Invalidate appAdminGrant queries */ appAdminGrant: { /** Invalidate all appAdminGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -430,23 +506,6 @@ export const invalidate = { queryKey: appMembershipKeys.detail(id), }), }, - /** Invalidate appInvite queries */ appInvite: { - /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.all, - }), - /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.lists(), - }), - /** Invalidate a specific appInvite */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: appInviteKeys.detail(id), - }), - }, /** Invalidate orgMembership queries */ orgMembership: { /** Invalidate all orgMembership queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -481,6 +540,23 @@ export const invalidate = { queryKey: orgMemberProfileKeys.detail(id), }), }, + /** Invalidate appInvite queries */ appInvite: { + /** Invalidate all appInvite queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appInviteKeys.all, + }), + /** Invalidate appInvite list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appInviteKeys.lists(), + }), + /** Invalidate a specific appInvite */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appInviteKeys.detail(id), + }), + }, /** Invalidate orgInvite queries */ orgInvite: { /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -535,6 +611,14 @@ export const remove = { queryKey: appPermissionKeys.detail(id), }); }, + /** Remove appPermissionDefaultGrant from cache */ appPermissionDefaultGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultGrantKeys.detail(id), + }); + }, /** Remove orgPermission from cache */ orgPermission: ( queryClient: QueryClient, id: string | number @@ -543,6 +627,22 @@ export const remove = { queryKey: orgPermissionKeys.detail(id), }); }, + /** Remove orgPermissionDefaultPermission from cache */ orgPermissionDefaultPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultPermissionKeys.detail(id), + }); + }, + /** Remove orgPermissionDefaultGrant from cache */ orgPermissionDefaultGrant: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultGrantKeys.detail(id), + }); + }, /** Remove orgMember from cache */ orgMember: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: orgMemberKeys.detail(id), @@ -564,6 +664,14 @@ export const remove = { queryKey: orgPermissionDefaultKeys.detail(id), }); }, + /** Remove appPermissionDefaultPermission from cache */ appPermissionDefaultPermission: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultPermissionKeys.detail(id), + }); + }, /** Remove appAdminGrant from cache */ appAdminGrant: ( queryClient: QueryClient, id: string | number @@ -678,11 +786,6 @@ export const remove = { queryKey: appMembershipKeys.detail(id), }); }, - /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appInviteKeys.detail(id), - }); - }, /** Remove orgMembership from cache */ orgMembership: ( queryClient: QueryClient, id: string | number @@ -699,6 +802,11 @@ export const remove = { queryKey: orgMemberProfileKeys.detail(id), }); }, + /** Remove appInvite from cache */ appInvite: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appInviteKeys.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 c5e0bb8720..1140fab806 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -48,6 +48,18 @@ export const appPermissionMutationKeys = { /** Delete appPermission mutation key */ delete: (id: string | number) => ['mutation', 'apppermission', 'delete', id] as const, } as const; +export const appPermissionDefaultGrantMutationKeys = { + /** All appPermissionDefaultGrant mutation keys */ all: [ + 'mutation', + 'apppermissiondefaultgrant', + ] as const, + /** Create appPermissionDefaultGrant mutation key */ create: () => + ['mutation', 'apppermissiondefaultgrant', 'create'] as const, + /** Update appPermissionDefaultGrant mutation key */ update: (id: string | number) => + ['mutation', 'apppermissiondefaultgrant', 'update', id] as const, + /** Delete appPermissionDefaultGrant mutation key */ delete: (id: string | number) => + ['mutation', 'apppermissiondefaultgrant', 'delete', id] as const, +} as const; export const orgPermissionMutationKeys = { /** All orgPermission mutation keys */ all: ['mutation', 'orgpermission'] as const, /** Create orgPermission mutation key */ create: () => @@ -57,6 +69,30 @@ export const orgPermissionMutationKeys = { /** Delete orgPermission mutation key */ delete: (id: string | number) => ['mutation', 'orgpermission', 'delete', id] as const, } as const; +export const orgPermissionDefaultPermissionMutationKeys = { + /** All orgPermissionDefaultPermission mutation keys */ all: [ + 'mutation', + 'orgpermissiondefaultpermission', + ] as const, + /** Create orgPermissionDefaultPermission mutation key */ create: () => + ['mutation', 'orgpermissiondefaultpermission', 'create'] as const, + /** Update orgPermissionDefaultPermission mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefaultpermission', 'update', id] as const, + /** Delete orgPermissionDefaultPermission mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefaultpermission', 'delete', id] as const, +} as const; +export const orgPermissionDefaultGrantMutationKeys = { + /** All orgPermissionDefaultGrant mutation keys */ all: [ + 'mutation', + 'orgpermissiondefaultgrant', + ] as const, + /** Create orgPermissionDefaultGrant mutation key */ create: () => + ['mutation', 'orgpermissiondefaultgrant', 'create'] as const, + /** Update orgPermissionDefaultGrant mutation key */ update: (id: string | number) => + ['mutation', 'orgpermissiondefaultgrant', 'update', id] as const, + /** Delete orgPermissionDefaultGrant mutation key */ delete: (id: string | number) => + ['mutation', 'orgpermissiondefaultgrant', 'delete', id] as const, +} as const; export const orgMemberMutationKeys = { /** All orgMember mutation keys */ all: ['mutation', 'orgmember'] as const, /** Create orgMember mutation key */ create: () => ['mutation', 'orgmember', 'create'] as const, @@ -83,6 +119,18 @@ export const orgPermissionDefaultMutationKeys = { /** Delete orgPermissionDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgpermissiondefault', 'delete', id] as const, } as const; +export const appPermissionDefaultPermissionMutationKeys = { + /** All appPermissionDefaultPermission mutation keys */ all: [ + 'mutation', + 'apppermissiondefaultpermission', + ] as const, + /** Create appPermissionDefaultPermission mutation key */ create: () => + ['mutation', 'apppermissiondefaultpermission', 'create'] as const, + /** Update appPermissionDefaultPermission mutation key */ update: (id: string | number) => + ['mutation', 'apppermissiondefaultpermission', 'update', id] as const, + /** Delete appPermissionDefaultPermission mutation key */ delete: (id: string | number) => + ['mutation', 'apppermissiondefaultpermission', 'delete', id] as const, +} as const; export const appAdminGrantMutationKeys = { /** All appAdminGrant mutation keys */ all: ['mutation', 'appadmingrant'] as const, /** Create appAdminGrant mutation key */ create: () => @@ -216,14 +264,6 @@ export const appMembershipMutationKeys = { /** Delete appMembership mutation key */ delete: (id: string | number) => ['mutation', 'appmembership', 'delete', id] as const, } as const; -export const appInviteMutationKeys = { - /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, - /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, - /** Update appInvite mutation key */ update: (id: string | number) => - ['mutation', 'appinvite', 'update', id] as const, - /** Delete appInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appinvite', 'delete', id] as const, -} as const; export const orgMembershipMutationKeys = { /** All orgMembership mutation keys */ all: ['mutation', 'orgmembership'] as const, /** Create orgMembership mutation key */ create: () => @@ -242,6 +282,14 @@ export const orgMemberProfileMutationKeys = { /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => ['mutation', 'orgmemberprofile', 'delete', id] as const, } as const; +export const appInviteMutationKeys = { + /** All appInvite mutation keys */ all: ['mutation', 'appinvite'] as const, + /** Create appInvite mutation key */ create: () => ['mutation', 'appinvite', 'create'] as const, + /** Update appInvite mutation key */ update: (id: string | number) => + ['mutation', 'appinvite', 'update', id] as const, + /** Delete appInvite mutation key */ delete: (id: string | number) => + ['mutation', 'appinvite', '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, @@ -295,10 +343,14 @@ export const mutationKeys = { orgGetManagersRecord: orgGetManagersRecordMutationKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, appPermission: appPermissionMutationKeys, + appPermissionDefaultGrant: appPermissionDefaultGrantMutationKeys, orgPermission: orgPermissionMutationKeys, + orgPermissionDefaultPermission: orgPermissionDefaultPermissionMutationKeys, + orgPermissionDefaultGrant: orgPermissionDefaultGrantMutationKeys, orgMember: orgMemberMutationKeys, appPermissionDefault: appPermissionDefaultMutationKeys, orgPermissionDefault: orgPermissionDefaultMutationKeys, + appPermissionDefaultPermission: appPermissionDefaultPermissionMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, orgAdminGrant: orgAdminGrantMutationKeys, @@ -314,9 +366,9 @@ export const mutationKeys = { orgChartEdge: orgChartEdgeMutationKeys, orgMembershipSetting: orgMembershipSettingMutationKeys, appMembership: appMembershipMutationKeys, - appInvite: appInviteMutationKeys, orgMembership: orgMembershipMutationKeys, orgMemberProfile: orgMemberProfileMutationKeys, + appInvite: appInviteMutationKeys, orgInvite: orgInviteMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index ab1ec5d951..7d87841062 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -8,9 +8,18 @@ export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; +export * from './useCreateAppPermissionDefaultGrantMutation'; +export * from './useUpdateAppPermissionDefaultGrantMutation'; +export * from './useDeleteAppPermissionDefaultGrantMutation'; export * from './useCreateOrgPermissionMutation'; export * from './useUpdateOrgPermissionMutation'; export * from './useDeleteOrgPermissionMutation'; +export * from './useCreateOrgPermissionDefaultPermissionMutation'; +export * from './useUpdateOrgPermissionDefaultPermissionMutation'; +export * from './useDeleteOrgPermissionDefaultPermissionMutation'; +export * from './useCreateOrgPermissionDefaultGrantMutation'; +export * from './useUpdateOrgPermissionDefaultGrantMutation'; +export * from './useDeleteOrgPermissionDefaultGrantMutation'; export * from './useCreateOrgMemberMutation'; export * from './useUpdateOrgMemberMutation'; export * from './useDeleteOrgMemberMutation'; @@ -20,6 +29,9 @@ export * from './useDeleteAppPermissionDefaultMutation'; export * from './useCreateOrgPermissionDefaultMutation'; export * from './useUpdateOrgPermissionDefaultMutation'; export * from './useDeleteOrgPermissionDefaultMutation'; +export * from './useCreateAppPermissionDefaultPermissionMutation'; +export * from './useUpdateAppPermissionDefaultPermissionMutation'; +export * from './useDeleteAppPermissionDefaultPermissionMutation'; export * from './useCreateAppAdminGrantMutation'; export * from './useUpdateAppAdminGrantMutation'; export * from './useDeleteAppAdminGrantMutation'; @@ -65,15 +77,15 @@ export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; -export * from './useCreateAppInviteMutation'; -export * from './useUpdateAppInviteMutation'; -export * from './useDeleteAppInviteMutation'; export * from './useCreateOrgMembershipMutation'; export * from './useUpdateOrgMembershipMutation'; export * from './useDeleteOrgMembershipMutation'; export * from './useCreateOrgMemberProfileMutation'; export * from './useUpdateOrgMemberProfileMutation'; export * from './useDeleteOrgMemberProfileMutation'; +export * from './useCreateAppInviteMutation'; +export * from './useUpdateAppInviteMutation'; +export * from './useDeleteAppInviteMutation'; export * from './useCreateOrgInviteMutation'; export * from './useUpdateOrgInviteMutation'; export * from './useDeleteOrgInviteMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..695d905384 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultGrantMutation.ts @@ -0,0 +1,97 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; +import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + CreateAppPermissionDefaultGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + CreateAppPermissionDefaultGrantInput, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionDefaultGrantMutation< + S extends AppPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultGrantSelect; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] +>; +export function useCreateAppPermissionDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultGrantMutationKeys.create(), + mutationFn: (data: CreateAppPermissionDefaultGrantInput['appPermissionDefaultGrant']) => + getClient() + .appPermissionDefaultGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..e954908380 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppPermissionDefaultPermissionMutation.ts @@ -0,0 +1,105 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; +import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + CreateAppPermissionDefaultPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + CreateAppPermissionDefaultPermissionInput, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppPermissionDefaultPermissionMutation< + S extends AppPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultPermissionSelect; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] +>; +export function useCreateAppPermissionDefaultPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultPermissionMutationKeys.create(), + mutationFn: ( + data: CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + ) => + getClient() + .appPermissionDefaultPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..03eb33d2c8 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultGrantMutation.ts @@ -0,0 +1,97 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; +import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + CreateOrgPermissionDefaultGrantInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + CreateOrgPermissionDefaultGrantInput, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionDefaultGrantMutation< + S extends OrgPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultGrantSelect; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] +>; +export function useCreateOrgPermissionDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultGrantMutationKeys.create(), + mutationFn: (data: CreateOrgPermissionDefaultGrantInput['orgPermissionDefaultGrant']) => + getClient() + .orgPermissionDefaultGrant.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..010f341f74 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgPermissionDefaultPermissionMutation.ts @@ -0,0 +1,105 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; +import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + CreateOrgPermissionDefaultPermissionInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + CreateOrgPermissionDefaultPermissionInput, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgPermissionDefaultPermissionMutation< + S extends OrgPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultPermissionSelect; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + createOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] +>; +export function useCreateOrgPermissionDefaultPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultPermissionMutationKeys.create(), + mutationFn: ( + data: CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + ) => + getClient() + .orgPermissionDefaultPermission.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..ad38391ff2 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultGrantMutation.ts @@ -0,0 +1,106 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; +import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionDefaultGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionDefaultGrantMutation< + S extends AppPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultGrantSelect; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionDefaultGrantMutation( + 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: appPermissionDefaultGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermissionDefaultGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..1efbf6a931 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteAppPermissionDefaultPermissionMutation.ts @@ -0,0 +1,112 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; +import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAppPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAppPermissionDefaultPermissionMutation< + S extends AppPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultPermissionSelect; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAppPermissionDefaultPermissionMutation( + 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: appPermissionDefaultPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .appPermissionDefaultPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: appPermissionDefaultPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..1b2e20d5bf --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultGrantMutation.ts @@ -0,0 +1,106 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; +import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionDefaultGrantMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionDefaultGrantMutation< + S extends OrgPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultGrantSelect; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionDefaultGrantMutation( + 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: orgPermissionDefaultGrantMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermissionDefaultGrant.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..5cca833805 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgPermissionDefaultPermissionMutation.ts @@ -0,0 +1,112 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; +import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgPermissionDefaultPermissionMutation< + S extends OrgPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultPermissionSelect; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgPermissionDefaultPermissionMutation( + 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: orgPermissionDefaultPermissionMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgPermissionDefaultPermission.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgPermissionDefaultPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..8977a55082 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultGrantMutation.ts @@ -0,0 +1,118 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; +import { appPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantPatch, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionDefaultGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionDefaultGrantMutation< + S extends AppPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultGrantSelect; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; + } +>; +export function useUpdateAppPermissionDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultGrantMutationKeys.all, + mutationFn: ({ + id, + appPermissionDefaultGrantPatch, + }: { + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; + }) => + getClient() + .appPermissionDefaultGrant.update({ + where: { + id, + }, + data: appPermissionDefaultGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..80340cd64c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateAppPermissionDefaultPermissionMutation.ts @@ -0,0 +1,124 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; +import { appPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionPatch, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAppPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', appPermissionDefaultPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAppPermissionDefaultPermissionMutation< + S extends AppPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & AppPermissionDefaultPermissionSelect; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; + } +>; +export function useUpdateAppPermissionDefaultPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appPermissionDefaultPermissionMutationKeys.all, + mutationFn: ({ + id, + appPermissionDefaultPermissionPatch, + }: { + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; + }) => + getClient() + .appPermissionDefaultPermission.update({ + where: { + id, + }, + data: appPermissionDefaultPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: appPermissionDefaultPermissionKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts new file mode 100644 index 0000000000..1f119f098b --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultGrantMutation.ts @@ -0,0 +1,118 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; +import { orgPermissionDefaultGrantMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantPatch, +} from '../../orm/input-types'; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionDefaultGrantMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionDefaultGrantPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionDefaultGrantMutation< + S extends OrgPermissionDefaultGrantSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultGrantSelect; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }, + Error, + { + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; + } +>; +export function useUpdateOrgPermissionDefaultGrantMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultGrantMutationKeys.all, + mutationFn: ({ + id, + orgPermissionDefaultGrantPatch, + }: { + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; + }) => + getClient() + .orgPermissionDefaultGrant.update({ + where: { + id, + }, + data: orgPermissionDefaultGrantPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultGrantKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts new file mode 100644 index 0000000000..b5cfa27980 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgPermissionDefaultPermissionMutation.ts @@ -0,0 +1,124 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; +import { orgPermissionDefaultPermissionMutationKeys } from '../mutation-keys'; +import type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionPatch, +} from '../../orm/input-types'; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgPermissionDefaultPermissionMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgPermissionDefaultPermissionPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgPermissionDefaultPermissionMutation< + S extends OrgPermissionDefaultPermissionSelect, +>( + params: { + selection: { + fields: S & OrgPermissionDefaultPermissionSelect; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }, + Error, + { + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; + } +>; +export function useUpdateOrgPermissionDefaultPermissionMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgPermissionDefaultPermissionMutationKeys.all, + mutationFn: ({ + id, + orgPermissionDefaultPermissionPatch, + }: { + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; + }) => + getClient() + .orgPermissionDefaultPermission.update({ + where: { + id, + }, + data: orgPermissionDefaultPermissionPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgPermissionDefaultPermissionKeys.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 7e41116211..cb15664a00 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -7,14 +7,22 @@ export * from './useOrgGetManagersQuery'; export * from './useOrgGetSubordinatesQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; +export * from './useAppPermissionDefaultGrantsQuery'; +export * from './useAppPermissionDefaultGrantQuery'; export * from './useOrgPermissionsQuery'; export * from './useOrgPermissionQuery'; +export * from './useOrgPermissionDefaultPermissionsQuery'; +export * from './useOrgPermissionDefaultPermissionQuery'; +export * from './useOrgPermissionDefaultGrantsQuery'; +export * from './useOrgPermissionDefaultGrantQuery'; export * from './useOrgMembersQuery'; export * from './useOrgMemberQuery'; export * from './useAppPermissionDefaultsQuery'; export * from './useAppPermissionDefaultQuery'; export * from './useOrgPermissionDefaultsQuery'; export * from './useOrgPermissionDefaultQuery'; +export * from './useAppPermissionDefaultPermissionsQuery'; +export * from './useAppPermissionDefaultPermissionQuery'; export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; @@ -45,12 +53,12 @@ export * from './useOrgMembershipSettingsQuery'; export * from './useOrgMembershipSettingQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; -export * from './useAppInvitesQuery'; -export * from './useAppInviteQuery'; export * from './useOrgMembershipsQuery'; export * from './useOrgMembershipQuery'; export * from './useOrgMemberProfilesQuery'; export * from './useOrgMemberProfileQuery'; +export * from './useAppInvitesQuery'; +export * from './useAppInviteQuery'; export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useAppPermissionsGetPaddedMaskQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts new file mode 100644 index 0000000000..1d596eba6e --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantQuery.ts @@ -0,0 +1,151 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; +import type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultGrantQueryKey = appPermissionDefaultGrantKeys.detail; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionDefaultGrantQuery< + S extends AppPermissionDefaultGrantSelect, + TData = { + appPermissionDefaultGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaultGrant: InferSelectResult< + AppPermissionDefaultGrantWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultGrantQuery< + S extends AppPermissionDefaultGrantSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; +}): Promise<{ + appPermissionDefaultGrant: InferSelectResult | null; +}>; +export async function fetchAppPermissionDefaultGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchAppPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionDefaultGrantQuery< + S extends AppPermissionDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultGrantSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultGrantKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts new file mode 100644 index 0000000000..eeae2ad10f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultGrantsQuery.ts @@ -0,0 +1,182 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { appPermissionDefaultGrantKeys } from '../query-keys'; +import type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultGrantsQueryKey = appPermissionDefaultGrantKeys.list; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionDefaultGrantsQuery< + S extends AppPermissionDefaultGrantSelect, + TData = { + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultGrantsQuery( + params: { + selection: ListSelectionConfig< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultGrantKeys.list(args), + queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultGrantsQuery< + S extends AppPermissionDefaultGrantSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultGrantSelect>; +}): Promise<{ + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchAppPermissionDefaultGrantsQuery(params: { + selection: ListSelectionConfig< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >(params.selection); + return getClient().appPermissionDefaultGrant.findMany(args).unwrap(); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchAppPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionDefaultGrantsQuery< + S extends AppPermissionDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultGrantSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultGrantKeys.list(args), + queryFn: () => getClient().appPermissionDefaultGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts new file mode 100644 index 0000000000..06aeafb892 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionQuery.ts @@ -0,0 +1,157 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; +import type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultPermissionQueryKey = appPermissionDefaultPermissionKeys.detail; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAppPermissionDefaultPermissionQuery< + S extends AppPermissionDefaultPermissionSelect, + TData = { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultPermissionQuery< + S extends AppPermissionDefaultPermissionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; +}): Promise<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; +}>; +export async function fetchAppPermissionDefaultPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .appPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchAppPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAppPermissionDefaultPermissionQuery< + S extends AppPermissionDefaultPermissionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .appPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts new file mode 100644 index 0000000000..c83281765a --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppPermissionDefaultPermissionsQuery.ts @@ -0,0 +1,194 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { appPermissionDefaultPermissionKeys } from '../query-keys'; +import type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appPermissionDefaultPermissionsQueryKey = appPermissionDefaultPermissionKeys.list; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useAppPermissionDefaultPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppPermissionDefaultPermissionsQuery< + S extends AppPermissionDefaultPermissionSelect, + TData = { + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } & Omit< + UseQueryOptions< + { + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppPermissionDefaultPermissionsQuery( + params: { + selection: ListSelectionConfig< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appPermissionDefaultPermissionKeys.list(args), + queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchAppPermissionDefaultPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppPermissionDefaultPermissionsQuery< + S extends AppPermissionDefaultPermissionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultPermissionSelect>; +}): Promise<{ + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchAppPermissionDefaultPermissionsQuery(params: { + selection: ListSelectionConfig< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >; +}) { + const args = buildListSelectionArgs< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >(params.selection); + return getClient().appPermissionDefaultPermission.findMany(args).unwrap(); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchAppPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppPermissionDefaultPermissionsQuery< + S extends AppPermissionDefaultPermissionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, AppPermissionDefaultPermissionSelect>; + } +): Promise; +export async function prefetchAppPermissionDefaultPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appPermissionDefaultPermissionKeys.list(args), + queryFn: () => getClient().appPermissionDefaultPermission.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts new file mode 100644 index 0000000000..a2cec4a441 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantQuery.ts @@ -0,0 +1,151 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; +import type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultGrantQueryKey = orgPermissionDefaultGrantKeys.detail; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionDefaultGrantQuery< + S extends OrgPermissionDefaultGrantSelect, + TData = { + orgPermissionDefaultGrant: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaultGrant: InferSelectResult< + OrgPermissionDefaultGrantWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultGrantQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultGrantQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultGrantQuery< + S extends OrgPermissionDefaultGrantSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; +}): Promise<{ + orgPermissionDefaultGrant: InferSelectResult | null; +}>; +export async function fetchOrgPermissionDefaultGrantQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultGrantQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultGrantQuery< + S extends OrgPermissionDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultGrantQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultGrantKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefaultGrant.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts new file mode 100644 index 0000000000..606103b3e7 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultGrantsQuery.ts @@ -0,0 +1,182 @@ +/** + * Audit log of permission additions and removals from the defaults bitmask + * @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 { orgPermissionDefaultGrantKeys } from '../query-keys'; +import type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultGrantsQueryKey = orgPermissionDefaultGrantKeys.list; +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultGrantsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionDefaultGrantsQuery< + S extends OrgPermissionDefaultGrantSelect, + TData = { + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultGrantsQuery( + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultGrantKeys.list(args), + queryFn: () => getClient().orgPermissionDefaultGrant.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultGrantsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultGrantsQuery< + S extends OrgPermissionDefaultGrantSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultGrantSelect>; +}): Promise<{ + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchOrgPermissionDefaultGrantsQuery(params: { + selection: ListSelectionConfig< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >(params.selection); + return getClient().orgPermissionDefaultGrant.findMany(args).unwrap(); +} +/** + * Audit log of permission additions and removals from the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultGrantsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultGrantsQuery< + S extends OrgPermissionDefaultGrantSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultGrantSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultGrantsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultGrantKeys.list(args), + queryFn: () => getClient().orgPermissionDefaultGrant.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts new file mode 100644 index 0000000000..a8d75d8141 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionQuery.ts @@ -0,0 +1,157 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; +import type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultPermissionQueryKey = orgPermissionDefaultPermissionKeys.detail; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgPermissionDefaultPermissionQuery< + S extends OrgPermissionDefaultPermissionSelect, + TData = { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultPermissionQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultPermissionQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultPermissionQuery< + S extends OrgPermissionDefaultPermissionSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; +}): Promise<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; +}>; +export async function fetchOrgPermissionDefaultPermissionQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultPermissionQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultPermissionQuery< + S extends OrgPermissionDefaultPermissionSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultPermissionQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultPermissionKeys.detail(params.id), + queryFn: () => + getClient() + .orgPermissionDefaultPermission.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts new file mode 100644 index 0000000000..331c112c08 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgPermissionDefaultPermissionsQuery.ts @@ -0,0 +1,194 @@ +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * @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 { orgPermissionDefaultPermissionKeys } from '../query-keys'; +import type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgPermissionDefaultPermissionsQueryKey = orgPermissionDefaultPermissionKeys.list; +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```tsx + * const { data, isLoading } = useOrgPermissionDefaultPermissionsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgPermissionDefaultPermissionsQuery< + S extends OrgPermissionDefaultPermissionSelect, + TData = { + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } & Omit< + UseQueryOptions< + { + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgPermissionDefaultPermissionsQuery( + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgPermissionDefaultPermissionKeys.list(args), + queryFn: () => getClient().orgPermissionDefaultPermission.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * const data = await fetchOrgPermissionDefaultPermissionsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgPermissionDefaultPermissionsQuery< + S extends OrgPermissionDefaultPermissionSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultPermissionSelect>; +}): Promise<{ + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchOrgPermissionDefaultPermissionsQuery(params: { + selection: ListSelectionConfig< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >(params.selection); + return getClient().orgPermissionDefaultPermission.findMany(args).unwrap(); +} +/** + * Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask + * + * @example + * ```ts + * await prefetchOrgPermissionDefaultPermissionsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgPermissionDefaultPermissionsQuery< + S extends OrgPermissionDefaultPermissionSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >, + 'fields' + > & + HookStrictSelect, OrgPermissionDefaultPermissionSelect>; + } +): Promise; +export async function prefetchOrgPermissionDefaultPermissionsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgPermissionDefaultPermissionKeys.list(args), + queryFn: () => getClient().orgPermissionDefaultPermission.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 b0fb1bcb21..68bbce33c3 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -46,6 +46,15 @@ export const appPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appPermissionKeys.details(), id] as const, } as const; +export const appPermissionDefaultGrantKeys = { + /** All appPermissionDefaultGrant queries */ all: ['apppermissiondefaultgrant'] as const, + /** List query keys */ lists: () => [...appPermissionDefaultGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionDefaultGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionDefaultGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionDefaultGrantKeys.details(), id] as const, +} as const; export const orgPermissionKeys = { /** All orgPermission queries */ all: ['orgpermission'] as const, /** List query keys */ lists: () => [...orgPermissionKeys.all, 'list'] as const, @@ -55,6 +64,27 @@ export const orgPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionKeys.details(), id] as const, } as const; +export const orgPermissionDefaultPermissionKeys = { + /** All orgPermissionDefaultPermission queries */ all: [ + 'orgpermissiondefaultpermission', + ] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultPermissionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...orgPermissionDefaultPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultPermissionKeys.details(), id] as const, +} as const; +export const orgPermissionDefaultGrantKeys = { + /** All orgPermissionDefaultGrant queries */ all: ['orgpermissiondefaultgrant'] as const, + /** List query keys */ lists: () => [...orgPermissionDefaultGrantKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgPermissionDefaultGrantKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgPermissionDefaultGrantKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgPermissionDefaultGrantKeys.details(), id] as const, +} as const; export const orgMemberKeys = { /** All orgMember queries */ all: ['orgmember'] as const, /** List query keys */ lists: () => [...orgMemberKeys.all, 'list'] as const, @@ -82,6 +112,18 @@ export const orgPermissionDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionDefaultKeys.details(), id] as const, } as const; +export const appPermissionDefaultPermissionKeys = { + /** All appPermissionDefaultPermission queries */ all: [ + 'apppermissiondefaultpermission', + ] as const, + /** List query keys */ lists: () => [...appPermissionDefaultPermissionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appPermissionDefaultPermissionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => + [...appPermissionDefaultPermissionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appPermissionDefaultPermissionKeys.details(), id] as const, +} as const; export const appAdminGrantKeys = { /** All appAdminGrant queries */ all: ['appadmingrant'] as const, /** List query keys */ lists: () => [...appAdminGrantKeys.all, 'list'] as const, @@ -217,15 +259,6 @@ export const appMembershipKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appMembershipKeys.details(), id] as const, } as const; -export const appInviteKeys = { - /** All appInvite queries */ all: ['appinvite'] as const, - /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appInviteKeys.details(), id] as const, -} as const; export const orgMembershipKeys = { /** All orgMembership queries */ all: ['orgmembership'] as const, /** List query keys */ lists: () => [...orgMembershipKeys.all, 'list'] as const, @@ -244,6 +277,15 @@ export const orgMemberProfileKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMemberProfileKeys.details(), id] as const, } as const; +export const appInviteKeys = { + /** All appInvite queries */ all: ['appinvite'] as const, + /** List query keys */ lists: () => [...appInviteKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appInviteKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appInviteKeys.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, @@ -308,10 +350,14 @@ export const queryKeys = { orgGetManagersRecord: orgGetManagersRecordKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, appPermission: appPermissionKeys, + appPermissionDefaultGrant: appPermissionDefaultGrantKeys, orgPermission: orgPermissionKeys, + orgPermissionDefaultPermission: orgPermissionDefaultPermissionKeys, + orgPermissionDefaultGrant: orgPermissionDefaultGrantKeys, orgMember: orgMemberKeys, appPermissionDefault: appPermissionDefaultKeys, orgPermissionDefault: orgPermissionDefaultKeys, + appPermissionDefaultPermission: appPermissionDefaultPermissionKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, orgAdminGrant: orgAdminGrantKeys, @@ -327,9 +373,9 @@ export const queryKeys = { orgChartEdge: orgChartEdgeKeys, orgMembershipSetting: orgMembershipSettingKeys, appMembership: appMembershipKeys, - appInvite: appInviteKeys, orgMembership: orgMembershipKeys, orgMemberProfile: orgMemberProfileKeys, + appInvite: appInviteKeys, orgInvite: orgInviteKeys, custom: customQueryKeys, } as const; diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index 027e84fff8..12c2f3924a 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -24,10 +24,14 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | +| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | @@ -43,9 +47,9 @@ const db = createClient({ | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -143,6 +147,40 @@ const updated = await db.appPermission.update({ where: { id: '' }, data: { const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultGrant` + +CRUD operations for AppPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultGrant records +const items = await db.appPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgPermission` CRUD operations for OrgPermission records. @@ -176,6 +214,74 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.orgPermissionDefaultPermission` + +CRUD operations for OrgPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultPermission records +const items = await db.orgPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultPermission.create({ data: { permissionId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefaultGrant` + +CRUD operations for OrgPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultGrant records +const items = await db.orgPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMember` CRUD operations for OrgMember records. @@ -269,6 +375,38 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultPermission` + +CRUD operations for AppPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultPermission records +const items = await db.appPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + ### `db.appAdminGrant` CRUD operations for AppAdminGrant records. @@ -810,47 +948,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, 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, 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: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgMembership` CRUD operations for OrgMembership records. @@ -936,6 +1033,49 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` +### `db.appInvite` + +CRUD operations for AppInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `channel` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, channel: true, email: true, phone: 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, channel: true, email: true, phone: 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: { channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -945,7 +1085,9 @@ CRUD operations for OrgInvite records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `channel` | String | Yes | | `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | | `senderId` | UUID | Yes | | `receiverId` | UUID | Yes | | `inviteToken` | String | Yes | @@ -965,16 +1107,16 @@ 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index 4fdc6e95eb..8edef10eaf 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -8,10 +8,14 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; +import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; import { OrgPermissionModel } from './models/orgPermission'; +import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; +import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; @@ -27,9 +31,9 @@ import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -69,10 +73,14 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), + appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), orgPermission: new OrgPermissionModel(client), + orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(client), + orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), orgAdminGrant: new OrgAdminGrantModel(client), @@ -88,9 +96,9 @@ export function createClient(config: OrmClientConfig) { orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), - appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index c06ff000a6..21cb74af02 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -254,6 +254,17 @@ export interface AppPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface AppPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; @@ -266,6 +277,29 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface OrgPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + /** Scopes this default permission to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface OrgPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -290,12 +324,20 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface AppPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -306,7 +348,7 @@ export interface AppOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -317,7 +359,7 @@ export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this admin grant applies to */ entityId?: string | null; @@ -330,7 +372,7 @@ export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; @@ -392,7 +434,7 @@ export interface AppGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -442,7 +484,7 @@ export interface OrgGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this permission grant applies to */ entityId?: string | null; @@ -521,32 +563,6 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - 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; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -603,10 +619,44 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + 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; +} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; - /** Email address of the invited recipient */ + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; /** User ID of the member who sent this invitation */ senderId?: string | null; /** User ID of the intended recipient, if targeting a specific user */ @@ -648,11 +698,29 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} +export interface AppPermissionRelations { + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; + appPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface AppPermissionDefaultGrantRelations { + permission?: AppPermission | null; +} +export interface OrgPermissionRelations { + orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; + orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface OrgPermissionDefaultPermissionRelations { + permission?: OrgPermission | null; +} +export interface OrgPermissionDefaultGrantRelations { + permission?: OrgPermission | null; +} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} +export interface AppPermissionDefaultPermissionRelations { + permission?: AppPermission | null; +} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} export interface OrgAdminGrantRelations {} @@ -668,13 +736,13 @@ export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} export interface AppMembershipRelations {} -export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } +export interface AppInviteRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -682,12 +750,20 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; +export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & + AppPermissionDefaultGrantRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & + OrgPermissionDefaultPermissionRelations; +export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & + OrgPermissionDefaultGrantRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & + AppPermissionDefaultPermissionRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; @@ -706,9 +782,9 @@ export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -725,6 +801,26 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + appPermissionDefaultPermissionByPermissionId?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultGrantsByPermissionId?: { + select: AppPermissionDefaultGrantSelect; + first?: number; + filter?: AppPermissionDefaultGrantFilter; + orderBy?: AppPermissionDefaultGrantOrderBy[]; + }; +}; +export type AppPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; }; export type OrgPermissionSelect = { id?: boolean; @@ -732,6 +828,40 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + orgPermissionDefaultPermissionsByPermissionId?: { + select: OrgPermissionDefaultPermissionSelect; + first?: number; + filter?: OrgPermissionDefaultPermissionFilter; + orderBy?: OrgPermissionDefaultPermissionOrderBy[]; + }; + orgPermissionDefaultGrantsByPermissionId?: { + select: OrgPermissionDefaultGrantSelect; + first?: number; + filter?: OrgPermissionDefaultGrantFilter; + orderBy?: OrgPermissionDefaultGrantOrderBy[]; + }; +}; +export type OrgPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; +}; +export type OrgPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; }; export type OrgMemberSelect = { id?: boolean; @@ -748,6 +878,15 @@ export type OrgPermissionDefaultSelect = { permissions?: boolean; entityId?: boolean; }; +export type AppPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; +}; export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -899,21 +1038,6 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -953,9 +1077,28 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; +export type AppInviteSelect = { + id?: boolean; + channel?: boolean; + email?: boolean; + phone?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgInviteSelect = { id?: boolean; + channel?: boolean; email?: boolean; + phone?: boolean; senderId?: boolean; receiverId?: boolean; inviteToken?: boolean; @@ -1003,6 +1146,36 @@ export interface AppPermissionFilter { or?: AppPermissionFilter[]; /** Negates the expression. */ not?: AppPermissionFilter; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } export interface OrgPermissionFilter { /** Filter by the object’s `id` field. */ @@ -1021,6 +1194,58 @@ export interface OrgPermissionFilter { or?: OrgPermissionFilter[]; /** Negates the expression. */ not?: OrgPermissionFilter; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; } export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -1064,6 +1289,24 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1422,38 +1665,6 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - 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. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1534,15 +1745,17 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgInviteFilter { +export interface AppInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -1555,37 +1768,75 @@ export interface OrgInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** 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; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppInviteFilter; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + 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 `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; @@ -1603,6 +1854,22 @@ export type AppPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type AppPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1617,6 +1884,38 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type OrgPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1647,6 +1946,18 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1949,36 +2260,6 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; -export type 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'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2045,14 +2326,52 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_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'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -2146,6 +2465,28 @@ export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultGrantInput { + clientMutationId?: string; + appPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + }; +} +export interface AppPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; +} +export interface UpdateAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; +} +export interface DeleteAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgPermissionInput { clientMutationId?: string; orgPermission: { @@ -2170,6 +2511,50 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + orgPermissionDefaultPermission: { + permissionId: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPermissionPatch { + permissionId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; +} +export interface DeleteOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + orgPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; +} +export interface DeleteOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -2230,11 +2615,29 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + appPermissionDefaultPermission: { + permissionId: string; + }; +} +export interface AppPermissionDefaultPermissionPatch { + permissionId?: string | null; +} +export interface UpdateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; +} +export interface DeleteAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2256,7 +2659,7 @@ export interface CreateAppOwnerGrantInput { clientMutationId?: string; appOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2278,7 +2681,7 @@ export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2302,7 +2705,7 @@ export interface CreateOrgOwnerGrantInput { clientMutationId?: string; orgOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2405,7 +2808,7 @@ export interface CreateAppGrantInput { appGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2501,7 +2904,7 @@ export interface CreateOrgGrantInput { orgGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2628,42 +3031,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { @@ -2743,10 +3110,52 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + channel?: string; + email?: ConstructiveInternalTypeEmail; + phone?: string; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; + }; +} +export interface AppInvitePatch { + channel?: string | null; + email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + expiresAt?: string | null; +} +export interface UpdateAppInviteInput { + clientMutationId?: string; + id: string; + appInvitePatch: AppInvitePatch; +} +export interface DeleteAppInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { + channel?: string; email?: ConstructiveInternalTypeEmail; + phone?: string; senderId?: string; receiverId?: string; inviteToken?: string; @@ -2762,7 +3171,9 @@ export interface CreateOrgInviteInput { }; } export interface OrgInvitePatch { + channel?: string | null; email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; senderId?: string | null; receiverId?: string | null; inviteToken?: string | null; @@ -2786,7 +3197,15 @@ export interface DeleteOrgInviteInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + AppPermission: { + appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', + }, + OrgPermission: { + orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', + orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { clientMutationId?: string; @@ -2805,6 +3224,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionToManyAppPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: AppPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: AppPermissionDefaultGrantFilter; +} +/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultPermissionFilter; +} +/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultGrantFilter; +} +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -2882,40 +3363,790 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { +/** 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; +} +/** An input for mutations affecting `AppPermissionDefaultGrant` */ +export interface AppPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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 `OrgPermissionDefaultPermission` */ +export interface OrgPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + /** Scopes this default permission to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgPermissionDefaultGrant` */ +export interface OrgPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgMember` */ +export interface OrgMemberInput { + id?: string; + /** Whether this member has admin privileges */ + isAdmin?: boolean; + /** References the user who is a member */ + actorId: string; + /** References the entity (org or group) this member belongs to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefaultPermission` */ +export interface AppPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; + /** 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?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} +/** An input for mutations affecting `AppClaimedInvite` */ +export interface AppClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; +} +/** 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; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope: 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 `AppGrant` */ +export interface AppGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** 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; +} +/** An input for mutations affecting `OrgClaimedInvite` */ +export interface OrgClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; + entityId: string; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} +/** 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; +} +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { + 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; + /** 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 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; + profileId?: string; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { + 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; +} +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** 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; +} +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** 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; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** 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). */ + 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; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Not included in the specified list. */ + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; +} +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** 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; +} +/** 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; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** 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; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface 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.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; +} +/** 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). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; + equalTo?: string; /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; + notEqualTo?: string; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; + distinctFrom?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: string; /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; + in?: string[]; /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; + notIn?: string[]; /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: string; /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: string; +} +/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ @@ -3039,6 +4270,51 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +export interface CreateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was created by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type CreateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type UpdateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type DeleteAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgPermissionPayload { clientMutationId?: string | null; /** The `OrgPermission` that was created by this mutation. */ @@ -3084,6 +4360,96 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type CreateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type CreateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type UpdateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type DeleteOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ @@ -3219,6 +4585,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was created by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type CreateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type UpdateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type DeleteAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -3894,51 +5305,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; export interface CreateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ @@ -4029,6 +5395,51 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type CreateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type UpdateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type DeleteAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -4115,6 +5526,42 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `AppPermissionDefaultGrant` edge in the connection. */ +export interface AppPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `AppPermissionDefaultGrant` at the end of the edge. */ + node?: AppPermissionDefaultGrant | null; +} +export type AppPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultGrantSelect; + }; +}; +/** A `OrgPermissionDefaultPermission` edge in the connection. */ +export interface OrgPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultPermission` at the end of the edge. */ + node?: OrgPermissionDefaultPermission | null; +} +export type OrgPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultPermissionSelect; + }; +}; +/** A `OrgPermissionDefaultGrant` edge in the connection. */ +export interface OrgPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultGrant` at the end of the edge. */ + node?: OrgPermissionDefaultGrant | null; +} +export type OrgPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultGrantSelect; + }; +}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -4151,6 +5598,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `AppPermissionDefaultPermission` edge in the connection. */ +export interface AppPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `AppPermissionDefaultPermission` at the end of the edge. */ + node?: AppPermissionDefaultPermission | null; +} +export type AppPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultPermissionSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -4331,18 +5790,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { cursor?: string | null; @@ -4367,6 +5814,18 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts new file mode 100644 index 0000000000..6915611884 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * AppPermissionDefaultGrant 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 { + AppPermissionDefaultGrant, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, + CreateAppPermissionDefaultGrantInput, + UpdateAppPermissionDefaultGrantInput, + AppPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + 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, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultGrant', + 'createAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.data, + 'CreateAppPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'createAppPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultGrant', + 'updateAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultGrantInput', + 'id', + 'appPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'updateAppPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultGrant', + 'deleteAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'deleteAppPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts new file mode 100644 index 0000000000..eeee28fadd --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * AppPermissionDefaultPermission 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 { + AppPermissionDefaultPermission, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, + CreateAppPermissionDefaultPermissionInput, + UpdateAppPermissionDefaultPermissionInput, + AppPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + 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, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultPermission', + 'createAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.data, + 'CreateAppPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'createAppPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultPermission', + 'updateAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultPermissionInput', + 'id', + 'appPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'updateAppPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultPermission', + 'deleteAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'deleteAppPermissionDefaultPermission', + 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 3580afbcaf..7900e01085 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -6,10 +6,14 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; +export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; export { OrgPermissionModel } from './orgPermission'; +export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; +export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; export { OrgAdminGrantModel } from './orgAdminGrant'; @@ -25,7 +29,7 @@ export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts new file mode 100644 index 0000000000..2f1a709be3 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * OrgPermissionDefaultGrant 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 { + OrgPermissionDefaultGrant, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, + CreateOrgPermissionDefaultGrantInput, + UpdateOrgPermissionDefaultGrantInput, + OrgPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + 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, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultGrant', + 'createOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.data, + 'CreateOrgPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'createOrgPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultGrant', + 'updateOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultGrantInput', + 'id', + 'orgPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'updateOrgPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultGrant', + 'deleteOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'deleteOrgPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts new file mode 100644 index 0000000000..7c898408dc --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * OrgPermissionDefaultPermission 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 { + OrgPermissionDefaultPermission, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, + CreateOrgPermissionDefaultPermissionInput, + UpdateOrgPermissionDefaultPermissionInput, + OrgPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + 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, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultPermission', + 'createOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.data, + 'CreateOrgPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'createOrgPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultPermission', + 'updateOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultPermissionInput', + 'id', + 'orgPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'updateOrgPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultPermission', + 'deleteOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'deleteOrgPermissionDefaultPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 14b8f6b92e..829552fbdc 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -14,6 +14,8 @@ import type { AppOwnerGrant, AppPermission, AppPermissionDefault, + AppPermissionDefaultGrant, + AppPermissionDefaultPermission, MembershipType, OrgAdminGrant, OrgChartEdge, @@ -31,6 +33,8 @@ import type { OrgOwnerGrant, OrgPermission, OrgPermissionDefault, + OrgPermissionDefaultGrant, + OrgPermissionDefaultPermission, BigFloatFilter, BigIntFilter, BitStringFilter, @@ -51,6 +55,57 @@ import type { } from './types'; export type ConstructiveInternalTypeEmail = unknown; export type ConstructiveInternalTypeImage = unknown; +/** Methods to use when ordering `AppPermissionDefaultGrant`. */ +export type AppPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgPermissionDefaultPermission`. */ +export type OrgPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgPermissionDefaultGrant`. */ +export type OrgPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgMember`. */ export type OrgMemberOrderBy = | 'NATURAL' @@ -84,6 +139,19 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppPermissionDefaultPermission`. */ +export type AppPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppAdminGrant`. */ export type AppAdminGrantOrderBy = | 'NATURAL' @@ -431,37 +499,6 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; -/** Methods to use when ordering `AppInvite`. */ -export type 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'; /** Methods to use when ordering `OrgMembership`. */ export type OrgMembershipOrderBy = | 'NATURAL' @@ -530,6 +567,41 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; +/** Methods to use when ordering `AppInvite`. */ +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_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'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -537,8 +609,12 @@ export type OrgInviteOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -567,6 +643,175 @@ export type OrgInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} +/** 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; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} +/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionToManyAppPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: AppPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: AppPermissionDefaultGrantFilter; +} +/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** 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; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultPermissionFilter; +} +/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultGrantFilter; +} +/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} /** A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -700,44 +945,6 @@ 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 { - /** 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 `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1023,118 +1230,8 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - 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. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} -/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeEmailFilter { - /** 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?: ConstructiveInternalTypeEmail; - /** Does not contain the specified string (case-insensitive). */ - notIncludesInsensitive?: ConstructiveInternalTypeEmail; - /** 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?: ConstructiveInternalTypeEmail; - /** Does not start with the specified string (case-insensitive). */ - notStartsWithInsensitive?: ConstructiveInternalTypeEmail; - /** 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?: ConstructiveInternalTypeEmail; - /** Does not end with the specified string (case-insensitive). */ - notEndsWithInsensitive?: ConstructiveInternalTypeEmail; - /** 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?: 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; -} -/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipFilter { +/** A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ @@ -1250,12 +1347,130 @@ export interface ConstructiveInternalTypeImageFilter { /** Contained by the specified JSON. */ containedBy?: ConstructiveInternalTypeImage; } +/** A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ */ +export interface AppInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + 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. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: AppInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: AppInviteFilter[]; + /** Negates the expression. */ + not?: AppInviteFilter; +} +/** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ +export interface ConstructiveInternalTypeEmailFilter { + /** 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?: ConstructiveInternalTypeEmail; + /** Does not contain the specified string (case-insensitive). */ + notIncludesInsensitive?: ConstructiveInternalTypeEmail; + /** 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?: ConstructiveInternalTypeEmail; + /** Does not start with the specified string (case-insensitive). */ + notStartsWithInsensitive?: ConstructiveInternalTypeEmail; + /** 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?: ConstructiveInternalTypeEmail; + /** Does not end with the specified string (case-insensitive). */ + notEndsWithInsensitive?: ConstructiveInternalTypeEmail; + /** 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?: 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; +} /** 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. */ id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; /** Filter by the object’s `receiverId` field. */ @@ -1336,6 +1551,34 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } +export interface CreateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + /** The `AppPermissionDefaultPermission` to be created by this mutation. */ + appPermissionDefaultPermission: AppPermissionDefaultPermissionInput; +} +/** An input for mutations affecting `AppPermissionDefaultPermission` */ +export interface AppPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + /** The `OrgPermissionDefaultPermission` to be created by this mutation. */ + orgPermissionDefaultPermission: OrgPermissionDefaultPermissionInput; +} +/** An input for mutations affecting `OrgPermissionDefaultPermission` */ +export interface OrgPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + /** Scopes this default permission to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; /** The `AppAdminGrant` to be created by this mutation. */ @@ -1346,8 +1589,8 @@ export interface AppAdminGrantInput { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -1362,8 +1605,24 @@ export interface AppOwnerGrantInput { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppPermissionDefaultGrantInput { + clientMutationId?: string; + /** The `AppPermissionDefaultGrant` to be created by this mutation. */ + appPermissionDefaultGrant: AppPermissionDefaultGrantInput; +} +/** An input for mutations affecting `AppPermissionDefaultGrant` */ +export interface AppPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -1378,8 +1637,8 @@ export interface OrgAdminGrantInput { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; - /** The member receiving or losing the admin grant */ - actorId: string; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; /** The entity (org or group) this admin grant applies to */ entityId: string; grantorId?: string; @@ -1396,14 +1655,32 @@ export interface OrgOwnerGrantInput { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; - /** The member receiving or losing the ownership grant */ - actorId: string; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; /** The entity (org or group) this ownership grant applies to */ entityId: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface CreateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + /** The `OrgPermissionDefaultGrant` to be created by this mutation. */ + orgPermissionDefaultGrant: OrgPermissionDefaultGrantInput; +} +/** An input for mutations affecting `OrgPermissionDefaultGrant` */ +export interface OrgPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppPermissionInput { clientMutationId?: string; /** The `AppPermission` to be created by this mutation. */ @@ -1512,8 +1789,8 @@ export interface AppGrantInput { permissions?: string; /** True to grant the permissions, false to revoke them */ isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; + /** The member receiving or losing the permission grant; NULL if user was deleted */ + actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; @@ -1582,8 +1859,8 @@ export interface OrgGrantInput { permissions?: string; /** True to grant the permissions, false to revoke them */ isGrant?: boolean; - /** The member receiving or losing the permission grant */ - actorId: string; + /** The member receiving or losing the permission grant; NULL if user was deleted */ + actorId?: string; /** The entity (org or group) this permission grant applies to */ entityId: string; grantorId?: string; @@ -1672,40 +1949,9 @@ export interface AppMembershipInput { permissions?: string; /** Bitmask of permissions directly granted to this member (not from profiles) */ granted?: string; - /** References the user who holds this membership */ - actorId: string; - profileId?: string; -} -export interface CreateAppInviteInput { - clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; -} -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { - id?: string; - /** 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. */ + /** References the user who holds this membership */ + actorId: string; profileId?: string; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; } export interface CreateOrgMembershipInput { clientMutationId?: string; @@ -1772,6 +2018,41 @@ export interface OrgMemberProfileInput { /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage; } +export interface CreateAppInviteInput { + clientMutationId?: string; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; +} +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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 CreateOrgInviteInput { clientMutationId?: string; /** The `OrgInvite` to be created by this mutation. */ @@ -1780,8 +2061,12 @@ export interface CreateOrgInviteInput { /** An input for mutations affecting `OrgInvite` */ export interface OrgInviteInput { id?: string; - /** Email address of the invited recipient */ + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; /** User ID of the member who sent this invitation */ senderId?: string; /** User ID of the intended recipient, if targeting a specific user */ @@ -1850,6 +2135,36 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } +export interface UpdateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefaultPermission` being updated. */ + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; +} +/** Represents an update to a `AppPermissionDefaultPermission`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPermissionPatch { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermissionDefaultPermission` being updated. */ + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; +} +/** Represents an update to a `OrgPermissionDefaultPermission`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPermissionPatch { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId?: string; + /** Scopes this default permission to a specific entity */ + entityId?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; @@ -1861,7 +2176,7 @@ export interface AppAdminGrantPatch { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string; grantorId?: string; createdAt?: string; @@ -1878,12 +2193,29 @@ export interface AppOwnerGrantPatch { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string; grantorId?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermissionDefaultGrant` being updated. */ + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; +} +/** Represents an update to a `AppPermissionDefaultGrant`. Fields that are set will be updated. */ +export interface AppPermissionDefaultGrantPatch { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -1895,7 +2227,7 @@ export interface OrgAdminGrantPatch { id?: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string; /** The entity (org or group) this admin grant applies to */ entityId?: string; @@ -1914,7 +2246,7 @@ export interface OrgOwnerGrantPatch { id?: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string; /** The entity (org or group) this ownership grant applies to */ entityId?: string; @@ -1922,6 +2254,25 @@ export interface OrgOwnerGrantPatch { createdAt?: string; updatedAt?: string; } +export interface UpdateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermissionDefaultGrant` being updated. */ + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; +} +/** Represents an update to a `OrgPermissionDefaultGrant`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultGrantPatch { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + /** Scopes this audit entry to a specific entity */ + entityId?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateAppPermissionInput { clientMutationId?: string; id: string; @@ -2037,7 +2388,7 @@ export interface AppGrantPatch { permissions?: string; /** True to grant the permissions, false to revoke them */ isGrant?: boolean; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string; grantorId?: string; createdAt?: string; @@ -2111,7 +2462,7 @@ export interface OrgGrantPatch { permissions?: string; /** True to grant the permissions, false to revoke them */ isGrant?: boolean; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string; /** The entity (org or group) this permission grant applies to */ entityId?: string; @@ -2208,38 +2559,6 @@ export interface AppMembershipPatch { actorId?: string; profileId?: string; } -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - /** 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. */ -export interface AppInvitePatch { - id?: string; - /** 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 UpdateOrgMembershipInput { clientMutationId?: string; id: string; @@ -2309,6 +2628,42 @@ export interface OrgMemberProfilePatch { /** Upload for Profile picture visible to other entity members */ profilePictureUpload?: File; } +export interface UpdateAppInviteInput { + clientMutationId?: string; + id: string; + /** 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. */ +export interface AppInvitePatch { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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 UpdateOrgInviteInput { clientMutationId?: string; id: string; @@ -2318,8 +2673,12 @@ export interface UpdateOrgInviteInput { /** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ export interface OrgInvitePatch { id?: string; - /** Email address of the invited recipient */ + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; /** User ID of the member who sent this invitation */ senderId?: string; /** User ID of the intended recipient, if targeting a specific user */ @@ -2358,6 +2717,14 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface DeleteAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; @@ -2366,6 +2733,10 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } +export interface DeleteAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; @@ -2374,6 +2745,10 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } +export interface DeleteOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; @@ -2427,15 +2802,15 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteAppInviteInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMemberProfileInput { +export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } @@ -2501,6 +2876,20 @@ export interface OrgPermissionDefaultConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppPermissionDefaultPermission` values. */ +export interface AppPermissionDefaultPermissionConnection { + nodes: AppPermissionDefaultPermission[]; + edges: AppPermissionDefaultPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgPermissionDefaultPermission` values. */ +export interface OrgPermissionDefaultPermissionConnection { + nodes: OrgPermissionDefaultPermission[]; + edges: OrgPermissionDefaultPermissionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppAdminGrant` values. */ export interface AppAdminGrantConnection { nodes: AppAdminGrant[]; @@ -2515,6 +2904,13 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppPermissionDefaultGrant` values. */ +export interface AppPermissionDefaultGrantConnection { + nodes: AppPermissionDefaultGrant[]; + edges: AppPermissionDefaultGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgAdminGrant` values. */ export interface OrgAdminGrantConnection { nodes: OrgAdminGrant[]; @@ -2529,6 +2925,13 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgPermissionDefaultGrant` values. */ +export interface OrgPermissionDefaultGrantConnection { + nodes: OrgPermissionDefaultGrant[]; + edges: OrgPermissionDefaultGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgChartEdgeGrant` values. */ export interface OrgChartEdgeGrantConnection { nodes: OrgChartEdgeGrant[]; @@ -2606,13 +3009,6 @@ export interface AppMembershipConnection { 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 `OrgMembership` values. */ export interface OrgMembershipConnection { nodes: OrgMembership[]; @@ -2627,6 +3023,13 @@ export interface OrgMemberProfileConnection { 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 `OrgInvite` values. */ export interface OrgInviteConnection { nodes: OrgInvite[]; @@ -2664,6 +3067,18 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface CreateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was created by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export interface CreateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -2676,6 +3091,12 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } +export interface CreateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was created by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was created by this mutation. */ @@ -2688,6 +3109,12 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface CreateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -2766,12 +3193,6 @@ export interface CreateAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface CreateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ @@ -2784,6 +3205,12 @@ export interface CreateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -2808,6 +3235,18 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface UpdateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export interface UpdateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was updated by this mutation. */ @@ -2820,6 +3259,12 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } +export interface UpdateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was updated by this mutation. */ @@ -2832,6 +3277,12 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface UpdateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} export interface UpdateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was updated by this mutation. */ @@ -2910,12 +3361,6 @@ export interface UpdateAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface UpdateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was updated by this mutation. */ @@ -2928,6 +3373,12 @@ export interface UpdateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface UpdateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ @@ -2952,6 +3403,18 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface DeleteAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export interface DeleteOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was deleted by this mutation. */ @@ -2964,6 +3427,12 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } +export interface DeleteAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; /** The `OrgAdminGrant` that was deleted by this mutation. */ @@ -2976,6 +3445,12 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface DeleteOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} export interface DeleteAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was deleted by this mutation. */ @@ -3054,12 +3529,6 @@ export interface DeleteAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface DeleteOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was deleted by this mutation. */ @@ -3072,6 +3541,12 @@ export interface DeleteOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} export interface DeleteOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ @@ -3145,6 +3620,18 @@ export interface OrgPermissionDefaultEdge { /** The `OrgPermissionDefault` at the end of the edge. */ node?: OrgPermissionDefault | null; } +/** A `AppPermissionDefaultPermission` edge in the connection. */ +export interface AppPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `AppPermissionDefaultPermission` at the end of the edge. */ + node?: AppPermissionDefaultPermission | null; +} +/** A `OrgPermissionDefaultPermission` edge in the connection. */ +export interface OrgPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultPermission` at the end of the edge. */ + node?: OrgPermissionDefaultPermission | null; +} /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -3157,6 +3644,12 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } +/** A `AppPermissionDefaultGrant` edge in the connection. */ +export interface AppPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `AppPermissionDefaultGrant` at the end of the edge. */ + node?: AppPermissionDefaultGrant | null; +} /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { cursor?: string | null; @@ -3169,6 +3662,12 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } +/** A `OrgPermissionDefaultGrant` edge in the connection. */ +export interface OrgPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultGrant` at the end of the edge. */ + node?: OrgPermissionDefaultGrant | null; +} /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { cursor?: string | null; @@ -3235,12 +3734,6 @@ export interface AppMembershipEdge { /** The `AppMembership` at the end of the edge. */ node?: AppMembership | 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 `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { cursor?: string | null; @@ -3253,6 +3746,12 @@ export interface OrgMemberProfileEdge { /** The `OrgMemberProfile` at the end of the edge. */ node?: OrgMemberProfile | 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 `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 8b2bdd0594..d3bae8fae8 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -20,6 +20,14 @@ export interface AppPermission { bitstr: string | null; description: string | null; } +export interface AppPermissionDefaultGrant { + id: string | null; + permissionId: string | null; + isGrant: boolean | null; + grantorId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface OrgPermission { id: string | null; name: string | null; @@ -27,6 +35,22 @@ export interface OrgPermission { bitstr: string | null; description: string | null; } +export interface OrgPermissionDefaultPermission { + id: string | null; + permissionId: string | null; + entityId: string | null; + createdAt: string | null; + updatedAt: string | null; +} +export interface OrgPermissionDefaultGrant { + id: string | null; + permissionId: string | null; + isGrant: boolean | null; + grantorId: string | null; + entityId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface OrgMember { id: string | null; isAdmin: boolean | null; @@ -42,6 +66,12 @@ export interface OrgPermissionDefault { permissions: string | null; entityId: string | null; } +export interface AppPermissionDefaultPermission { + id: string | null; + permissionId: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface AppAdminGrant { id: string | null; isGrant: boolean | null; @@ -193,21 +223,6 @@ export interface AppMembership { actorId: string | null; profileId: string | null; } -export interface AppInvite { - id: string | null; - email: ConstructiveInternalTypeEmail | null; - senderId: string | null; - inviteToken: string | null; - inviteValid: boolean | null; - inviteLimit: number | null; - inviteCount: number | null; - multiple: boolean | null; - data: unknown | null; - profileId: string | null; - expiresAt: string | null; - createdAt: string | null; - updatedAt: string | null; -} export interface OrgMembership { id: string | null; createdAt: string | null; @@ -241,9 +256,28 @@ export interface OrgMemberProfile { bio: string | null; profilePicture: ConstructiveInternalTypeImage | null; } +export interface AppInvite { + id: string | null; + channel: string | null; + email: ConstructiveInternalTypeEmail | null; + phone: string | null; + senderId: string | null; + inviteToken: string | null; + inviteValid: boolean | null; + inviteLimit: number | null; + inviteCount: number | null; + multiple: boolean | null; + data: unknown | null; + profileId: string | null; + expiresAt: string | null; + createdAt: string | null; + updatedAt: string | null; +} export interface OrgInvite { id: string | null; + channel: string | null; email: ConstructiveInternalTypeEmail | null; + phone: string | null; senderId: string | null; receiverId: string | null; inviteToken: string | null; diff --git a/sdk/constructive-react/src/agent/hooks/README.md b/sdk/constructive-react/src/agent/hooks/README.md index 05a878be70..d60fb27926 100644 --- a/sdk/constructive-react/src/agent/hooks/README.md +++ b/sdk/constructive-react/src/agent/hooks/README.md @@ -152,20 +152,20 @@ create({ ownerId: '', status: '', isArchived: '', archive ```typescript // List all agentMessages const { data, isLoading } = useAgentMessagesQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, }); // Get one agentMessage const { data: item } = useAgentMessageQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }, }); // Create a agentMessage const { mutate: create } = useCreateAgentMessageMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }); +create({ actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }); ``` ### AgentTask @@ -173,20 +173,20 @@ create({ ownerId: '', parts: '', threadId: '', authorRole: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }, }); // Create a agentTask const { mutate: create } = useCreateAgentTaskMutation({ selection: { fields: { id: true } }, }); -create({ ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); +create({ actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }); ``` ### AgentPrompt diff --git a/sdk/constructive-react/src/agent/orm/README.md b/sdk/constructive-react/src/agent/orm/README.md index 61b29a99f5..b8063a2d31 100644 --- a/sdk/constructive-react/src/agent/orm/README.md +++ b/sdk/constructive-react/src/agent/orm/README.md @@ -162,26 +162,27 @@ CRUD operations for AgentMessage records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | +| `agentId` | UUID | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); @@ -198,7 +199,7 @@ CRUD operations for AgentTask records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | | `description` | String | Yes | @@ -215,16 +216,16 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-react/src/agent/orm/input-types.ts b/sdk/constructive-react/src/agent/orm/input-types.ts index 0e4fdc0c20..dbb8e0c07f 100644 --- a/sdk/constructive-react/src/agent/orm/input-types.ts +++ b/sdk/constructive-react/src/agent/orm/input-types.ts @@ -304,8 +304,8 @@ export interface AgentMessage { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this message */ - ownerId?: string | null; + /** User who authored this message */ + actorId?: string | null; /** Message content: TextPart and ToolPart array */ parts?: Record | null; /** Foreign key to agent_thread */ @@ -314,14 +314,16 @@ export interface AgentMessage { authorRole?: string | null; /** LLM model that generated this response */ model?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this task */ - ownerId?: string | null; + /** User who authored this task */ + actorId?: string | null; /** Current status of this task */ status?: string | null; /** Foreign key to agent_plan */ @@ -374,7 +376,7 @@ export interface AgentResourceChunk { updatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ @@ -441,7 +443,7 @@ export interface AgentResource { descriptionTrgmSimilarity?: number | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ bodyTrgmSimilarity?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -465,6 +467,7 @@ export interface AgentRelations { parent?: Agent | null; persona?: AgentPersona | null; agentThreads?: ConnectionResult; + agentMessages?: ConnectionResult; childAgents?: ConnectionResult; } export interface AgentThreadRelations { @@ -476,6 +479,7 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; } export interface AgentMessageRelations { + agent?: Agent | null; thread?: AgentThread | null; } export interface AgentTaskRelations { @@ -545,6 +549,12 @@ export type AgentSelect = { filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; + agentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; childAgents?: { select: AgentSelect; first?: number; @@ -600,11 +610,15 @@ export type AgentMessageSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; parts?: boolean; threadId?: boolean; authorRole?: boolean; model?: boolean; + agentId?: boolean; + agent?: { + select: AgentSelect; + }; thread?: { select: AgentThreadSelect; }; @@ -613,7 +627,7 @@ export type AgentTaskSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; status?: boolean; planId?: boolean; description?: boolean; @@ -781,6 +795,10 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ @@ -855,8 +873,8 @@ export interface AgentMessageFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ @@ -865,12 +883,18 @@ export interface AgentMessageFilter { authorRole?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } @@ -881,8 +905,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1164,8 +1188,8 @@ export type AgentMessageOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' @@ -1173,7 +1197,9 @@ export type AgentMessageOrderBy = | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' - | 'MODEL_DESC'; + | 'MODEL_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC'; export type AgentTaskOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1184,8 +1210,8 @@ export type AgentTaskOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' @@ -1440,19 +1466,21 @@ export interface DeleteAgentThreadInput { export interface CreateAgentMessageInput { clientMutationId?: string; agentMessage: { - ownerId?: string; + actorId?: string; parts?: Record; threadId: string; authorRole: string; model?: string; + agentId?: string; }; } export interface AgentMessagePatch { - ownerId?: string | null; + actorId?: string | null; parts?: Record | null; threadId?: string | null; authorRole?: string | null; model?: string | null; + agentId?: string | null; } export interface UpdateAgentMessageInput { clientMutationId?: string; @@ -1466,7 +1494,7 @@ export interface DeleteAgentMessageInput { export interface CreateAgentTaskInput { clientMutationId?: string; agentTask: { - ownerId?: string; + actorId?: string; status?: string; planId: string; description: string; @@ -1481,7 +1509,7 @@ export interface CreateAgentTaskInput { }; } export interface AgentTaskPatch { - ownerId?: string | null; + actorId?: string | null; status?: string | null; planId?: string | null; description?: string | null; @@ -1644,6 +1672,7 @@ export const connectionFieldsMap = { }, Agent: { agentThreads: 'AgentThread', + agentMessages: 'AgentMessage', childAgents: 'Agent', }, AgentThread: { @@ -1686,6 +1715,15 @@ export interface AgentToManyAgentThreadFilter { /** 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 AgentToManyAgentMessageFilter { + /** 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 `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentFilter { /** Filters to entities where at least one related entity matches. */ @@ -1839,6 +1877,203 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this plan */ + ownerId?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + /** Overall goal or context for this plan */ + description?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Display name for this agent instance */ + name: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this thread */ + ownerId?: string; + /** Current status of this thread */ + status?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Human-readable conversation title */ + title?: string; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Agent instance assigned to this thread */ + agentId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this message */ + actorId?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + /** Who authored this message: user or assistant */ + authorRole: string; + /** LLM model that generated this response */ + model?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this task */ + actorId?: string; + /** Current status of this task */ + status?: string; + /** Foreign key to agent_plan */ + planId: string; + /** Natural-language description of the work to do */ + description: string; + /** Who created the task: agent or user */ + source?: string; + /** Error message captured when the task failed */ + error?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + /** The system prompt template content */ + content: string; + /** What this prompt template is for */ + description?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; +} +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + id?: string; + agentResourceId: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + metadata?: Record; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Display name for this persona */ + name: string; + /** Brief description of this persona role */ + description?: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + /** Whether this persona is available for use */ + isActive?: boolean; +} +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Resource name or title */ + title: string; + /** Brief description of this resource */ + description?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + embedding?: number[]; + embeddingUpdatedAt?: string; +} /** 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 `id` field. */ @@ -1847,8 +2082,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1943,6 +2178,39 @@ export interface AgentThreadFilter { /** `agentPlansByThreadId` exist. */ agentPlansByThreadIdExist?: 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 `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 `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentFilter { /** Filter by the object’s `id` field. */ @@ -1985,38 +2253,15 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: 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 `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; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** 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 `thread` relation. */ - thread?: AgentThreadFilter; -} /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPlanFilter { /** Filter by the object’s `id` field. */ diff --git a/sdk/constructive-react/src/agent/schema-types.ts b/sdk/constructive-react/src/agent/schema-types.ts index 92d9f586bd..8f37da96d0 100644 --- a/sdk/constructive-react/src/agent/schema-types.ts +++ b/sdk/constructive-react/src/agent/schema-types.ts @@ -105,8 +105,8 @@ export type AgentMessageOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' @@ -114,7 +114,9 @@ export type AgentMessageOrderBy = | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' - | 'MODEL_DESC'; + | 'MODEL_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC'; /** Methods to use when ordering `AgentPlan`. */ export type AgentPlanOrderBy = | 'NATURAL' @@ -147,8 +149,8 @@ export type AgentTaskOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' @@ -349,6 +351,10 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ @@ -527,8 +533,8 @@ export interface AgentMessageFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ @@ -537,12 +543,18 @@ export interface AgentMessageFilter { authorRole?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } @@ -603,8 +615,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -636,6 +648,15 @@ export interface AgentTaskFilter { /** Filter by the object’s `plan` relation. */ plan?: AgentPlanFilter; } +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentToManyAgentMessageFilter { + /** 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 `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentFilter { /** Filters to entities where at least one related entity matches. */ @@ -931,8 +952,8 @@ export interface AgentMessageInput { id?: string; createdAt?: string; updatedAt?: string; - /** User who owns this message */ - ownerId?: string; + /** User who authored this message */ + actorId?: string; /** Message content: TextPart and ToolPart array */ parts?: unknown; /** Foreign key to agent_thread */ @@ -941,6 +962,8 @@ export interface AgentMessageInput { authorRole: string; /** LLM model that generated this response */ model?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; } export interface CreateAgentTaskInput { clientMutationId?: string; @@ -952,8 +975,8 @@ export interface AgentTaskInput { id?: string; createdAt?: string; updatedAt?: string; - /** User who owns this task */ - ownerId?: string; + /** User who authored this task */ + actorId?: string; /** Current status of this task */ status?: string; /** Foreign key to agent_plan */ @@ -1175,8 +1198,8 @@ export interface AgentMessagePatch { id?: string; createdAt?: string; updatedAt?: string; - /** User who owns this message */ - ownerId?: string; + /** User who authored this message */ + actorId?: string; /** Message content: TextPart and ToolPart array */ parts?: unknown; /** Foreign key to agent_thread */ @@ -1185,6 +1208,8 @@ export interface AgentMessagePatch { authorRole?: string; /** LLM model that generated this response */ model?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; } export interface UpdateAgentTaskInput { clientMutationId?: string; @@ -1197,8 +1222,8 @@ export interface AgentTaskPatch { id?: string; createdAt?: string; updatedAt?: string; - /** User who owns this task */ - ownerId?: string; + /** User who authored this task */ + actorId?: string; /** Current status of this task */ status?: string; /** Foreign key to agent_plan */ diff --git a/sdk/constructive-react/src/agent/types.ts b/sdk/constructive-react/src/agent/types.ts index 33bc9b6130..f1dbeb4ae6 100644 --- a/sdk/constructive-react/src/agent/types.ts +++ b/sdk/constructive-react/src/agent/types.ts @@ -47,17 +47,18 @@ export interface AgentMessage { id: string | null; createdAt: string | null; updatedAt: string | null; - ownerId: string | null; + actorId: string | null; parts: unknown | null; threadId: string | null; authorRole: string | null; model: string | null; + agentId: string | null; } export interface AgentTask { id: string | null; createdAt: string | null; updatedAt: string | null; - ownerId: string | null; + actorId: string | null; status: string | null; planId: string | null; description: string | null; diff --git a/sdk/constructive-react/src/api/README.md b/sdk/constructive-react/src/api/README.md index ab51dbdacd..f05a02117d 100644 --- a/sdk/constructive-react/src/api/README.md +++ b/sdk/constructive-react/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 46 - **Custom queries:** 1 - **Custom mutations:** 9 diff --git a/sdk/constructive-react/src/api/hooks/README.md b/sdk/constructive-react/src/api/hooks/README.md index 84e75c72f5..fe847aa2b8 100644 --- a/sdk/constructive-react/src/api/hooks/README.md +++ b/sdk/constructive-react/src/api/hooks/README.md @@ -142,6 +142,11 @@ function App() { | `useCreateEnumMutation` | Mutation | Create a enum | | `useUpdateEnumMutation` | Mutation | Update a enum | | `useDeleteEnumMutation` | Mutation | Delete a enum | +| `useCompositeTypesQuery` | Query | List all compositeTypes | +| `useCompositeTypeQuery` | Query | Get one compositeType | +| `useCreateCompositeTypeMutation` | Mutation | Create a compositeType | +| `useUpdateCompositeTypeMutation` | Mutation | Update a compositeType | +| `useDeleteCompositeTypeMutation` | Mutation | Delete a compositeType | | `useApiSchemasQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | | `useApiSchemaQuery` | Query | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | | `useCreateApiSchemaMutation` | Mutation | Join table linking APIs to the database schemas they expose; controls which schemas are accessible through each API | @@ -315,20 +320,20 @@ create({ databaseId: '', schemaId: '', name: '' }); ```typescript // List all schemas const { data, isLoading } = useSchemasQuery({ - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, }); // Get one schema const { data: item } = useSchemaQuery({ id: '', - selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }, }); // Create a schema const { mutate: create } = useCreateSchemaMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }); +create({ databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }); ``` ### Table @@ -336,20 +341,20 @@ create({ databaseId: '', name: '', schemaName: '', label: ```typescript // List all tables const { data, isLoading } = useTablesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); // Get one table const { data: item } = useTableQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }, }); // Create a table const { mutate: create } = useCreateTableMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }); ``` ### CheckConstraint @@ -357,20 +362,20 @@ create({ databaseId: '', schemaId: '', name: '', label: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a checkConstraint const { mutate: create } = useCreateCheckConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### Field @@ -378,20 +383,20 @@ create({ databaseId: '', tableId: '', name: '', type: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }, }); // Create a field const { mutate: create } = useCreateFieldMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }); +create({ databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }); ``` ### SpatialRelation @@ -399,20 +404,20 @@ create({ databaseId: '', tableId: '', name: '', label: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a spatialRelation const { mutate: create } = useCreateSpatialRelationMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }); ``` ### ForeignKeyConstraint @@ -420,20 +425,20 @@ create({ databaseId: '', tableId: '', fieldId: '', refTableId: ```typescript // List all foreignKeyConstraints const { data, isLoading } = useForeignKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one foreignKeyConstraint const { data: item } = useForeignKeyConstraintQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a foreignKeyConstraint const { mutate: create } = useCreateForeignKeyConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }); ``` ### FullTextSearch @@ -462,20 +467,20 @@ create({ databaseId: '', tableId: '', fieldId: '', fieldIds: ' ```typescript // List all indices const { data, isLoading } = useIndicesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one index const { data: item } = useIndexQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a index const { mutate: create } = useCreateIndexMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### Policy @@ -483,20 +488,20 @@ create({ databaseId: '', tableId: '', name: '', fieldIds: '< ```typescript // List all policies const { data, isLoading } = usePoliciesQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one policy const { data: item } = usePolicyQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a policy const { mutate: create } = useCreatePolicyMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### PrimaryKeyConstraint @@ -504,20 +509,20 @@ create({ databaseId: '', tableId: '', name: '', granteeName: ```typescript // List all primaryKeyConstraints const { data, isLoading } = usePrimaryKeyConstraintsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one primaryKeyConstraint const { data: item } = usePrimaryKeyConstraintQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a primaryKeyConstraint const { mutate: create } = useCreatePrimaryKeyConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### TableGrant @@ -546,20 +551,20 @@ create({ databaseId: '', tableId: '', privilege: '', grantee ```typescript // List all triggers const { data, isLoading } = useTriggersQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Get one trigger const { data: item } = useTriggerQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a trigger const { mutate: create } = useCreateTriggerMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### UniqueConstraint @@ -567,20 +572,20 @@ create({ databaseId: '', tableId: '', name: '', event: '', - selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }, }); // Create a uniqueConstraint const { mutate: create } = useCreateUniqueConstraintMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }); ``` ### View @@ -588,20 +593,20 @@ create({ databaseId: '', tableId: '', name: '', description: ```typescript // List all views const { data, isLoading } = useViewsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }, }); // Get one view const { data: item } = useViewQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }, }); // Create a view const { mutate: create } = useCreateViewMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### ViewTable @@ -609,20 +614,20 @@ create({ databaseId: '', schemaId: '', name: '', tableId: '< ```typescript // List all viewTables const { data, isLoading } = useViewTablesQuery({ - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }, }); // Get one viewTable const { data: item } = useViewTableQuery({ id: '', - selection: { fields: { id: true, viewId: true, tableId: true, joinOrder: true } }, + selection: { fields: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }, }); // Create a viewTable const { mutate: create } = useCreateViewTableMutation({ selection: { fields: { id: true } }, }); -create({ viewId: '', tableId: '', joinOrder: '' }); +create({ databaseId: '', viewId: '', tableId: '', joinOrder: '' }); ``` ### ViewGrant @@ -735,20 +740,41 @@ create({ databaseId: '', schemaId: '', objectType: '', privi ```typescript // List all enums const { data, isLoading } = useEnumsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }, }); // Get one enum const { data: item } = useEnumQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }, }); // Create a enum const { mutate: create } = useCreateEnumMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }); +``` + +### CompositeType + +```typescript +// List all compositeTypes +const { data, isLoading } = useCompositeTypesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }, +}); + +// Get one compositeType +const { data: item } = useCompositeTypeQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }, +}); + +// Create a compositeType +const { mutate: create } = useCreateCompositeTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }); ``` ### ApiSchema diff --git a/sdk/constructive-react/src/api/hooks/index.ts b/sdk/constructive-react/src/api/hooks/index.ts index 0f22d9f352..ab71c82879 100644 --- a/sdk/constructive-react/src/api/hooks/index.ts +++ b/sdk/constructive-react/src/api/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: Function, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, MigrateFile, NodeTypeRegistry, PubkeySetting, Database, RlsSetting, SqlAction, DatabaseSetting, WebauthnSetting, AstMigration + * Tables: Function, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SchemaGrant, DefaultPrivilege, Enum, CompositeType, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, CorsSetting, TriggerFunction, Partition, DatabaseTransfer, Api, Site, App, ApiSetting, MigrateFile, NodeTypeRegistry, PubkeySetting, Database, RlsSetting, SqlAction, DatabaseSetting, WebauthnSetting, AstMigration * * Usage: * diff --git a/sdk/constructive-react/src/api/hooks/invalidation.ts b/sdk/constructive-react/src/api/hooks/invalidation.ts index 82f3c4cdad..a4d7fde7f7 100644 --- a/sdk/constructive-react/src/api/hooks/invalidation.ts +++ b/sdk/constructive-react/src/api/hooks/invalidation.ts @@ -37,6 +37,7 @@ import { schemaGrantKeys, defaultPrivilegeKeys, enumKeys, + compositeTypeKeys, apiSchemaKeys, apiModuleKeys, domainKeys, @@ -425,6 +426,23 @@ export const invalidate = { queryKey: enumKeys.detail(id), }), }, + /** Invalidate compositeType queries */ compositeType: { + /** Invalidate all compositeType queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.all, + }), + /** Invalidate compositeType list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.lists(), + }), + /** Invalidate a specific compositeType */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.detail(id), + }), + }, /** Invalidate apiSchema queries */ apiSchema: { /** Invalidate all apiSchema queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -954,6 +972,14 @@ export const remove = { queryKey: enumKeys.detail(id), }); }, + /** Remove compositeType from cache */ compositeType: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: compositeTypeKeys.detail(id), + }); + }, /** Remove apiSchema from cache */ apiSchema: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: apiSchemaKeys.detail(id), diff --git a/sdk/constructive-react/src/api/hooks/mutation-keys.ts b/sdk/constructive-react/src/api/hooks/mutation-keys.ts index 3d83c2b094..c8b6437bac 100644 --- a/sdk/constructive-react/src/api/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/api/hooks/mutation-keys.ts @@ -203,6 +203,15 @@ export const enumMutationKeys = { /** Delete enum mutation key */ delete: (id: string | number) => ['mutation', 'enum', 'delete', id] as const, } as const; +export const compositeTypeMutationKeys = { + /** All compositeType mutation keys */ all: ['mutation', 'compositetype'] as const, + /** Create compositeType mutation key */ create: () => + ['mutation', 'compositetype', 'create'] as const, + /** Update compositeType mutation key */ update: (id: string | number) => + ['mutation', 'compositetype', 'update', id] as const, + /** Delete compositeType mutation key */ delete: (id: string | number) => + ['mutation', 'compositetype', 'delete', id] as const, +} as const; export const apiSchemaMutationKeys = { /** All apiSchema mutation keys */ all: ['mutation', 'apischema'] as const, /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'] as const, @@ -487,6 +496,7 @@ export const mutationKeys = { schemaGrant: schemaGrantMutationKeys, defaultPrivilege: defaultPrivilegeMutationKeys, enum: enumMutationKeys, + compositeType: compositeTypeMutationKeys, apiSchema: apiSchemaMutationKeys, apiModule: apiModuleMutationKeys, domain: domainMutationKeys, diff --git a/sdk/constructive-react/src/api/hooks/mutations/index.ts b/sdk/constructive-react/src/api/hooks/mutations/index.ts index fef44ee08a..7c4b5b2e5a 100644 --- a/sdk/constructive-react/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/api/hooks/mutations/index.ts @@ -69,6 +69,9 @@ export * from './useDeleteDefaultPrivilegeMutation'; export * from './useCreateEnumMutation'; export * from './useUpdateEnumMutation'; export * from './useDeleteEnumMutation'; +export * from './useCreateCompositeTypeMutation'; +export * from './useUpdateCompositeTypeMutation'; +export * from './useDeleteCompositeTypeMutation'; export * from './useCreateApiSchemaMutation'; export * from './useUpdateApiSchemaMutation'; export * from './useDeleteApiSchemaMutation'; diff --git a/sdk/constructive-react/src/api/hooks/mutations/useCreateCompositeTypeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useCreateCompositeTypeMutation.ts new file mode 100644 index 0000000000..732077fc88 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useCreateCompositeTypeMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for CompositeType + * @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 { compositeTypeKeys } from '../query-keys'; +import { compositeTypeMutationKeys } from '../mutation-keys'; +import type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CreateCompositeTypeInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CreateCompositeTypeInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a CompositeType + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateCompositeTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateCompositeTypeMutation( + params: { + selection: { + fields: S & CompositeTypeSelect; + } & HookStrictSelect, CompositeTypeSelect>; + } & Omit< + UseMutationOptions< + { + createCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + CreateCompositeTypeInput['compositeType'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + CreateCompositeTypeInput['compositeType'] +>; +export function useCreateCompositeTypeMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: compositeTypeMutationKeys.create(), + mutationFn: (data: CreateCompositeTypeInput['compositeType']) => + getClient() + .compositeType.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useDeleteCompositeTypeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useDeleteCompositeTypeMutation.ts new file mode 100644 index 0000000000..661e08ff3a --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useDeleteCompositeTypeMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for CompositeType + * @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 { compositeTypeKeys } from '../query-keys'; +import { compositeTypeMutationKeys } from '../mutation-keys'; +import type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a CompositeType with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteCompositeTypeMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteCompositeTypeMutation( + params: { + selection: { + fields: S & CompositeTypeSelect; + } & HookStrictSelect, CompositeTypeSelect>; + } & Omit< + UseMutationOptions< + { + deleteCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteCompositeTypeMutation( + 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: compositeTypeMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .compositeType.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: compositeTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/mutations/useUpdateCompositeTypeMutation.ts b/sdk/constructive-react/src/api/hooks/mutations/useUpdateCompositeTypeMutation.ts new file mode 100644 index 0000000000..a1ccc3706e --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/mutations/useUpdateCompositeTypeMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for CompositeType + * @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 { compositeTypeKeys } from '../query-keys'; +import { compositeTypeMutationKeys } from '../mutation-keys'; +import type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CompositeTypePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CompositeTypePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a CompositeType + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateCompositeTypeMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', compositeTypePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateCompositeTypeMutation( + params: { + selection: { + fields: S & CompositeTypeSelect; + } & HookStrictSelect, CompositeTypeSelect>; + } & Omit< + UseMutationOptions< + { + updateCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + { + id: string; + compositeTypePatch: CompositeTypePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateCompositeType: { + compositeType: InferSelectResult; + }; + }, + Error, + { + id: string; + compositeTypePatch: CompositeTypePatch; + } +>; +export function useUpdateCompositeTypeMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + compositeTypePatch: CompositeTypePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: compositeTypeMutationKeys.all, + mutationFn: ({ + id, + compositeTypePatch, + }: { + id: string; + compositeTypePatch: CompositeTypePatch; + }) => + getClient() + .compositeType.update({ + where: { + id, + }, + data: compositeTypePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: compositeTypeKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/index.ts b/sdk/constructive-react/src/api/hooks/queries/index.ts index 809a0536e3..811c6a1829 100644 --- a/sdk/constructive-react/src/api/hooks/queries/index.ts +++ b/sdk/constructive-react/src/api/hooks/queries/index.ts @@ -47,6 +47,8 @@ export * from './useDefaultPrivilegesQuery'; export * from './useDefaultPrivilegeQuery'; export * from './useEnumsQuery'; export * from './useEnumQuery'; +export * from './useCompositeTypesQuery'; +export * from './useCompositeTypeQuery'; export * from './useApiSchemasQuery'; export * from './useApiSchemaQuery'; export * from './useApiModulesQuery'; diff --git a/sdk/constructive-react/src/api/hooks/queries/useCompositeTypeQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCompositeTypeQuery.ts new file mode 100644 index 0000000000..363f50d8a5 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useCompositeTypeQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for CompositeType + * @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 { compositeTypeKeys } from '../query-keys'; +import type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { CompositeTypeSelect, CompositeTypeWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const compositeTypeQueryKey = compositeTypeKeys.detail; +/** + * Query hook for fetching a single CompositeType + * + * @example + * ```tsx + * const { data, isLoading } = useCompositeTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useCompositeTypeQuery< + S extends CompositeTypeSelect, + TData = { + compositeType: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CompositeTypeSelect>; + } & Omit< + UseQueryOptions< + { + compositeType: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCompositeTypeQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: compositeTypeKeys.detail(params.id), + queryFn: () => + getClient() + .compositeType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single CompositeType without React hooks + * + * @example + * ```ts + * const data = await fetchCompositeTypeQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchCompositeTypeQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CompositeTypeSelect>; +}): Promise<{ + compositeType: InferSelectResult | null; +}>; +export async function fetchCompositeTypeQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .compositeType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single CompositeType for SSR or cache warming + * + * @example + * ```ts + * await prefetchCompositeTypeQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchCompositeTypeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, CompositeTypeSelect>; + } +): Promise; +export async function prefetchCompositeTypeQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: compositeTypeKeys.detail(params.id), + queryFn: () => + getClient() + .compositeType.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/queries/useCompositeTypesQuery.ts b/sdk/constructive-react/src/api/hooks/queries/useCompositeTypesQuery.ts new file mode 100644 index 0000000000..5916d7ad23 --- /dev/null +++ b/sdk/constructive-react/src/api/hooks/queries/useCompositeTypesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for CompositeType + * @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 { compositeTypeKeys } from '../query-keys'; +import type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CompositeTypeFilter, + CompositeTypeOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + CompositeTypeSelect, + CompositeTypeWithRelations, + CompositeTypeFilter, + CompositeTypeOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const compositeTypesQueryKey = compositeTypeKeys.list; +/** + * Query hook for fetching CompositeType list + * + * @example + * ```tsx + * const { data, isLoading } = useCompositeTypesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useCompositeTypesQuery< + S extends CompositeTypeSelect, + TData = { + compositeTypes: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CompositeTypeSelect>; + } & Omit< + UseQueryOptions< + { + compositeTypes: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useCompositeTypesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: compositeTypeKeys.list(args), + queryFn: () => getClient().compositeType.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch CompositeType list without React hooks + * + * @example + * ```ts + * const data = await fetchCompositeTypesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchCompositeTypesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CompositeTypeSelect>; +}): Promise<{ + compositeTypes: ConnectionResult>; +}>; +export async function fetchCompositeTypesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy + >(params.selection); + return getClient().compositeType.findMany(args).unwrap(); +} +/** + * Prefetch CompositeType list for SSR or cache warming + * + * @example + * ```ts + * await prefetchCompositeTypesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchCompositeTypesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, CompositeTypeSelect>; + } +): Promise; +export async function prefetchCompositeTypesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: compositeTypeKeys.list(args), + queryFn: () => getClient().compositeType.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/api/hooks/query-keys.ts b/sdk/constructive-react/src/api/hooks/query-keys.ts index 459e39cdbc..d198cb7b1e 100644 --- a/sdk/constructive-react/src/api/hooks/query-keys.ts +++ b/sdk/constructive-react/src/api/hooks/query-keys.ts @@ -217,6 +217,15 @@ export const enumKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...enumKeys.details(), id] as const, } as const; +export const compositeTypeKeys = { + /** All compositeType queries */ all: ['compositetype'] as const, + /** List query keys */ lists: () => [...compositeTypeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...compositeTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...compositeTypeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...compositeTypeKeys.details(), id] as const, +} as const; export const apiSchemaKeys = { /** All apiSchema queries */ all: ['apischema'] as const, /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'] as const, @@ -478,6 +487,7 @@ export const queryKeys = { schemaGrant: schemaGrantKeys, defaultPrivilege: defaultPrivilegeKeys, enum: enumKeys, + compositeType: compositeTypeKeys, apiSchema: apiSchemaKeys, apiModule: apiModuleKeys, domain: domainKeys, diff --git a/sdk/constructive-react/src/api/orm/README.md b/sdk/constructive-react/src/api/orm/README.md index 8690e7411b..e4f38f7327 100644 --- a/sdk/constructive-react/src/api/orm/README.md +++ b/sdk/constructive-react/src/api/orm/README.md @@ -43,6 +43,7 @@ const db = createClient({ | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | +| `compositeType` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -117,7 +118,6 @@ CRUD operations for Schema records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `isPublic` | Boolean | Yes | @@ -128,13 +128,13 @@ CRUD operations for Schema records. ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -159,7 +159,6 @@ CRUD operations for Table records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `useRls` | Boolean | Yes | | `timestamps` | Boolean | Yes | @@ -171,21 +170,21 @@ CRUD operations for Table records. | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | | `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `inheritsId` | UUID | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -211,7 +210,6 @@ CRUD operations for CheckConstraint records. | `expr` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -221,13 +219,13 @@ CRUD operations for CheckConstraint records. ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -263,7 +261,6 @@ CRUD operations for Field records. | `max` | Float | Yes | | `tags` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -272,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -305,7 +302,6 @@ CRUD operations for SpatialRelation records. | `operator` | String | Yes | | `paramName` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -315,13 +311,13 @@ CRUD operations for SpatialRelation records. ```typescript // List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -351,7 +347,6 @@ CRUD operations for ForeignKeyConstraint records. | `deleteAction` | String | Yes | | `updateAction` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -361,13 +356,13 @@ CRUD operations for ForeignKeyConstraint records. ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -436,7 +431,6 @@ CRUD operations for Index records. | `opClasses` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -446,13 +440,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -481,7 +475,6 @@ CRUD operations for Policy records. | `data` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -491,13 +484,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -522,7 +515,6 @@ CRUD operations for PrimaryKeyConstraint records. | `fieldIds` | UUID | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -532,13 +524,13 @@ CRUD operations for PrimaryKeyConstraint records. ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -600,7 +592,6 @@ CRUD operations for Trigger records. | `functionName` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -610,13 +601,13 @@ CRUD operations for Trigger records. ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -642,7 +633,6 @@ CRUD operations for UniqueConstraint records. | `type` | String | Yes | | `fieldIds` | UUID | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -652,13 +642,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -688,7 +678,6 @@ CRUD operations for View records. | `isReadOnly` | Boolean | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -696,13 +685,13 @@ CRUD operations for View records. ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -720,6 +709,7 @@ CRUD operations for ViewTable records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | | `tableId` | UUID | Yes | | `joinOrder` | Int | Yes | @@ -728,16 +718,16 @@ CRUD operations for ViewTable records. ```typescript // List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const items = await db.viewTable.findMany({ select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { databaseId: '', viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); @@ -947,7 +937,6 @@ CRUD operations for Enum records. | `values` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -955,13 +944,13 @@ CRUD operations for Enum records. ```typescript // List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -970,6 +959,45 @@ const updated = await db.enum.update({ where: { id: '' }, data: { database const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` +### `db.compositeType` + +CRUD operations for CompositeType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `attributes` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all compositeType records +const items = await db.compositeType.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.compositeType.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.compositeType.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.compositeType.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.compositeType.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. diff --git a/sdk/constructive-react/src/api/orm/index.ts b/sdk/constructive-react/src/api/orm/index.ts index b2161f6fdc..bde4dcc042 100644 --- a/sdk/constructive-react/src/api/orm/index.ts +++ b/sdk/constructive-react/src/api/orm/index.ts @@ -27,6 +27,7 @@ import { EmbeddingChunkModel } from './models/embeddingChunk'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; +import { CompositeTypeModel } from './models/compositeType'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -107,6 +108,7 @@ export function createClient(config: OrmClientConfig) { schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), + compositeType: new CompositeTypeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), diff --git a/sdk/constructive-react/src/api/orm/input-types.ts b/sdk/constructive-react/src/api/orm/input-types.ts index 8da4e53642..75eb0921a8 100644 --- a/sdk/constructive-react/src/api/orm/input-types.ts +++ b/sdk/constructive-react/src/api/orm/input-types.ts @@ -231,7 +231,7 @@ export interface UUIDListFilter { anyGreaterThanOrEqualTo?: string; } // ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +export type ObjectCategory = 'CORE' | 'MODULE' | 'PERMISSIONS' | 'AUTH' | 'MEMBERSHIPS' | 'APP'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeAttachment = unknown; export type ConstructiveInternalTypeHostname = unknown; @@ -254,7 +254,6 @@ export interface Schema { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -270,7 +269,6 @@ export interface Table { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -282,9 +280,9 @@ export interface Table { partitionStrategy?: string | null; partitionKeyNames?: string[] | null; partitionKeyTypes?: string[] | null; - inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; + inheritsId?: string | null; } export interface CheckConstraint { id: string; @@ -296,7 +294,6 @@ export interface CheckConstraint { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -322,7 +319,6 @@ export interface Field { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -338,7 +334,6 @@ export interface SpatialRelation { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -358,7 +353,6 @@ export interface ForeignKeyConstraint { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -391,7 +385,6 @@ export interface Index { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -410,7 +403,6 @@ export interface Policy { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -425,7 +417,6 @@ export interface PrimaryKeyConstraint { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -451,7 +442,6 @@ export interface Trigger { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -467,7 +457,6 @@ export interface UniqueConstraint { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -487,13 +476,13 @@ export interface View { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { id: string; + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -568,7 +557,19 @@ export interface Enum { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface CompositeType { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; scope?: number | null; tags?: string[] | null; } @@ -989,6 +990,7 @@ export interface SchemaRelations { defaultPrivileges?: ConnectionResult; enums?: ConnectionResult; functions?: ConnectionResult; + compositeTypes?: ConnectionResult; apiSchemas?: ConnectionResult; } export interface TableRelations { @@ -1072,6 +1074,7 @@ export interface ViewRelations { viewRules?: ConnectionResult; } export interface ViewTableRelations { + database?: Database | null; table?: Table | null; view?: View | null; } @@ -1102,6 +1105,10 @@ export interface EnumRelations { database?: Database | null; schema?: Schema | null; } +export interface CompositeTypeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1197,6 +1204,7 @@ export interface DatabaseRelations { triggers?: ConnectionResult; uniqueConstraints?: ConnectionResult; views?: ConnectionResult; + viewTables?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; @@ -1205,6 +1213,7 @@ export interface DatabaseRelations { spatialRelations?: ConnectionResult; functions?: ConnectionResult; partitions?: ConnectionResult; + compositeTypes?: ConnectionResult; databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; @@ -1271,6 +1280,7 @@ export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelatio export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; +export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -1316,7 +1326,6 @@ export type SchemaSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; isPublic?: boolean; @@ -1361,6 +1370,12 @@ export type SchemaSelect = { filter?: FunctionFilter; orderBy?: FunctionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -1377,7 +1392,6 @@ export type TableSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; useRls?: boolean; timestamps?: boolean; @@ -1389,9 +1403,9 @@ export type TableSelect = { partitionStrategy?: boolean; partitionKeyNames?: boolean; partitionKeyTypes?: boolean; - inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; + inheritsId?: boolean; database?: { select: DatabaseSelect; }; @@ -1511,7 +1525,6 @@ export type CheckConstraintSelect = { expr?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1543,7 +1556,6 @@ export type FieldSelect = { max?: boolean; tags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1577,7 +1589,6 @@ export type SpatialRelationSelect = { operator?: boolean; paramName?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1612,7 +1623,6 @@ export type ForeignKeyConstraintSelect = { deleteAction?: boolean; updateAction?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1660,7 +1670,6 @@ export type IndexSelect = { opClasses?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1685,7 +1694,6 @@ export type PolicySelect = { data?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1706,7 +1714,6 @@ export type PrimaryKeyConstraintSelect = { fieldIds?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1744,7 +1751,6 @@ export type TriggerSelect = { functionName?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1766,7 +1772,6 @@ export type UniqueConstraintSelect = { type?: boolean; fieldIds?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1792,7 +1797,6 @@ export type ViewSelect = { isReadOnly?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -1825,9 +1829,13 @@ export type ViewSelect = { }; export type ViewTableSelect = { id?: boolean; + databaseId?: boolean; viewId?: boolean; tableId?: boolean; joinOrder?: boolean; + database?: { + select: DatabaseSelect; + }; table?: { select: TableSelect; }; @@ -1941,7 +1949,25 @@ export type EnumSelect = { values?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type CompositeTypeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + attributes?: boolean; + smartTags?: boolean; + category?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -2376,6 +2402,12 @@ export type DatabaseSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; viewGrants?: { select: ViewGrantSelect; first?: number; @@ -2424,6 +2456,12 @@ export type DatabaseSelect = { filter?: PartitionFilter; orderBy?: PartitionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; databaseTransfers?: { select: DatabaseTransferSelect; first?: number; @@ -2674,8 +2712,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2718,6 +2754,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -2740,8 +2780,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -2764,12 +2802,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -2872,8 +2910,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2932,8 +2968,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -2980,8 +3014,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3034,8 +3066,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3118,8 +3148,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3164,8 +3192,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3202,8 +3228,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3270,8 +3294,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3310,8 +3332,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3358,8 +3378,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3394,6 +3412,8 @@ export interface ViewFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -3406,6 +3426,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -3596,8 +3618,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3613,6 +3633,40 @@ export interface EnumFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4204,6 +4258,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -4236,6 +4294,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -4584,8 +4646,6 @@ export type SchemaOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4616,8 +4676,6 @@ export type TableOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'USE_RLS_ASC' @@ -4640,12 +4698,12 @@ export type TableOrderBy = | 'PARTITION_KEY_NAMES_DESC' | 'PARTITION_KEY_TYPES_ASC' | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC'; export type CheckConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -4668,8 +4726,6 @@ export type CheckConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4720,8 +4776,6 @@ export type FieldOrderBy = | 'TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'CREATED_AT_ASC' @@ -4752,8 +4806,6 @@ export type SpatialRelationOrderBy = | 'PARAM_NAME_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4792,8 +4844,6 @@ export type ForeignKeyConstraintOrderBy = | 'UPDATE_ACTION_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4858,8 +4908,6 @@ export type IndexOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4896,8 +4944,6 @@ export type PolicyOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4926,8 +4972,6 @@ export type PrimaryKeyConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4978,8 +5022,6 @@ export type TriggerOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5010,8 +5052,6 @@ export type UniqueConstraintOrderBy = | 'FIELD_IDS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5050,8 +5090,6 @@ export type ViewOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5062,6 +5100,8 @@ export type ViewTableOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' @@ -5204,8 +5244,32 @@ export type EnumOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type CompositeTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ATTRIBUTES_ASC' + | 'ATTRIBUTES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5737,7 +5801,6 @@ export interface CreateSchemaInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; isPublic?: boolean; @@ -5751,7 +5814,6 @@ export interface SchemaPatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -5775,7 +5837,6 @@ export interface CreateTableInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; useRls?: boolean; timestamps?: boolean; @@ -5798,7 +5859,6 @@ export interface TablePatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -5832,7 +5892,6 @@ export interface CreateCheckConstraintInput { expr?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5846,7 +5905,6 @@ export interface CheckConstraintPatch { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5880,7 +5938,6 @@ export interface CreateFieldInput { max?: number; tags?: string[]; category?: ObjectCategory; - module?: string; scope?: number; }; } @@ -5903,7 +5960,6 @@ export interface FieldPatch { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; } export interface UpdateFieldInput { @@ -5927,7 +5983,6 @@ export interface CreateSpatialRelationInput { operator: string; paramName?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5942,7 +5997,6 @@ export interface SpatialRelationPatch { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5970,7 +6024,6 @@ export interface CreateForeignKeyConstraintInput { deleteAction?: string; updateAction?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5988,7 +6041,6 @@ export interface ForeignKeyConstraintPatch { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6047,7 +6099,6 @@ export interface CreateIndexInput { opClasses?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6066,7 +6117,6 @@ export interface IndexPatch { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6093,7 +6143,6 @@ export interface CreatePolicyInput { data?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6110,7 +6159,6 @@ export interface PolicyPatch { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6133,7 +6181,6 @@ export interface CreatePrimaryKeyConstraintInput { fieldIds: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6146,7 +6193,6 @@ export interface PrimaryKeyConstraintPatch { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6197,7 +6243,6 @@ export interface CreateTriggerInput { functionName?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6210,7 +6255,6 @@ export interface TriggerPatch { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6234,7 +6278,6 @@ export interface CreateUniqueConstraintInput { type?: string; fieldIds: string[]; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6248,7 +6291,6 @@ export interface UniqueConstraintPatch { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6276,7 +6318,6 @@ export interface CreateViewInput { isReadOnly?: boolean; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6294,7 +6335,6 @@ export interface ViewPatch { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6310,12 +6350,14 @@ export interface DeleteViewInput { export interface CreateViewTableInput { clientMutationId?: string; viewTable: { + databaseId?: string; viewId: string; tableId: string; joinOrder?: number; }; } export interface ViewTablePatch { + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -6496,7 +6538,6 @@ export interface CreateEnumInput { values?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6510,7 +6551,6 @@ export interface EnumPatch { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6523,6 +6563,42 @@ export interface DeleteEnumInput { clientMutationId?: string; id: string; } +export interface CreateCompositeTypeInput { + clientMutationId?: string; + compositeType: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + }; +} +export interface CompositeTypePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCompositeTypeInput { + clientMutationId?: string; + id: string; + compositeTypePatch: CompositeTypePatch; +} +export interface DeleteCompositeTypeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -7250,6 +7326,7 @@ export const connectionFieldsMap = { defaultPrivileges: 'DefaultPrivilege', enums: 'Enum', functions: 'Function', + compositeTypes: 'CompositeType', apiSchemas: 'ApiSchema', }, Table: { @@ -7307,6 +7384,7 @@ export const connectionFieldsMap = { triggers: 'Trigger', uniqueConstraints: 'UniqueConstraint', views: 'View', + viewTables: 'ViewTable', viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', @@ -7315,6 +7393,7 @@ export const connectionFieldsMap = { spatialRelations: 'SpatialRelation', functions: 'Function', partitions: 'Partition', + compositeTypes: 'CompositeType', databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', @@ -7472,6 +7551,15 @@ export interface SchemaToManyFunctionFilter { /** Filters to entities where no related entity matches. */ none?: FunctionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyApiSchemaFilter { /** Filters to entities where at least one related entity matches. */ @@ -8151,6 +8239,15 @@ export interface DatabaseToManyViewFilter { /** Filters to entities where no related entity matches. */ none?: ViewFilter; } +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} /** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyViewGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -8223,6 +8320,15 @@ export interface DatabaseToManyPartitionFilter { /** Filters to entities where no related entity matches. */ none?: PartitionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseTransferFilter { /** Filters to entities where at least one related entity matches. */ @@ -8331,6 +8437,761 @@ export interface DatabaseToManyCorsSettingFilter { /** Filters to entities where no related entity matches. */ none?: CorsSettingFilter; } +/** An input for mutations affecting `Function` */ +export interface FunctionInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + createdAt?: string; + updatedAt?: string; + inheritsId?: string; +} +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SpatialRelation` */ +export interface SpatialRelationInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FullTextSearch` */ +export interface FullTextSearchInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Policy` */ +export interface PolicyInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `TableGrant` */ +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UniqueConstraint` */ +export interface UniqueConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + databaseId?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; +} +/** An input for mutations affecting `ViewRule` */ +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + /** INSERT, UPDATE, or DELETE */ + event: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +/** 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?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SchemaGrant` */ +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `CompositeType` */ +export interface CompositeTypeInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ApiSchema` */ +export interface ApiSchemaInput { + /** Unique identifier for this API-schema mapping */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Metaschema schema being exposed through the API */ + schemaId: string; + /** API that exposes this schema */ + apiId: string; +} +/** 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: Record; +} +/** An input for mutations affecting `Domain` */ +export interface DomainInput { + /** Unique identifier for this domain record */ + id?: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** 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; +} +/** 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: Record; +} +/** 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: Record; +} +/** An input for mutations affecting `CorsSetting` */ +export interface CorsSettingInput { + /** Unique identifier for this CORS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[]; +} +/** An input for mutations affecting `TriggerFunction` */ +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DatabaseTransfer` */ +export interface DatabaseTransferInput { + id?: string; + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Unique identifier for this API */ + id?: string; + /** Reference to the metaschema database this API serves */ + databaseId: string; + /** Unique name for this API within its database */ + name: string; + /** PostgreSQL database name to connect to */ + dbname?: string; + /** PostgreSQL role used for authenticated requests */ + roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean; +} +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId: string; + /** 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; +} +/** 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; +} +/** An input for mutations affecting `ApiSetting` */ +export interface ApiSettingInput { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API these settings override for */ + apiId: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; +} +/** An input for mutations affecting `PubkeySetting` */ +export interface PubkeySettingInput { + /** Unique identifier for this pubkey settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; +} +/** An input for mutations affecting `Database` */ +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `RlsSetting` */ +export interface RlsSettingInput { + /** Unique identifier for this RLS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string; +} +/** An input for mutations affecting `SqlAction` */ +export interface SqlActionInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} +/** An input for mutations affecting `DatabaseSetting` */ +export interface DatabaseSettingInput { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `WebauthnSetting` */ +export interface WebauthnSettingInput { + /** Unique identifier for this WebAuthn settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string; + /** WebAuthn Relying Party display name */ + rpName?: string; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[]; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string; + /** Challenge TTL in seconds (default 300 = 5 minutes) */ + challengeExpirySeconds?: string; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -8368,8 +9229,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -8392,12 +9251,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -8534,8 +9393,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8614,8 +9471,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8652,6 +9507,41 @@ export interface FunctionFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ @@ -8695,8 +9585,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8756,8 +9644,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -8811,8 +9697,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8897,8 +9781,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8944,8 +9826,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8983,8 +9863,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9053,8 +9931,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9094,8 +9970,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9119,6 +9993,8 @@ export interface UniqueConstraintFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -9131,6 +10007,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -9225,8 +10103,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9464,8 +10340,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9508,6 +10382,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -10121,6 +10999,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -10153,6 +11035,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -11620,6 +12506,51 @@ export type DeleteEnumPayloadSelect = { select: EnumEdgeSelect; }; }; +export interface CreateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was created by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type CreateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface UpdateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was updated by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type UpdateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface DeleteCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was deleted by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type DeleteCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -12845,6 +13776,18 @@ export type EnumEdgeSelect = { select: EnumSelect; }; }; +/** A `CompositeType` edge in the connection. */ +export interface CompositeTypeEdge { + cursor?: string | null; + /** The `CompositeType` at the end of the edge. */ + node?: CompositeType | null; +} +export type CompositeTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: CompositeTypeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/orm/models/compositeType.ts b/sdk/constructive-react/src/api/orm/models/compositeType.ts new file mode 100644 index 0000000000..0f46f810e9 --- /dev/null +++ b/sdk/constructive-react/src/api/orm/models/compositeType.ts @@ -0,0 +1,244 @@ +/** + * CompositeType 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 { + CompositeType, + CompositeTypeWithRelations, + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy, + CreateCompositeTypeInput, + UpdateCompositeTypeInput, + CompositeTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CompositeTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + 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, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CompositeType', + 'createCompositeType', + 'compositeType', + args.select, + args.data, + 'CreateCompositeTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'createCompositeType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CompositeTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CompositeType', + 'updateCompositeType', + 'compositeType', + args.select, + args.where.id, + args.data, + 'UpdateCompositeTypeInput', + 'id', + 'compositeTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'updateCompositeType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CompositeType', + 'deleteCompositeType', + 'compositeType', + { + id: args.where.id, + }, + 'DeleteCompositeTypeInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'deleteCompositeType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/api/orm/models/index.ts b/sdk/constructive-react/src/api/orm/models/index.ts index 326c47f972..ddc91f27a9 100644 --- a/sdk/constructive-react/src/api/orm/models/index.ts +++ b/sdk/constructive-react/src/api/orm/models/index.ts @@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; +export { CompositeTypeModel } from './compositeType'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; diff --git a/sdk/constructive-react/src/api/schema-types.ts b/sdk/constructive-react/src/api/schema-types.ts index 60b0aa7812..e33b0a2a53 100644 --- a/sdk/constructive-react/src/api/schema-types.ts +++ b/sdk/constructive-react/src/api/schema-types.ts @@ -12,6 +12,7 @@ import type { App, AstMigration, CheckConstraint, + CompositeType, CorsSetting, Database, DatabaseSetting, @@ -73,7 +74,7 @@ export type ConstructiveInternalTypeHostname = unknown; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; export type ConstructiveInternalTypeUrl = unknown; -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +export type ObjectCategory = 'CORE' | 'MODULE' | 'PERMISSIONS' | 'AUTH' | 'MEMBERSHIPS' | 'APP'; /** Methods to use when ordering `CheckConstraint`. */ export type CheckConstraintOrderBy = | 'NATURAL' @@ -97,8 +98,6 @@ export type CheckConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -132,8 +131,6 @@ export type SpatialRelationOrderBy = | 'PARAM_NAME_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -185,8 +182,6 @@ export type FieldOrderBy = | 'TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'CREATED_AT_ASC' @@ -224,8 +219,6 @@ export type ForeignKeyConstraintOrderBy = | 'UPDATE_ACTION_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -292,8 +285,6 @@ export type IndexOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -331,8 +322,6 @@ export type PolicyOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -362,8 +351,6 @@ export type PrimaryKeyConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -416,8 +403,6 @@ export type TriggerOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -449,8 +434,6 @@ export type UniqueConstraintOrderBy = | 'FIELD_IDS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -466,6 +449,8 @@ export type ViewTableOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' @@ -539,8 +524,6 @@ export type ViewOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -613,8 +596,6 @@ export type TableOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'USE_RLS_ASC' @@ -637,12 +618,12 @@ export type TableOrderBy = | 'PARTITION_KEY_NAMES_DESC' | 'PARTITION_KEY_TYPES_ASC' | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC'; /** Methods to use when ordering `SchemaGrant`. */ export type SchemaGrantOrderBy = | 'NATURAL' @@ -702,8 +683,6 @@ export type EnumOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -721,6 +700,33 @@ export type FunctionOrderBy = | 'SCHEMA_ID_DESC' | 'NAME_ASC' | 'NAME_DESC'; +/** Methods to use when ordering `CompositeType`. */ +export type CompositeTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ATTRIBUTES_ASC' + | 'ATTRIBUTES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; /** Methods to use when ordering `ApiModule`. */ export type ApiModuleOrderBy = | 'NATURAL' @@ -845,8 +851,6 @@ export type SchemaOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -1291,8 +1295,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -1421,6 +1423,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -1453,6 +1459,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -1545,8 +1555,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -1589,6 +1597,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -1621,8 +1633,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -1645,12 +1655,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -1792,8 +1802,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -1850,8 +1858,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -1914,8 +1920,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2018,8 +2022,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2074,8 +2076,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2122,8 +2122,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2210,8 +2208,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2260,8 +2256,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2318,8 +2312,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2364,6 +2356,8 @@ export interface ViewToManyViewTableFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -2376,6 +2370,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -2694,8 +2690,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2741,6 +2735,50 @@ export interface FunctionFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} +/** A filter to be used against `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyApiSchemaFilter { /** Filters to entities where at least one related entity matches. */ @@ -3572,6 +3610,15 @@ export interface DatabaseToManyViewFilter { /** Filters to entities where no related entity matches. */ none?: ViewFilter; } +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} /** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyViewGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -3644,6 +3691,15 @@ export interface DatabaseToManyPartitionFilter { /** Filters to entities where no related entity matches. */ none?: PartitionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseTransferFilter { /** Filters to entities where at least one related entity matches. */ @@ -4253,18 +4309,6 @@ export interface FunctionInput { schemaId: string; name: string; } -export interface CreateViewTableInput { - clientMutationId?: string; - /** The `ViewTable` to be created by this mutation. */ - viewTable: ViewTableInput; -} -/** An input for mutations affecting `ViewTable` */ -export interface ViewTableInput { - id?: string; - viewId: string; - tableId: string; - joinOrder?: number; -} export interface CreateApiSchemaInput { clientMutationId?: string; /** The `ApiSchema` to be created by this mutation. */ @@ -4297,6 +4341,19 @@ export interface SiteThemeInput { /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme: unknown; } +export interface CreateViewTableInput { + clientMutationId?: string; + /** The `ViewTable` to be created by this mutation. */ + viewTable: ViewTableInput; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + databaseId?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} export interface CreateViewRuleInput { clientMutationId?: string; /** The `ViewRule` to be created by this mutation. */ @@ -4637,6 +4694,44 @@ export interface PartitionInput { createdAt?: string; updatedAt?: string; } +export interface CreateCompositeTypeInput { + clientMutationId?: string; + /** The `CompositeType` to be created by this mutation. */ + compositeType: CompositeTypeInput; +} +/** An input for mutations affecting `CompositeType` */ +export interface CompositeTypeInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +export interface CreateEnumInput { + clientMutationId?: string; + /** The `Enum` to be created by this mutation. */ + enum: EnumInput; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: unknown; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} export interface CreateSqlActionInput { clientMutationId?: string; /** The `SqlAction` to be created by this mutation. */ @@ -4658,6 +4753,29 @@ export interface SqlActionInput { actionId?: string; actorId?: string; } +export interface CreateViewInput { + clientMutationId?: string; + /** The `View` to be created by this mutation. */ + view: ViewInput; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: unknown; + filterType?: string; + filterData?: unknown; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: unknown; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} export interface CreateDatabaseSettingInput { clientMutationId?: string; /** The `DatabaseSetting` to be created by this mutation. */ @@ -4696,50 +4814,6 @@ export interface DatabaseSettingInput { /** Extensible JSON for additional settings that do not have dedicated columns */ options?: unknown; } -export interface CreateEnumInput { - clientMutationId?: string; - /** The `Enum` to be created by this mutation. */ - enum: EnumInput; -} -/** An input for mutations affecting `Enum` */ -export interface EnumInput { - id?: string; - databaseId: string; - schemaId: string; - name: string; - label?: string; - description?: string; - values?: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} -export interface CreateViewInput { - clientMutationId?: string; - /** The `View` to be created by this mutation. */ - view: ViewInput; -} -/** An input for mutations affecting `View` */ -export interface ViewInput { - id?: string; - databaseId?: string; - schemaId: string; - name: string; - tableId?: string; - viewType: string; - data?: unknown; - filterType?: string; - filterData?: unknown; - securityInvoker?: boolean; - isReadOnly?: boolean; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; -} export interface CreateApiSettingInput { clientMutationId?: string; /** The `ApiSetting` to be created by this mutation. */ @@ -4802,86 +4876,33 @@ export interface DatabaseTransferInput { updatedAt?: string; completedAt?: string; } -export interface CreateAppInput { +export interface CreatePrimaryKeyConstraintInput { clientMutationId?: string; - /** The `App` to be created by this mutation. */ - app: AppInput; + /** The `PrimaryKeyConstraint` to be created by this mutation. */ + primaryKeyConstraint: PrimaryKeyConstraintInput; } -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Unique identifier for this app */ +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { 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 */ + databaseId?: string; + tableId: string; 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; + type?: string; + fieldIds: string[]; + smartTags?: unknown; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; } -export interface CreateSiteInput { +export interface CreateTriggerInput { clientMutationId?: string; - /** The `Site` to be created by this mutation. */ - site: SiteInput; + /** The `Trigger` to be created by this mutation. */ + trigger: TriggerInput; } -/** An input for mutations affecting `Site` */ -export interface SiteInput { - /** Unique identifier for this site */ - id?: string; - /** Reference to the metaschema database this site belongs to */ - databaseId: string; - /** 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; -} -export interface CreatePrimaryKeyConstraintInput { - clientMutationId?: string; - /** The `PrimaryKeyConstraint` to be created by this mutation. */ - primaryKeyConstraint: PrimaryKeyConstraintInput; -} -/** An input for mutations affecting `PrimaryKeyConstraint` */ -export interface PrimaryKeyConstraintInput { - id?: string; - databaseId?: string; - tableId: string; - name?: string; - type?: string; - fieldIds: string[]; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - createdAt?: string; - updatedAt?: string; -} -export interface CreateTriggerInput { - clientMutationId?: string; - /** The `Trigger` to be created by this mutation. */ - trigger: TriggerInput; -} -/** An input for mutations affecting `Trigger` */ -export interface TriggerInput { +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { id?: string; databaseId?: string; tableId: string; @@ -4890,7 +4911,6 @@ export interface TriggerInput { functionName?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -4912,7 +4932,6 @@ export interface CheckConstraintInput { expr?: unknown; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -4934,7 +4953,6 @@ export interface UniqueConstraintInput { type?: string; fieldIds: string[]; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -4957,7 +4975,6 @@ export interface SpatialRelationInput { operator: string; paramName?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -4982,12 +4999,63 @@ export interface PolicyInput { data?: unknown; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; updatedAt?: 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; +} +export interface CreateSiteInput { + clientMutationId?: string; + /** The `Site` to be created by this mutation. */ + site: SiteInput; +} +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId: string; + /** 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; +} export interface CreateSchemaInput { clientMutationId?: string; /** The `Schema` to be created by this mutation. */ @@ -5003,7 +5071,6 @@ export interface SchemaInput { description?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; isPublic?: boolean; @@ -5031,7 +5098,31 @@ export interface IndexInput { opClasses?: string[]; smartTags?: unknown; category?: ObjectCategory; - module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface CreateForeignKeyConstraintInput { + clientMutationId?: string; + /** The `ForeignKeyConstraint` to be created by this mutation. */ + foreignKeyConstraint: ForeignKeyConstraintInput; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + 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; scope?: number; tags?: string[]; createdAt?: string; @@ -5066,32 +5157,6 @@ export interface EmbeddingChunkInput { createdAt?: string; updatedAt?: string; } -export interface CreateForeignKeyConstraintInput { - clientMutationId?: string; - /** The `ForeignKeyConstraint` to be created by this mutation. */ - foreignKeyConstraint: ForeignKeyConstraintInput; -} -/** An input for mutations affecting `ForeignKeyConstraint` */ -export interface ForeignKeyConstraintInput { - 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; -} export interface CreateWebauthnSettingInput { clientMutationId?: string; /** The `WebauthnSetting` to be created by this mutation. */ @@ -5183,7 +5248,6 @@ export interface FieldInput { max?: number; tags?: string[]; category?: ObjectCategory; - module?: string; scope?: number; createdAt?: string; updatedAt?: string; @@ -5203,7 +5267,6 @@ export interface TableInput { description?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; useRls?: boolean; timestamps?: boolean; @@ -5215,9 +5278,9 @@ export interface TableInput { partitionStrategy?: string; partitionKeyNames?: string[]; partitionKeyTypes?: string[]; - inheritsId?: string; createdAt?: string; updatedAt?: string; + inheritsId?: string; } export interface UpdateFunctionInput { clientMutationId?: string; @@ -5232,19 +5295,6 @@ export interface FunctionPatch { schemaId?: string; name?: string; } -export interface UpdateViewTableInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ViewTable` being updated. */ - viewTablePatch: ViewTablePatch; -} -/** Represents an update to a `ViewTable`. Fields that are set will be updated. */ -export interface ViewTablePatch { - id?: string; - viewId?: string; - tableId?: string; - joinOrder?: number; -} export interface UpdateApiSchemaInput { clientMutationId?: string; /** Unique identifier for this API-schema mapping */ @@ -5281,6 +5331,20 @@ export interface SiteThemePatch { /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ theme?: unknown; } +export interface UpdateViewTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ViewTable` being updated. */ + viewTablePatch: ViewTablePatch; +} +/** Represents an update to a `ViewTable`. Fields that are set will be updated. */ +export interface ViewTablePatch { + id?: string; + databaseId?: string; + viewId?: string; + tableId?: string; + joinOrder?: number; +} export interface UpdateViewRuleInput { clientMutationId?: string; id: string; @@ -5638,45 +5702,25 @@ export interface PartitionPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateDatabaseSettingInput { +export interface UpdateCompositeTypeInput { clientMutationId?: string; - /** Unique identifier for this settings record */ id: string; - /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ - databaseSettingPatch: DatabaseSettingPatch; + /** An object where the defined keys will be set on the `CompositeType` being updated. */ + compositeTypePatch: CompositeTypePatch; } -/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ -export interface DatabaseSettingPatch { - /** Unique identifier for this settings record */ +/** Represents an update to a `CompositeType`. Fields that are set will be updated. */ +export interface CompositeTypePatch { id?: string; - /** Reference to the metaschema database these settings apply to */ databaseId?: string; - /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ - enableAggregates?: boolean; - /** Enable PostGIS spatial types and operators in the GraphQL API */ - enablePostgis?: boolean; - /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ - enableSearch?: boolean; - /** Enable direct (multipart) file upload mutations in the GraphQL API */ - enableDirectUploads?: boolean; - /** Enable presigned URL upload flow for S3/MinIO storage */ - enablePresignedUploads?: boolean; - /** Enable many-to-many relationship queries in the GraphQL API */ - enableManyToMany?: boolean; - /** Enable connection filter (where argument) in the GraphQL API */ - enableConnectionFilter?: boolean; - /** Enable ltree hierarchical data type support in the GraphQL API */ - enableLtree?: boolean; - /** Enable LLM/AI integration features in the GraphQL API */ - enableLlm?: boolean; - /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ - enableRealtime?: boolean; - /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ - enableBulk?: boolean; - /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ - enableI18N?: boolean; - /** Extensible JSON for additional settings that do not have dedicated columns */ - options?: unknown; + schemaId?: string; + name?: string; + label?: string; + description?: string; + attributes?: unknown; + smartTags?: unknown; + category?: ObjectCategory; + scope?: number; + tags?: string[]; } export interface UpdateEnumInput { clientMutationId?: string; @@ -5695,7 +5739,6 @@ export interface EnumPatch { values?: string[]; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; } @@ -5720,10 +5763,49 @@ export interface ViewPatch { isReadOnly?: boolean; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; } +export interface UpdateDatabaseSettingInput { + clientMutationId?: string; + /** Unique identifier for this settings record */ + id: string; + /** An object where the defined keys will be set on the `DatabaseSetting` being updated. */ + databaseSettingPatch: DatabaseSettingPatch; +} +/** Represents an update to a `DatabaseSetting`. Fields that are set will be updated. */ +export interface DatabaseSettingPatch { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId?: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: unknown; +} export interface UpdateApiSettingInput { clientMutationId?: string; /** Unique identifier for this API settings record */ @@ -5789,72 +5871,6 @@ export interface DatabaseTransferPatch { updatedAt?: string; completedAt?: 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; - /** 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?: File; - /** Upload for Browser favicon attachment */ - faviconUpload?: File; - /** Upload for Apple touch icon for iOS home screen bookmarks */ - appleTouchIconUpload?: File; - /** Upload for Primary logo image for the site */ - logoUpload?: File; -} export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; id: string; @@ -5871,7 +5887,6 @@ export interface PrimaryKeyConstraintPatch { fieldIds?: string[]; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -5893,7 +5908,6 @@ export interface TriggerPatch { functionName?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -5916,7 +5930,6 @@ export interface CheckConstraintPatch { expr?: unknown; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -5939,7 +5952,6 @@ export interface UniqueConstraintPatch { type?: string; fieldIds?: string[]; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -5963,7 +5975,6 @@ export interface SpatialRelationPatch { operator?: string; paramName?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; @@ -5989,12 +6000,77 @@ export interface PolicyPatch { data?: unknown; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; createdAt?: string; updatedAt?: 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; + /** 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?: File; + /** Upload for Browser favicon attachment */ + faviconUpload?: File; + /** Upload for Apple touch icon for iOS home screen bookmarks */ + appleTouchIconUpload?: File; + /** Upload for Primary logo image for the site */ + logoUpload?: File; +} export interface UpdateSchemaInput { clientMutationId?: string; id: string; @@ -6011,7 +6087,6 @@ export interface SchemaPatch { description?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; isPublic?: boolean; @@ -6040,7 +6115,32 @@ export interface IndexPatch { opClasses?: string[]; smartTags?: unknown; category?: ObjectCategory; - module?: string; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateForeignKeyConstraintInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. */ + foreignKeyConstraintPatch: ForeignKeyConstraintPatch; +} +/** Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. */ +export interface ForeignKeyConstraintPatch { + 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; scope?: number; tags?: string[]; createdAt?: string; @@ -6076,33 +6176,6 @@ export interface EmbeddingChunkPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateForeignKeyConstraintInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. */ - foreignKeyConstraintPatch: ForeignKeyConstraintPatch; -} -/** Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. */ -export interface ForeignKeyConstraintPatch { - 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; -} export interface UpdateWebauthnSettingInput { clientMutationId?: string; /** Unique identifier for this WebAuthn settings record */ @@ -6176,7 +6249,6 @@ export interface FieldPatch { max?: number; tags?: string[]; category?: ObjectCategory; - module?: string; scope?: number; createdAt?: string; updatedAt?: string; @@ -6197,7 +6269,6 @@ export interface TablePatch { description?: string; smartTags?: unknown; category?: ObjectCategory; - module?: string; scope?: number; useRls?: boolean; timestamps?: boolean; @@ -6209,18 +6280,14 @@ export interface TablePatch { partitionStrategy?: string; partitionKeyNames?: string[]; partitionKeyTypes?: string[]; - inheritsId?: string; createdAt?: string; updatedAt?: string; + inheritsId?: string; } export interface DeleteFunctionInput { clientMutationId?: string; id: string; } -export interface DeleteViewTableInput { - clientMutationId?: string; - id: string; -} export interface DeleteApiSchemaInput { clientMutationId?: string; /** Unique identifier for this API-schema mapping */ @@ -6231,6 +6298,10 @@ export interface DeleteSiteThemeInput { /** Unique identifier for this theme record */ id: string; } +export interface DeleteViewTableInput { + clientMutationId?: string; + id: string; +} export interface DeleteViewRuleInput { clientMutationId?: string; id: string; @@ -6311,9 +6382,8 @@ export interface DeletePartitionInput { clientMutationId?: string; id: string; } -export interface DeleteDatabaseSettingInput { +export interface DeleteCompositeTypeInput { clientMutationId?: string; - /** Unique identifier for this settings record */ id: string; } export interface DeleteEnumInput { @@ -6324,23 +6394,18 @@ export interface DeleteViewInput { clientMutationId?: string; id: string; } -export interface DeleteApiSettingInput { - clientMutationId?: string; - /** Unique identifier for this API settings record */ - id: string; -} -export interface DeleteDatabaseTransferInput { +export interface DeleteDatabaseSettingInput { clientMutationId?: string; + /** Unique identifier for this settings record */ id: string; } -export interface DeleteAppInput { +export interface DeleteApiSettingInput { clientMutationId?: string; - /** Unique identifier for this app */ + /** Unique identifier for this API settings record */ id: string; } -export interface DeleteSiteInput { +export interface DeleteDatabaseTransferInput { clientMutationId?: string; - /** Unique identifier for this site */ id: string; } export interface DeletePrimaryKeyConstraintInput { @@ -6367,6 +6432,16 @@ export interface DeletePolicyInput { clientMutationId?: string; id: string; } +export interface DeleteAppInput { + clientMutationId?: string; + /** Unique identifier for this app */ + id: string; +} +export interface DeleteSiteInput { + clientMutationId?: string; + /** Unique identifier for this site */ + id: string; +} export interface DeleteSchemaInput { clientMutationId?: string; id: string; @@ -6375,11 +6450,11 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteEmbeddingChunkInput { +export interface DeleteForeignKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteForeignKeyConstraintInput { +export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; } @@ -6412,13 +6487,6 @@ export interface FunctionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ViewTable` values. */ -export interface ViewTableConnection { - nodes: ViewTable[]; - edges: ViewTableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ApiSchema` values. */ export interface ApiSchemaConnection { nodes: ApiSchema[]; @@ -6433,6 +6501,13 @@ export interface SiteThemeConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ViewTable` values. */ +export interface ViewTableConnection { + nodes: ViewTable[]; + edges: ViewTableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ViewRule` values. */ export interface ViewRuleConnection { nodes: ViewRule[]; @@ -6566,17 +6641,10 @@ export interface PartitionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SqlAction` values. */ -export interface SqlActionConnection { - nodes: SqlAction[]; - edges: SqlActionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `DatabaseSetting` values. */ -export interface DatabaseSettingConnection { - nodes: DatabaseSetting[]; - edges: DatabaseSettingEdge[]; +/** A connection to a list of `CompositeType` values. */ +export interface CompositeTypeConnection { + nodes: CompositeType[]; + edges: CompositeTypeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -6587,6 +6655,13 @@ export interface EnumConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SqlAction` values. */ +export interface SqlActionConnection { + nodes: SqlAction[]; + edges: SqlActionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `View` values. */ export interface ViewConnection { nodes: View[]; @@ -6594,6 +6669,13 @@ export interface ViewConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `DatabaseSetting` values. */ +export interface DatabaseSettingConnection { + nodes: DatabaseSetting[]; + edges: DatabaseSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ApiSetting` values. */ export interface ApiSettingConnection { nodes: ApiSetting[]; @@ -6608,20 +6690,6 @@ export interface DatabaseTransferConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `App` values. */ -export interface AppConnection { - nodes: App[]; - edges: AppEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `Site` values. */ -export interface SiteConnection { - nodes: Site[]; - edges: SiteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `PrimaryKeyConstraint` values. */ export interface PrimaryKeyConstraintConnection { nodes: PrimaryKeyConstraint[]; @@ -6664,6 +6732,20 @@ export interface PolicyConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `App` values. */ +export interface AppConnection { + nodes: App[]; + edges: AppEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `Site` values. */ +export interface SiteConnection { + nodes: Site[]; + edges: SiteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Schema` values. */ export interface SchemaConnection { nodes: Schema[]; @@ -6678,13 +6760,6 @@ export interface IndexConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `EmbeddingChunk` values. */ -export interface EmbeddingChunkConnection { - nodes: EmbeddingChunk[]; - edges: EmbeddingChunkEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `ForeignKeyConstraint` values. */ export interface ForeignKeyConstraintConnection { nodes: ForeignKeyConstraint[]; @@ -6692,6 +6767,13 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `EmbeddingChunk` values. */ +export interface EmbeddingChunkConnection { + nodes: EmbeddingChunk[]; + edges: EmbeddingChunkEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `WebauthnSetting` values. */ export interface WebauthnSettingConnection { nodes: WebauthnSetting[]; @@ -6760,12 +6842,6 @@ export interface CreateFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface CreateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was created by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -6778,6 +6854,12 @@ export interface CreateSiteThemePayload { siteTheme?: SiteTheme | null; siteThemeEdge?: SiteThemeEdge | null; } +export interface CreateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was created by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} export interface CreateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was created by this mutation. */ @@ -6891,16 +6973,11 @@ export interface CreatePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } -export interface CreateSqlActionPayload { - clientMutationId?: string | null; - /** The `SqlAction` that was created by this mutation. */ - sqlAction?: SqlAction | null; -} -export interface CreateDatabaseSettingPayload { +export interface CreateCompositeTypePayload { clientMutationId?: string | null; - /** The `DatabaseSetting` that was created by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; + /** The `CompositeType` that was created by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; } export interface CreateEnumPayload { clientMutationId?: string | null; @@ -6908,12 +6985,23 @@ export interface CreateEnumPayload { enum?: Enum | null; enumEdge?: EnumEdge | null; } +export interface CreateSqlActionPayload { + clientMutationId?: string | null; + /** The `SqlAction` that was created by this mutation. */ + sqlAction?: SqlAction | null; +} export interface CreateViewPayload { clientMutationId?: string | null; /** The `View` that was created by this mutation. */ view?: View | null; viewEdge?: ViewEdge | null; } +export interface CreateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was created by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} export interface CreateApiSettingPayload { clientMutationId?: string | null; /** The `ApiSetting` that was created by this mutation. */ @@ -6926,18 +7014,6 @@ export interface CreateDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface CreateAppPayload { - clientMutationId?: string | null; - /** The `App` that was created by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface CreateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was created by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} export interface CreatePrimaryKeyConstraintPayload { clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was created by this mutation. */ @@ -6974,6 +7050,18 @@ export interface CreatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface CreateAppPayload { + clientMutationId?: string | null; + /** The `App` that was created by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface CreateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was created by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} export interface CreateSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was created by this mutation. */ @@ -6986,18 +7074,18 @@ export interface CreateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was created by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} export interface CreateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was created by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface CreateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was created by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface CreateWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was created by this mutation. */ @@ -7027,12 +7115,6 @@ export interface UpdateFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface UpdateViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was updated by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} export interface UpdateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was updated by this mutation. */ @@ -7045,6 +7127,12 @@ export interface UpdateSiteThemePayload { siteTheme?: SiteTheme | null; siteThemeEdge?: SiteThemeEdge | null; } +export interface UpdateViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was updated by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} export interface UpdateViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was updated by this mutation. */ @@ -7153,11 +7241,11 @@ export interface UpdatePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } -export interface UpdateDatabaseSettingPayload { +export interface UpdateCompositeTypePayload { clientMutationId?: string | null; - /** The `DatabaseSetting` that was updated by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; + /** The `CompositeType` that was updated by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; } export interface UpdateEnumPayload { clientMutationId?: string | null; @@ -7171,6 +7259,12 @@ export interface UpdateViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } +export interface UpdateDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was updated by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} export interface UpdateApiSettingPayload { clientMutationId?: string | null; /** The `ApiSetting` that was updated by this mutation. */ @@ -7183,18 +7277,6 @@ export interface UpdateDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface UpdateAppPayload { - clientMutationId?: string | null; - /** The `App` that was updated by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface UpdateSitePayload { - clientMutationId?: string | null; - /** The `Site` that was updated by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} export interface UpdatePrimaryKeyConstraintPayload { clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was updated by this mutation. */ @@ -7231,6 +7313,18 @@ export interface UpdatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface UpdateAppPayload { + clientMutationId?: string | null; + /** The `App` that was updated by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface UpdateSitePayload { + clientMutationId?: string | null; + /** The `Site` that was updated by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} export interface UpdateSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was updated by this mutation. */ @@ -7243,18 +7337,18 @@ export interface UpdateIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface UpdateEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was updated by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} export interface UpdateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was updated by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface UpdateEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was updated by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface UpdateWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was updated by this mutation. */ @@ -7279,12 +7373,6 @@ export interface DeleteFunctionPayload { function?: Function | null; functionEdge?: FunctionEdge | null; } -export interface DeleteViewTablePayload { - clientMutationId?: string | null; - /** The `ViewTable` that was deleted by this mutation. */ - viewTable?: ViewTable | null; - viewTableEdge?: ViewTableEdge | null; -} export interface DeleteApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was deleted by this mutation. */ @@ -7297,6 +7385,12 @@ export interface DeleteSiteThemePayload { siteTheme?: SiteTheme | null; siteThemeEdge?: SiteThemeEdge | null; } +export interface DeleteViewTablePayload { + clientMutationId?: string | null; + /** The `ViewTable` that was deleted by this mutation. */ + viewTable?: ViewTable | null; + viewTableEdge?: ViewTableEdge | null; +} export interface DeleteViewRulePayload { clientMutationId?: string | null; /** The `ViewRule` that was deleted by this mutation. */ @@ -7405,11 +7499,11 @@ export interface DeletePartitionPayload { partition?: Partition | null; partitionEdge?: PartitionEdge | null; } -export interface DeleteDatabaseSettingPayload { +export interface DeleteCompositeTypePayload { clientMutationId?: string | null; - /** The `DatabaseSetting` that was deleted by this mutation. */ - databaseSetting?: DatabaseSetting | null; - databaseSettingEdge?: DatabaseSettingEdge | null; + /** The `CompositeType` that was deleted by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; } export interface DeleteEnumPayload { clientMutationId?: string | null; @@ -7423,6 +7517,12 @@ export interface DeleteViewPayload { view?: View | null; viewEdge?: ViewEdge | null; } +export interface DeleteDatabaseSettingPayload { + clientMutationId?: string | null; + /** The `DatabaseSetting` that was deleted by this mutation. */ + databaseSetting?: DatabaseSetting | null; + databaseSettingEdge?: DatabaseSettingEdge | null; +} export interface DeleteApiSettingPayload { clientMutationId?: string | null; /** The `ApiSetting` that was deleted by this mutation. */ @@ -7435,18 +7535,6 @@ export interface DeleteDatabaseTransferPayload { databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } -export interface DeleteAppPayload { - clientMutationId?: string | null; - /** The `App` that was deleted by this mutation. */ - app?: App | null; - appEdge?: AppEdge | null; -} -export interface DeleteSitePayload { - clientMutationId?: string | null; - /** The `Site` that was deleted by this mutation. */ - site?: Site | null; - siteEdge?: SiteEdge | null; -} export interface DeletePrimaryKeyConstraintPayload { clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ @@ -7483,6 +7571,18 @@ export interface DeletePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } +export interface DeleteAppPayload { + clientMutationId?: string | null; + /** The `App` that was deleted by this mutation. */ + app?: App | null; + appEdge?: AppEdge | null; +} +export interface DeleteSitePayload { + clientMutationId?: string | null; + /** The `Site` that was deleted by this mutation. */ + site?: Site | null; + siteEdge?: SiteEdge | null; +} export interface DeleteSchemaPayload { clientMutationId?: string | null; /** The `Schema` that was deleted by this mutation. */ @@ -7495,18 +7595,18 @@ export interface DeleteIndexPayload { index?: Index | null; indexEdge?: IndexEdge | null; } -export interface DeleteEmbeddingChunkPayload { - clientMutationId?: string | null; - /** The `EmbeddingChunk` that was deleted by this mutation. */ - embeddingChunk?: EmbeddingChunk | null; - embeddingChunkEdge?: EmbeddingChunkEdge | null; -} export interface DeleteForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was deleted by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } +export interface DeleteEmbeddingChunkPayload { + clientMutationId?: string | null; + /** The `EmbeddingChunk` that was deleted by this mutation. */ + embeddingChunk?: EmbeddingChunk | null; + embeddingChunkEdge?: EmbeddingChunkEdge | null; +} export interface DeleteWebauthnSettingPayload { clientMutationId?: string | null; /** The `WebauthnSetting` that was deleted by this mutation. */ @@ -7556,12 +7656,6 @@ export interface PageInfo { /** When paginating forwards, the cursor to continue. */ endCursor?: string | null; } -/** A `ViewTable` edge in the connection. */ -export interface ViewTableEdge { - cursor?: string | null; - /** The `ViewTable` at the end of the edge. */ - node?: ViewTable | null; -} /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; @@ -7574,6 +7668,12 @@ export interface SiteThemeEdge { /** The `SiteTheme` at the end of the edge. */ node?: SiteTheme | null; } +/** A `ViewTable` edge in the connection. */ +export interface ViewTableEdge { + cursor?: string | null; + /** The `ViewTable` at the end of the edge. */ + node?: ViewTable | null; +} /** A `ViewRule` edge in the connection. */ export interface ViewRuleEdge { cursor?: string | null; @@ -7688,17 +7788,11 @@ export interface PartitionEdge { /** The `Partition` at the end of the edge. */ node?: Partition | null; } -/** A `SqlAction` edge in the connection. */ -export interface SqlActionEdge { - cursor?: string | null; - /** The `SqlAction` at the end of the edge. */ - node?: SqlAction | null; -} -/** A `DatabaseSetting` edge in the connection. */ -export interface DatabaseSettingEdge { +/** A `CompositeType` edge in the connection. */ +export interface CompositeTypeEdge { cursor?: string | null; - /** The `DatabaseSetting` at the end of the edge. */ - node?: DatabaseSetting | null; + /** The `CompositeType` at the end of the edge. */ + node?: CompositeType | null; } /** A `Enum` edge in the connection. */ export interface EnumEdge { @@ -7706,12 +7800,24 @@ export interface EnumEdge { /** The `Enum` at the end of the edge. */ node?: Enum | null; } +/** A `SqlAction` edge in the connection. */ +export interface SqlActionEdge { + cursor?: string | null; + /** The `SqlAction` at the end of the edge. */ + node?: SqlAction | null; +} /** A `View` edge in the connection. */ export interface ViewEdge { cursor?: string | null; /** The `View` at the end of the edge. */ node?: View | null; } +/** A `DatabaseSetting` edge in the connection. */ +export interface DatabaseSettingEdge { + cursor?: string | null; + /** The `DatabaseSetting` at the end of the edge. */ + node?: DatabaseSetting | null; +} /** A `ApiSetting` edge in the connection. */ export interface ApiSettingEdge { cursor?: string | null; @@ -7724,18 +7830,6 @@ export interface DatabaseTransferEdge { /** The `DatabaseTransfer` at the end of the edge. */ node?: DatabaseTransfer | null; } -/** A `App` edge in the connection. */ -export interface AppEdge { - cursor?: string | null; - /** The `App` at the end of the edge. */ - node?: App | null; -} -/** A `Site` edge in the connection. */ -export interface SiteEdge { - cursor?: string | null; - /** The `Site` at the end of the edge. */ - node?: Site | null; -} /** A `PrimaryKeyConstraint` edge in the connection. */ export interface PrimaryKeyConstraintEdge { cursor?: string | null; @@ -7772,6 +7866,18 @@ export interface PolicyEdge { /** The `Policy` at the end of the edge. */ node?: Policy | null; } +/** A `App` edge in the connection. */ +export interface AppEdge { + cursor?: string | null; + /** The `App` at the end of the edge. */ + node?: App | null; +} +/** A `Site` edge in the connection. */ +export interface SiteEdge { + cursor?: string | null; + /** The `Site` at the end of the edge. */ + node?: Site | null; +} /** A `Schema` edge in the connection. */ export interface SchemaEdge { cursor?: string | null; @@ -7784,18 +7890,18 @@ export interface IndexEdge { /** The `Index` at the end of the edge. */ node?: Index | 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 `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { cursor?: string | null; /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | 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 `WebauthnSetting` edge in the connection. */ export interface WebauthnSettingEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/api/types.ts b/sdk/constructive-react/src/api/types.ts index 80f613995e..717187b51c 100644 --- a/sdk/constructive-react/src/api/types.ts +++ b/sdk/constructive-react/src/api/types.ts @@ -24,7 +24,6 @@ export interface Schema { description: string | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; isPublic: boolean | null; @@ -40,7 +39,6 @@ export interface Table { description: string | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; useRls: boolean | null; timestamps: boolean | null; @@ -52,9 +50,9 @@ export interface Table { partitionStrategy: string | null; partitionKeyNames: string[] | null; partitionKeyTypes: string[] | null; - inheritsId: string | null; createdAt: string | null; updatedAt: string | null; + inheritsId: string | null; } export interface CheckConstraint { id: string | null; @@ -66,7 +64,6 @@ export interface CheckConstraint { expr: unknown | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -92,7 +89,6 @@ export interface Field { max: number | null; tags: string[] | null; category: ObjectCategory | null; - module: string | null; scope: number | null; createdAt: string | null; updatedAt: string | null; @@ -108,7 +104,6 @@ export interface SpatialRelation { operator: string | null; paramName: string | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -128,7 +123,6 @@ export interface ForeignKeyConstraint { deleteAction: string | null; updateAction: string | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -161,7 +155,6 @@ export interface Index { opClasses: string[] | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -180,7 +173,6 @@ export interface Policy { data: unknown | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -195,7 +187,6 @@ export interface PrimaryKeyConstraint { fieldIds: string[] | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -221,7 +212,6 @@ export interface Trigger { functionName: string | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -237,7 +227,6 @@ export interface UniqueConstraint { type: string | null; fieldIds: string[] | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; createdAt: string | null; @@ -257,12 +246,12 @@ export interface View { isReadOnly: boolean | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; scope: number | null; tags: string[] | null; } export interface ViewTable { id: string | null; + databaseId: string | null; viewId: string | null; tableId: string | null; joinOrder: number | null; @@ -334,7 +323,19 @@ export interface Enum { values: string[] | null; smartTags: unknown | null; category: ObjectCategory | null; - module: string | null; + scope: number | null; + tags: string[] | null; +} +export interface CompositeType { + id: string | null; + databaseId: string | null; + schemaId: string | null; + name: string | null; + label: string | null; + description: string | null; + attributes: unknown | null; + smartTags: unknown | null; + category: ObjectCategory | null; scope: number | null; tags: string[] | null; } diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index 23d34d997f..68a599dfc4 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:** 22 +- **Custom mutations:** 25 **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 069cf4a163..9f6a662440 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -93,8 +93,11 @@ function App() { | `useProvisionNewUserMutation` | Mutation | provisionNewUser | | `useResetPasswordMutation` | Mutation | resetPassword | | `useSignInCrossOriginMutation` | Mutation | signInCrossOrigin | +| `useSignInSmsOtpMutation` | Mutation | signInSmsOtp | +| `useSignUpSmsMutation` | Mutation | signUpSms | | `useSignUpMutation` | Mutation | signUp | | `useSignInMutation` | Mutation | signIn | +| `useLinkIdentityMutation` | Mutation | linkIdentity | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateApiKeyMutation` | Mutation | createApiKey | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | @@ -485,6 +488,28 @@ signInCrossOrigin |----------|------| | `input` | SignInCrossOriginInput (required) | +### `useSignInSmsOtpMutation` + +signInSmsOtp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInSmsOtpInput (required) | + +### `useSignUpSmsMutation` + +signUpSms + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpSmsInput (required) | + ### `useSignUpMutation` signUp @@ -507,6 +532,17 @@ signIn |----------|------| | `input` | SignInInput (required) | +### `useLinkIdentityMutation` + +linkIdentity + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | LinkIdentityInput (required) | + ### `useExtendTokenExpiresMutation` extendTokenExpires diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index e41279fe22..a8ccdee7d7 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -160,10 +160,22 @@ export const customMutationKeys = { identifier ? (['mutation', 'signInCrossOrigin', identifier] as const) : (['mutation', 'signInCrossOrigin'] as const), + /** Mutation key for signInSmsOtp */ signInSmsOtp: (identifier?: string) => + identifier + ? (['mutation', 'signInSmsOtp', identifier] as const) + : (['mutation', 'signInSmsOtp'] as const), + /** Mutation key for signUpSms */ signUpSms: (identifier?: string) => + identifier + ? (['mutation', 'signUpSms', identifier] as const) + : (['mutation', 'signUpSms'] as const), /** Mutation key for signUp */ signUp: (identifier?: string) => identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), /** Mutation key for signIn */ signIn: (identifier?: string) => identifier ? (['mutation', 'signIn', identifier] as const) : (['mutation', 'signIn'] as const), + /** Mutation key for linkIdentity */ linkIdentity: (identifier?: string) => + identifier + ? (['mutation', 'linkIdentity', identifier] as const) + : (['mutation', 'linkIdentity'] as const), /** Mutation key for extendTokenExpires */ extendTokenExpires: (identifier?: string) => identifier ? (['mutation', 'extendTokenExpires', 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 ab1860e3af..91e5cfdec7 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -40,8 +40,11 @@ export * from './useVerifyEmailMutation'; export * from './useProvisionNewUserMutation'; export * from './useResetPasswordMutation'; export * from './useSignInCrossOriginMutation'; +export * from './useSignInSmsOtpMutation'; +export * from './useSignUpSmsMutation'; export * from './useSignUpMutation'; export * from './useSignInMutation'; +export * from './useLinkIdentityMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateApiKeyMutation'; export * from './useRequestCrossOriginTokenMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useLinkIdentityMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useLinkIdentityMutation.ts new file mode 100644 index 0000000000..32d3ab0da7 --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useLinkIdentityMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for linkIdentity + * @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 { LinkIdentityVariables } from '../../orm/mutation'; +import type { LinkIdentityPayloadSelect, LinkIdentityPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { LinkIdentityVariables } from '../../orm/mutation'; +export type { LinkIdentityPayloadSelect } from '../../orm/input-types'; +export function useLinkIdentityMutation( + params: { + selection: { + fields: S & LinkIdentityPayloadSelect; + } & HookStrictSelect, LinkIdentityPayloadSelect>; + } & Omit< + UseMutationOptions< + { + linkIdentity: InferSelectResult | null; + }, + Error, + LinkIdentityVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + linkIdentity: InferSelectResult | null; + }, + Error, + LinkIdentityVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.linkIdentity(), + mutationFn: (variables: LinkIdentityVariables) => + getClient() + .mutation.linkIdentity(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignInSmsOtpMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignInSmsOtpMutation.ts new file mode 100644 index 0000000000..8e78c47f2a --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignInSmsOtpMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signInSmsOtp + * @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 { SignInSmsOtpVariables } from '../../orm/mutation'; +import type { SignInSmsOtpPayloadSelect, SignInSmsOtpPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignInSmsOtpVariables } from '../../orm/mutation'; +export type { SignInSmsOtpPayloadSelect } from '../../orm/input-types'; +export function useSignInSmsOtpMutation( + params: { + selection: { + fields: S & SignInSmsOtpPayloadSelect; + } & HookStrictSelect, SignInSmsOtpPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signInSmsOtp: InferSelectResult | null; + }, + Error, + SignInSmsOtpVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signInSmsOtp: InferSelectResult | null; + }, + Error, + SignInSmsOtpVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signInSmsOtp(), + mutationFn: (variables: SignInSmsOtpVariables) => + getClient() + .mutation.signInSmsOtp(variables, { + select: args.select, + } as { + select: S; + } & StrictSelect) + .unwrap(), + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useSignUpSmsMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpSmsMutation.ts new file mode 100644 index 0000000000..f3c96f71ac --- /dev/null +++ b/sdk/constructive-react/src/auth/hooks/mutations/useSignUpSmsMutation.ts @@ -0,0 +1,55 @@ +/** + * Custom mutation hook for signUpSms + * @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 { SignUpSmsVariables } from '../../orm/mutation'; +import type { SignUpSmsPayloadSelect, SignUpSmsPayload } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; +export type { SignUpSmsVariables } from '../../orm/mutation'; +export type { SignUpSmsPayloadSelect } from '../../orm/input-types'; +export function useSignUpSmsMutation( + params: { + selection: { + fields: S & SignUpSmsPayloadSelect; + } & HookStrictSelect, SignUpSmsPayloadSelect>; + } & Omit< + UseMutationOptions< + { + signUpSms: InferSelectResult | null; + }, + Error, + SignUpSmsVariables + >, + 'mutationFn' + > +): UseMutationResult< + { + signUpSms: InferSelectResult | null; + }, + Error, + SignUpSmsVariables +> { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + return useMutation({ + mutationKey: customMutationKeys.signUpSms(), + mutationFn: (variables: SignUpSmsVariables) => + getClient() + .mutation.signUpSms(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 4a4fbb5278..68bf0ce72d 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -632,6 +632,36 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); ``` +### `db.mutation.signInSmsOtp` + +signInSmsOtp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInSmsOtpInput (required) | + +```typescript +const result = await db.mutation.signInSmsOtp({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + +### `db.mutation.signUpSms` + +signUpSms + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpSmsInput (required) | + +```typescript +const result = await db.mutation.signUpSms({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + ### `db.mutation.signUp` signUp @@ -662,6 +692,21 @@ signIn const result = await db.mutation.signIn({ input: '' }).execute(); ``` +### `db.mutation.linkIdentity` + +linkIdentity + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | LinkIdentityInput (required) | + +```typescript +const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index d1926edee2..8e73cfffb4 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -362,7 +362,7 @@ export interface User { 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -1306,6 +1306,22 @@ export interface SignInCrossOriginInput { token?: string; credentialKind?: string; } +export interface SignInSmsOtpInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} +export interface SignUpSmsInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -1324,6 +1340,12 @@ export interface SignInInput { csrfToken?: string; deviceToken?: string; } +export interface LinkIdentityInput { + clientMutationId?: string; + service: string; + identifier: string; + details?: Record; +} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -1698,6 +1720,132 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** 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; +} +/** An input for mutations affecting `PhoneNumber` */ +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + /** 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?: string; + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAddress` */ +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address: string; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean; + /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** An input for mutations affecting `AuditLogAuth` */ +export interface AuditLogAuthInput { + createdAt?: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ + 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; +} +/** An input for mutations affecting `IdentityProvider` */ +export interface IdentityProviderInput { + slug?: string; + kind?: string; + displayName?: string; + enabled?: boolean; + isBuiltIn?: boolean; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} +/** An input for mutations affecting `UserConnectedAccount` */ +export interface UserConnectedAccountInput { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `User` */ +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + createdAt?: string; + updatedAt?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -2345,6 +2493,26 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInSmsOtpPayload { + clientMutationId?: string | null; + result?: SignInSmsOtpRecord | null; +} +export type SignInSmsOtpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInSmsOtpRecordSelect; + }; +}; +export interface SignUpSmsPayload { + clientMutationId?: string | null; + result?: SignUpSmsRecord | null; +} +export type SignUpSmsPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpSmsRecordSelect; + }; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -2365,6 +2533,14 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; +export interface LinkIdentityPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type LinkIdentityPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -2782,6 +2958,26 @@ export type SignInCrossOriginRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +export interface SignInSmsOtpRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignInSmsOtpRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; +export interface SignUpSmsRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignUpSmsRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; export interface SignUpRecord { id?: string | null; userId?: string | null; diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index 14c035b5d4..d8864374dd 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -21,8 +21,11 @@ import type { ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, + SignInSmsOtpInput, + SignUpSmsInput, SignUpInput, SignInInput, + LinkIdentityInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, @@ -43,8 +46,11 @@ import type { ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, + SignInSmsOtpPayload, + SignUpSmsPayload, SignUpPayload, SignInPayload, + LinkIdentityPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, @@ -65,8 +71,11 @@ import type { ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, + SignInSmsOtpPayloadSelect, + SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, + LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, @@ -117,12 +126,21 @@ export interface ResetPasswordVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInSmsOtpVariables { + input: SignInSmsOtpInput; +} +export interface SignUpSmsVariables { + input: SignUpSmsInput; +} export interface SignUpVariables { input: SignUpInput; } export interface SignInVariables { input: SignInInput; } +export interface LinkIdentityVariables { + input: LinkIdentityInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -556,6 +574,64 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInSmsOtp: ( + args: SignInSmsOtpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInSmsOtp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInSmsOtp', + fieldName: 'signInSmsOtp', + ...buildCustomDocument( + 'mutation', + 'SignInSmsOtp', + 'signInSmsOtp', + options.select, + args, + [ + { + name: 'input', + type: 'SignInSmsOtpInput!', + }, + ], + connectionFieldsMap, + 'SignInSmsOtpPayload' + ), + }), + signUpSms: ( + args: SignUpSmsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpSms: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpSms', + fieldName: 'signUpSms', + ...buildCustomDocument( + 'mutation', + 'SignUpSms', + 'signUpSms', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpSmsInput!', + }, + ], + connectionFieldsMap, + 'SignUpSmsPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -614,6 +690,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInPayload' ), }), + linkIdentity: ( + args: LinkIdentityVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + linkIdentity: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'LinkIdentity', + fieldName: 'linkIdentity', + ...buildCustomDocument( + 'mutation', + 'LinkIdentity', + 'linkIdentity', + options.select, + args, + [ + { + name: 'input', + type: 'LinkIdentityInput!', + }, + ], + connectionFieldsMap, + 'LinkIdentityPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 7468920c6f..7f276f948a 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -889,6 +889,22 @@ export interface SignInCrossOriginInput { token?: string; credentialKind?: string; } +export interface SignInSmsOtpInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} +export interface SignUpSmsInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -907,6 +923,12 @@ export interface SignInInput { csrfToken?: string; deviceToken?: string; } +export interface LinkIdentityInput { + clientMutationId?: string; + service: string; + identifier: string; + details?: unknown; +} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -975,6 +997,22 @@ export interface RoleTypeInput { id: number; name: string; } +export interface CreateUserConnectedAccountInput { + clientMutationId?: string; + /** The `UserConnectedAccount` to be created by this mutation. */ + userConnectedAccount: UserConnectedAccountInput; +} +/** An input for mutations affecting `UserConnectedAccount` */ +export interface UserConnectedAccountInput { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: unknown; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface CreateCryptoAddressInput { clientMutationId?: string; /** The `CryptoAddress` to be created by this mutation. */ @@ -1040,22 +1078,6 @@ export interface AuditLogAuthInput { /** Whether the authentication attempt succeeded */ success: boolean; } -export interface CreateUserConnectedAccountInput { - clientMutationId?: string; - /** The `UserConnectedAccount` to be created by this mutation. */ - userConnectedAccount: UserConnectedAccountInput; -} -/** An input for mutations affecting `UserConnectedAccount` */ -export interface UserConnectedAccountInput { - id?: string; - ownerId?: string; - service?: string; - identifier?: string; - details?: unknown; - isVerified?: boolean; - createdAt?: string; - updatedAt?: string; -} export interface CreateEmailInput { clientMutationId?: string; /** The `Email` to be created by this mutation. */ @@ -1329,6 +1351,13 @@ export interface RoleTypeConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `UserConnectedAccount` values. */ +export interface UserConnectedAccountConnection { + nodes: UserConnectedAccount[]; + edges: UserConnectedAccountEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAddress` values. */ export interface CryptoAddressConnection { nodes: CryptoAddress[]; @@ -1350,13 +1379,6 @@ export interface AuditLogAuthConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `UserConnectedAccount` values. */ -export interface UserConnectedAccountConnection { - nodes: UserConnectedAccount[]; - edges: UserConnectedAccountEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `Email` values. */ export interface EmailConnection { nodes: Email[]; @@ -1436,6 +1458,14 @@ export interface SignInCrossOriginPayload { clientMutationId?: string | null; result?: SignInCrossOriginRecord | null; } +export interface SignInSmsOtpPayload { + clientMutationId?: string | null; + result?: SignInSmsOtpRecord | null; +} +export interface SignUpSmsPayload { + clientMutationId?: string | null; + result?: SignUpSmsRecord | null; +} export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -1444,6 +1474,10 @@ export interface SignInPayload { clientMutationId?: string | null; result?: SignInRecord | null; } +export interface LinkIdentityPayload { + clientMutationId?: string | null; + result?: boolean | null; +} export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -1474,6 +1508,11 @@ export interface CreateRoleTypePayload { roleType?: RoleType | null; roleTypeEdge?: RoleTypeEdge | null; } +export interface CreateUserConnectedAccountPayload { + clientMutationId?: string | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; +} export interface CreateCryptoAddressPayload { clientMutationId?: string | null; /** The `CryptoAddress` that was created by this mutation. */ @@ -1492,11 +1531,6 @@ export interface CreateAuditLogAuthPayload { auditLogAuth?: AuditLogAuth | null; auditLogAuthEdge?: AuditLogAuthEdge | null; } -export interface CreateUserConnectedAccountPayload { - clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; -} export interface CreateEmailPayload { clientMutationId?: string | null; /** The `Email` that was created by this mutation. */ @@ -1636,6 +1670,12 @@ export interface RoleTypeEdge { /** The `RoleType` at the end of the edge. */ node?: RoleType | null; } +/** A `UserConnectedAccount` edge in the connection. */ +export interface UserConnectedAccountEdge { + cursor?: string | null; + /** The `UserConnectedAccount` at the end of the edge. */ + node?: UserConnectedAccount | null; +} /** A `CryptoAddress` edge in the connection. */ export interface CryptoAddressEdge { cursor?: string | null; @@ -1654,12 +1694,6 @@ export interface AuditLogAuthEdge { /** The `AuditLogAuth` at the end of the edge. */ node?: AuditLogAuth | null; } -/** A `UserConnectedAccount` edge in the connection. */ -export interface UserConnectedAccountEdge { - cursor?: string | null; - /** The `UserConnectedAccount` at the end of the edge. */ - node?: UserConnectedAccount | null; -} /** A `Email` edge in the connection. */ export interface EmailEdge { cursor?: string | null; @@ -1700,6 +1734,16 @@ export interface SignInCrossOriginRecord { isVerified?: boolean | null; totpEnabled?: boolean | null; } +export interface SignInSmsOtpRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export interface SignUpSmsRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} export interface SignUpRecord { id?: string | null; userId?: string | null; diff --git a/sdk/constructive-react/src/modules/README.md b/sdk/constructive-react/src/modules/README.md index 446d9eb24d..8aff8e0a49 100644 --- a/sdk/constructive-react/src/modules/README.md +++ b/sdk/constructive-react/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 56 +- **Tables:** 57 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-react/src/modules/hooks/README.md b/sdk/constructive-react/src/modules/hooks/README.md index 934e0e879f..21ffc56316 100644 --- a/sdk/constructive-react/src/modules/hooks/README.md +++ b/sdk/constructive-react/src/modules/hooks/README.md @@ -127,6 +127,11 @@ function App() { | `useCreateCryptoAddressesModuleMutation` | Mutation | Create a cryptoAddressesModule | | `useUpdateCryptoAddressesModuleMutation` | Mutation | Update a cryptoAddressesModule | | `useDeleteCryptoAddressesModuleMutation` | Mutation | Delete a cryptoAddressesModule | +| `useDenormalizedTableFieldsQuery` | Query | List all denormalizedTableFields | +| `useDenormalizedTableFieldQuery` | Query | Get one denormalizedTableField | +| `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | +| `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | +| `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | | `useIdentityProvidersModulesQuery` | Query | Entity-aware config row for the identity_providers_module, which provisions a per-database identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. The scope column determines which config_secrets_module table the rotate proc targets @@ -177,11 +182,6 @@ function App() { scope=app → per-database flat, in-app admin manages scope=platform → per-database, platform admin manages (generate:constructive) scope=org → per-org tenant, org admin manages | -| `useDenormalizedTableFieldsQuery` | Query | List all denormalizedTableFields | -| `useDenormalizedTableFieldQuery` | Query | Get one denormalizedTableField | -| `useCreateDenormalizedTableFieldMutation` | Mutation | Create a denormalizedTableField | -| `useUpdateDenormalizedTableFieldMutation` | Mutation | Update a denormalizedTableField | -| `useDeleteDenormalizedTableFieldMutation` | Mutation | Delete a denormalizedTableField | | `useRlsModulesQuery` | Query | List all rlsModules | | `useRlsModuleQuery` | Query | Get one rlsModule | | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | @@ -207,31 +207,16 @@ function App() { | `useCreateCryptoAuthModuleMutation` | Mutation | Create a cryptoAuthModule | | `useUpdateCryptoAuthModuleMutation` | Mutation | Update a cryptoAuthModule | | `useDeleteCryptoAuthModuleMutation` | Mutation | Delete a cryptoAuthModule | -| `useRateLimitMetersModulesQuery` | Query | List all rateLimitMetersModules | -| `useRateLimitMetersModuleQuery` | Query | Get one rateLimitMetersModule | -| `useCreateRateLimitMetersModuleMutation` | Mutation | Create a rateLimitMetersModule | -| `useUpdateRateLimitMetersModuleMutation` | Mutation | Update a rateLimitMetersModule | -| `useDeleteRateLimitMetersModuleMutation` | Mutation | Delete a rateLimitMetersModule | | `useSessionsModulesQuery` | Query | List all sessionsModules | | `useSessionsModuleQuery` | Query | Get one sessionsModule | | `useCreateSessionsModuleMutation` | Mutation | Create a sessionsModule | | `useUpdateSessionsModuleMutation` | Mutation | Update a sessionsModule | | `useDeleteSessionsModuleMutation` | Mutation | Delete a sessionsModule | -| `useConfigSecretsModulesQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useConfigSecretsModuleQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useCreateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useUpdateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | -| `useDeleteConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useUpdateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | +| `useDeleteSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | | `useMerkleStoreModulesQuery` | Query | List all merkleStoreModules | | `useMerkleStoreModuleQuery` | Query | Get one merkleStoreModule | | `useCreateMerkleStoreModuleMutation` | Mutation | Create a merkleStoreModule | @@ -242,26 +227,31 @@ function App() { | `useCreateGraphModuleMutation` | Mutation | Create a graphModule | | `useUpdateGraphModuleMutation` | Mutation | Update a graphModule | | `useDeleteGraphModuleMutation` | Mutation | Delete a graphModule | -| `useSecureTableProvisionsQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useSecureTableProvisionQuery` | Query | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useCreateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useUpdateSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useDeleteSecureTableProvisionMutation` | Mutation | Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. | -| `useInvitesModulesQuery` | Query | List all invitesModules | -| `useInvitesModuleQuery` | Query | Get one invitesModule | -| `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | -| `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | -| `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | | `useDatabaseProvisionModulesQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useDatabaseProvisionModuleQuery` | Query | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useCreateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useUpdateDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | | `useDeleteDatabaseProvisionModuleMutation` | Mutation | Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. | -| `useNamespaceModulesQuery` | Query | List all namespaceModules | -| `useNamespaceModuleQuery` | Query | Get one namespaceModule | -| `useCreateNamespaceModuleMutation` | Mutation | Create a namespaceModule | -| `useUpdateNamespaceModuleMutation` | Mutation | Update a namespaceModule | -| `useDeleteNamespaceModuleMutation` | Mutation | Delete a namespaceModule | +| `useConfigSecretsModulesQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useConfigSecretsModuleQuery` | Query | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useCreateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useUpdateConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useDeleteConfigSecretsModuleMutation` | Mutation | Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. | +| `useRateLimitMetersModulesQuery` | Query | List all rateLimitMetersModules | +| `useRateLimitMetersModuleQuery` | Query | Get one rateLimitMetersModule | +| `useCreateRateLimitMetersModuleMutation` | Mutation | Create a rateLimitMetersModule | +| `useUpdateRateLimitMetersModuleMutation` | Mutation | Update a rateLimitMetersModule | +| `useDeleteRateLimitMetersModuleMutation` | Mutation | Delete a rateLimitMetersModule | | `useRealtimeModulesQuery` | Query | List all realtimeModules | | `useRealtimeModuleQuery` | Query | Get one realtimeModule | | `useCreateRealtimeModuleMutation` | Mutation | Create a realtimeModule | @@ -272,6 +262,26 @@ function App() { | `useCreateWebauthnAuthModuleMutation` | Mutation | Create a webauthnAuthModule | | `useUpdateWebauthnAuthModuleMutation` | Mutation | Update a webauthnAuthModule | | `useDeleteWebauthnAuthModuleMutation` | Mutation | Delete a webauthnAuthModule | +| `useFunctionInvocationModulesQuery` | Query | List all functionInvocationModules | +| `useFunctionInvocationModuleQuery` | Query | Get one functionInvocationModule | +| `useCreateFunctionInvocationModuleMutation` | Mutation | Create a functionInvocationModule | +| `useUpdateFunctionInvocationModuleMutation` | Mutation | Update a functionInvocationModule | +| `useDeleteFunctionInvocationModuleMutation` | Mutation | Delete a functionInvocationModule | +| `useFunctionModulesQuery` | Query | List all functionModules | +| `useFunctionModuleQuery` | Query | Get one functionModule | +| `useCreateFunctionModuleMutation` | Mutation | Create a functionModule | +| `useUpdateFunctionModuleMutation` | Mutation | Update a functionModule | +| `useDeleteFunctionModuleMutation` | Mutation | Delete a functionModule | +| `useInvitesModulesQuery` | Query | List all invitesModules | +| `useInvitesModuleQuery` | Query | Get one invitesModule | +| `useCreateInvitesModuleMutation` | Mutation | Create a invitesModule | +| `useUpdateInvitesModuleMutation` | Mutation | Update a invitesModule | +| `useDeleteInvitesModuleMutation` | Mutation | Delete a invitesModule | +| `useNamespaceModulesQuery` | Query | List all namespaceModules | +| `useNamespaceModuleQuery` | Query | Get one namespaceModule | +| `useCreateNamespaceModuleMutation` | Mutation | Create a namespaceModule | +| `useUpdateNamespaceModuleMutation` | Mutation | Update a namespaceModule | +| `useDeleteNamespaceModuleMutation` | Mutation | Delete a namespaceModule | | `useComputeLogModulesQuery` | Query | List all computeLogModules | | `useComputeLogModuleQuery` | Query | Get one computeLogModule | | `useCreateComputeLogModuleMutation` | Mutation | Create a computeLogModule | @@ -292,46 +302,46 @@ function App() { | `useCreateTransferLogModuleMutation` | Mutation | Create a transferLogModule | | `useUpdateTransferLogModuleMutation` | Mutation | Update a transferLogModule | | `useDeleteTransferLogModuleMutation` | Mutation | Delete a transferLogModule | -| `useDbUsageModulesQuery` | Query | List all dbUsageModules | -| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | -| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | -| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | -| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | -| `useNotificationsModulesQuery` | Query | List all notificationsModules | -| `useNotificationsModuleQuery` | Query | Get one notificationsModule | -| `useCreateNotificationsModuleMutation` | Mutation | Create a notificationsModule | -| `useUpdateNotificationsModuleMutation` | Mutation | Update a notificationsModule | -| `useDeleteNotificationsModuleMutation` | Mutation | Delete a notificationsModule | | `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 | -| `useHierarchyModulesQuery` | Query | List all hierarchyModules | -| `useHierarchyModuleQuery` | Query | Get one hierarchyModule | -| `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | -| `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | -| `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | -| `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 | | `useBillingProviderModulesQuery` | Query | List all billingProviderModules | | `useBillingProviderModuleQuery` | Query | Get one billingProviderModule | | `useCreateBillingProviderModuleMutation` | Mutation | Create a billingProviderModule | | `useUpdateBillingProviderModuleMutation` | Mutation | Update a billingProviderModule | | `useDeleteBillingProviderModuleMutation` | Mutation | Delete a billingProviderModule | -| `useProfilesModulesQuery` | Query | List all profilesModules | -| `useProfilesModuleQuery` | Query | Get one profilesModule | -| `useCreateProfilesModuleMutation` | Mutation | Create a profilesModule | -| `useUpdateProfilesModuleMutation` | Mutation | Update a profilesModule | -| `useDeleteProfilesModuleMutation` | Mutation | Delete a profilesModule | +| `useDbUsageModulesQuery` | Query | List all dbUsageModules | +| `useDbUsageModuleQuery` | Query | Get one dbUsageModule | +| `useCreateDbUsageModuleMutation` | Mutation | Create a dbUsageModule | +| `useUpdateDbUsageModuleMutation` | Mutation | Update a dbUsageModule | +| `useDeleteDbUsageModuleMutation` | Mutation | Delete a dbUsageModule | +| `useHierarchyModulesQuery` | Query | List all hierarchyModules | +| `useHierarchyModuleQuery` | Query | Get one hierarchyModule | +| `useCreateHierarchyModuleMutation` | Mutation | Create a hierarchyModule | +| `useUpdateHierarchyModuleMutation` | Mutation | Update a hierarchyModule | +| `useDeleteHierarchyModuleMutation` | Mutation | Delete a hierarchyModule | | `usePermissionsModulesQuery` | Query | List all permissionsModules | | `usePermissionsModuleQuery` | Query | Get one permissionsModule | | `useCreatePermissionsModuleMutation` | Mutation | Create a permissionsModule | | `useUpdatePermissionsModuleMutation` | Mutation | Update a permissionsModule | | `useDeletePermissionsModuleMutation` | Mutation | Delete a permissionsModule | +| `useNotificationsModulesQuery` | Query | List all notificationsModules | +| `useNotificationsModuleQuery` | Query | Get one notificationsModule | +| `useCreateNotificationsModuleMutation` | Mutation | Create a notificationsModule | +| `useUpdateNotificationsModuleMutation` | Mutation | Update a notificationsModule | +| `useDeleteNotificationsModuleMutation` | Mutation | Delete a notificationsModule | +| `useProfilesModulesQuery` | Query | List all profilesModules | +| `useProfilesModuleQuery` | Query | Get one profilesModule | +| `useCreateProfilesModuleMutation` | Mutation | Create a profilesModule | +| `useUpdateProfilesModuleMutation` | Mutation | Update a profilesModule | +| `useDeleteProfilesModuleMutation` | Mutation | Delete a profilesModule | +| `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 | | `useRelationProvisionsQuery` | Query | Provisions relational structure between tables. Supports four relation types: - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. @@ -372,11 +382,6 @@ function App() { This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. | -| `useFunctionModulesQuery` | Query | List all functionModules | -| `useFunctionModuleQuery` | Query | Get one functionModule | -| `useCreateFunctionModuleMutation` | Mutation | Create a functionModule | -| `useUpdateFunctionModuleMutation` | Mutation | Update a functionModule | -| `useDeleteFunctionModuleMutation` | Mutation | Delete a functionModule | | `useUserAuthModulesQuery` | Query | List all userAuthModules | | `useUserAuthModuleQuery` | Query | Get one userAuthModule | | `useCreateUserAuthModuleMutation` | Mutation | Create a userAuthModule | @@ -397,16 +402,6 @@ function App() { | `useCreateMembershipsModuleMutation` | Mutation | Create a membershipsModule | | `useUpdateMembershipsModuleMutation` | Mutation | Update a membershipsModule | | `useDeleteMembershipsModuleMutation` | Mutation | Delete a membershipsModule | -| `useStorageModulesQuery` | Query | List all storageModules | -| `useStorageModuleQuery` | Query | Get one storageModule | -| `useCreateStorageModuleMutation` | Mutation | Create a storageModule | -| `useUpdateStorageModuleMutation` | Mutation | Update a storageModule | -| `useDeleteStorageModuleMutation` | Mutation | Delete a storageModule | -| `useEventsModulesQuery` | Query | List all eventsModules | -| `useEventsModuleQuery` | Query | Get one eventsModule | -| `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | -| `useUpdateEventsModuleMutation` | Mutation | Update a eventsModule | -| `useDeleteEventsModuleMutation` | Mutation | Delete a eventsModule | | `useEntityTypeProvisionsQuery` | Query | Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped @@ -447,6 +442,16 @@ function App() { Set table_provision to a single jsonb object (using the same shape as provision_table() / blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true as an escape hatch to apply zero policies. | +| `useStorageModulesQuery` | Query | List all storageModules | +| `useStorageModuleQuery` | Query | Get one storageModule | +| `useCreateStorageModuleMutation` | Mutation | Create a storageModule | +| `useUpdateStorageModuleMutation` | Mutation | Update a storageModule | +| `useDeleteStorageModuleMutation` | Mutation | Delete a storageModule | +| `useEventsModulesQuery` | Query | List all eventsModules | +| `useEventsModuleQuery` | Query | Get one eventsModule | +| `useCreateEventsModuleMutation` | Mutation | Create a eventsModule | +| `useUpdateEventsModuleMutation` | Mutation | Update a eventsModule | +| `useDeleteEventsModuleMutation` | Mutation | Delete a eventsModule | | `useResolveBlueprintFieldQuery` | Query | 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. | | `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. | | `useConstructBlueprintMutation` | Mutation | Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Eight phases: (0) entity_type_provision for each membership_type entry — provisions entity tables, membership modules, and security. When a prefix already exists (e.g., 'org'), the entry extends the existing entity type instead of creating a new one; if a storage[] key is present, it provisions entity-scoped storage for that type. (0.5) scope-based storage: each storage[] entry has an optional scope ('app' or 'org' only). App-scoped storage seeds buckets at migration time. Org-scoped storage resolves the org membership type, creates org_buckets/org_files with owner_id, and seeds buckets per-entity via an AFTER INSERT trigger on the users table. When function_module is installed, a private functions bucket is auto-injected into org-scoped or entity-scoped storage entries. (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints/check_constraints are deferred). After provisioning, optional smart_tags (jsonb object) on the table entry are applied via metaschema.append_table_smart_tags(), and optional smart_tags on individual field entries are applied via metaschema.append_field_smart_tags(). (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, (6) provision_check_constraint() for top-level + deferred check constraints, (7) seed achievements from definition.achievements[] — resolves events_module by entity_prefix and creates INSERT actions for levels, level_requirements, and achievement_rewards tables. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level entries are deferred to phases 3-6 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure. | @@ -822,46 +827,46 @@ const { mutate: create } = useCreateCryptoAddressesModuleMutation({ create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', ownerTableId: '', tableName: '', cryptoNetwork: '', apiName: '', privateApiName: '' }); ``` -### IdentityProvidersModule +### DenormalizedTableField ```typescript -// List all identityProvidersModules -const { data, isLoading } = useIdentityProvidersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, +// List all denormalizedTableFields +const { data, isLoading } = useDenormalizedTableFieldsQuery({ + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, }); -// Get one identityProvidersModule -const { data: item } = useIdentityProvidersModuleQuery({ +// Get one denormalizedTableField +const { data: item } = useDenormalizedTableFieldQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, + selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, }); -// Create a identityProvidersModule -const { mutate: create } = useCreateIdentityProvidersModuleMutation({ +// Create a denormalizedTableField +const { mutate: create } = useCreateDenormalizedTableFieldMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); +create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); ``` -### DenormalizedTableField +### IdentityProvidersModule ```typescript -// List all denormalizedTableFields -const { data, isLoading } = useDenormalizedTableFieldsQuery({ - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, +// List all identityProvidersModules +const { data, isLoading } = useIdentityProvidersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Get one denormalizedTableField -const { data: item } = useDenormalizedTableFieldQuery({ +// Get one identityProvidersModule +const { data: item } = useIdentityProvidersModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }, }); -// Create a denormalizedTableField -const { mutate: create } = useCreateDenormalizedTableFieldMutation({ +// Create a identityProvidersModule +const { mutate: create } = useCreateIdentityProvidersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }); ``` ### RlsModule @@ -969,27 +974,6 @@ const { mutate: create } = useCreateCryptoAuthModuleMutation({ create({ databaseId: '', schemaId: '', usersTableId: '', secretsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', addressesTableId: '', userField: '', cryptoNetwork: '', signInRequestChallenge: '', signInRecordFailure: '', signUpWithKey: '', signInWithChallenge: '' }); ``` -### RateLimitMetersModule - -```typescript -// List all rateLimitMetersModules -const { data, isLoading } = useRateLimitMetersModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, -}); - -// Get one rateLimitMetersModule -const { data: item } = useRateLimitMetersModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }, -}); - -// Create a rateLimitMetersModule -const { mutate: create } = useCreateRateLimitMetersModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }); -``` - ### SessionsModule ```typescript @@ -1011,25 +995,25 @@ const { mutate: create } = useCreateSessionsModuleMutation({ create({ databaseId: '', schemaId: '', sessionsTableId: '', sessionCredentialsTableId: '', authSettingsTableId: '', usersTableId: '', sessionsDefaultExpiration: '', sessionsTable: '', sessionCredentialsTable: '', authSettingsTable: '' }); ``` -### ConfigSecretsModule +### SecureTableProvision ```typescript -// List all configSecretsModules -const { data, isLoading } = useConfigSecretsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, +// List all secureTableProvisions +const { data, isLoading } = useSecureTableProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, }); -// Get one configSecretsModule -const { data: item } = useConfigSecretsModuleQuery({ +// Get one secureTableProvision +const { data: item } = useSecureTableProvisionQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, }); -// Create a configSecretsModule -const { mutate: create } = useCreateConfigSecretsModuleMutation({ +// Create a secureTableProvision +const { mutate: create } = useCreateSecureTableProvisionMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); +create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); ``` ### MerkleStoreModule @@ -1037,20 +1021,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ta ```typescript // List all merkleStoreModules const { data, isLoading } = useMerkleStoreModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }, }); // Get one merkleStoreModule const { data: item } = useMerkleStoreModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }, }); // Create a merkleStoreModule const { mutate: create } = useCreateMerkleStoreModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }); ``` ### GraphModule @@ -1058,104 +1042,83 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pu ```typescript // List all graphModules const { data, isLoading } = useGraphModulesQuery({ - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); // Get one graphModule const { data: item } = useGraphModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }, }); // Create a graphModule const { mutate: create } = useCreateGraphModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }); +create({ databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); ``` -### SecureTableProvision - -```typescript -// List all secureTableProvisions -const { data, isLoading } = useSecureTableProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, -}); - -// Get one secureTableProvision -const { data: item } = useSecureTableProvisionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }, -}); - -// Create a secureTableProvision -const { mutate: create } = useCreateSecureTableProvisionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }); -``` - -### InvitesModule +### DatabaseProvisionModule ```typescript -// List all invitesModules -const { data, isLoading } = useInvitesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, +// List all databaseProvisionModules +const { data, isLoading } = useDatabaseProvisionModulesQuery({ + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, }); -// Get one invitesModule -const { data: item } = useInvitesModuleQuery({ +// Get one databaseProvisionModule +const { data: item } = useDatabaseProvisionModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, }); -// Create a invitesModule -const { mutate: create } = useCreateInvitesModuleMutation({ +// Create a databaseProvisionModule +const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); ``` -### DatabaseProvisionModule +### ConfigSecretsModule ```typescript -// List all databaseProvisionModules -const { data, isLoading } = useDatabaseProvisionModulesQuery({ - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, +// List all configSecretsModules +const { data, isLoading } = useConfigSecretsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, }); -// Get one databaseProvisionModule -const { data: item } = useDatabaseProvisionModuleQuery({ +// Get one configSecretsModule +const { data: item } = useConfigSecretsModuleQuery({ id: '', - selection: { fields: { id: true, databaseName: true, ownerId: true, subdomain: true, domain: true, modules: true, options: true, bootstrapUser: true, status: true, errorMessage: true, databaseId: true, createdAt: true, updatedAt: true, completedAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }, }); -// Create a databaseProvisionModule -const { mutate: create } = useCreateDatabaseProvisionModuleMutation({ +// Create a configSecretsModule +const { mutate: create } = useCreateConfigSecretsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseName: '', ownerId: '', subdomain: '', domain: '', modules: '', options: '', bootstrapUser: '', status: '', errorMessage: '', databaseId: '', completedAt: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }); ``` -### NamespaceModule +### RateLimitMetersModule ```typescript -// List all namespaceModules -const { data, isLoading } = useNamespaceModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, +// List all rateLimitMetersModules +const { data, isLoading } = useRateLimitMetersModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Get one namespaceModule -const { data: item } = useNamespaceModuleQuery({ +// Get one rateLimitMetersModule +const { data: item } = useRateLimitMetersModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Create a namespaceModule -const { mutate: create } = useCreateNamespaceModuleMutation({ +// Create a rateLimitMetersModule +const { mutate: create } = useCreateRateLimitMetersModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ### RealtimeModule @@ -1200,25 +1163,109 @@ const { mutate: create } = useCreateWebauthnAuthModuleMutation({ create({ databaseId: '', schemaId: '', usersTableId: '', credentialsTableId: '', sessionsTableId: '', sessionCredentialsTableId: '', sessionSecretsTableId: '', authSettingsTableId: '', rpId: '', rpName: '', originAllowlist: '', attestationType: '', requireUserVerification: '', residentKey: '', challengeExpiry: '' }); ``` +### FunctionInvocationModule + +```typescript +// List all functionInvocationModules +const { data, isLoading } = useFunctionInvocationModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Get one functionInvocationModule +const { data: item } = useFunctionInvocationModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Create a functionInvocationModule +const { mutate: create } = useCreateFunctionInvocationModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +``` + +### FunctionModule + +```typescript +// List all functionModules +const { data, isLoading } = useFunctionModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Get one functionModule +const { data: item } = useFunctionModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Create a functionModule +const { mutate: create } = useCreateFunctionModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +``` + +### InvitesModule + +```typescript +// List all invitesModules +const { data, isLoading } = useInvitesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, +}); + +// Get one invitesModule +const { data: item } = useInvitesModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }, +}); + +// Create a invitesModule +const { mutate: create } = useCreateInvitesModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }); +``` + +### NamespaceModule + +```typescript +// List all namespaceModules +const { data, isLoading } = useNamespaceModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Get one namespaceModule +const { data: item } = useNamespaceModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }, +}); + +// Create a namespaceModule +const { mutate: create } = useCreateNamespaceModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }); +``` + ### ComputeLogModule ```typescript // List all computeLogModules const { data, isLoading } = useComputeLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Get one computeLogModule const { data: item } = useComputeLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Create a computeLogModule const { mutate: create } = useCreateComputeLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` ### InferenceLogModule @@ -1226,20 +1273,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', co ```typescript // List all inferenceLogModules const { data, isLoading } = useInferenceLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Get one inferenceLogModule const { data: item } = useInferenceLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Create a inferenceLogModule const { mutate: create } = useCreateInferenceLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` ### StorageLogModule @@ -1247,20 +1294,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', in ```typescript // List all storageLogModules const { data, isLoading } = useStorageLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Get one storageLogModule const { data: item } = useStorageLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Create a storageLogModule const { mutate: create } = useCreateStorageLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` ### TransferLogModule @@ -1268,83 +1315,83 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', st ```typescript // List all transferLogModules const { data, isLoading } = useTransferLogModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Get one transferLogModule const { data: item } = useTransferLogModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }, }); // Create a transferLogModule const { mutate: create } = useCreateTransferLogModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### DbUsageModule +### PlansModule ```typescript -// List all dbUsageModules -const { data, isLoading } = useDbUsageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, +// List all plansModules +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one dbUsageModule -const { data: item } = useDbUsageModuleQuery({ +// Get one plansModule +const { data: item } = usePlansModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a dbUsageModule -const { mutate: create } = useCreateDbUsageModuleMutation({ +// Create a plansModule +const { mutate: create } = useCreatePlansModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### NotificationsModule +### BillingProviderModule ```typescript -// List all notificationsModules -const { data, isLoading } = useNotificationsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, +// List all billingProviderModules +const { data, isLoading } = useBillingProviderModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Get one notificationsModule -const { data: item } = useNotificationsModuleQuery({ +// Get one billingProviderModule +const { data: item } = useBillingProviderModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, }); -// Create a notificationsModule -const { mutate: create } = useCreateNotificationsModuleMutation({ +// Create a billingProviderModule +const { mutate: create } = useCreateBillingProviderModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }); ``` -### PlansModule +### DbUsageModule ```typescript -// 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, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, +// List all dbUsageModules +const { data, isLoading } = useDbUsageModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Get one plansModule -const { data: item } = usePlansModuleQuery({ +// Get one dbUsageModule +const { data: item } = useDbUsageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Create a plansModule -const { mutate: create } = useCreatePlansModuleMutation({ +// Create a dbUsageModule +const { mutate: create } = useCreateDbUsageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ### HierarchyModule @@ -1352,62 +1399,62 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pl ```typescript // List all hierarchyModules const { data, isLoading } = useHierarchyModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); // Get one hierarchyModule const { data: item } = useHierarchyModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }, }); // Create a hierarchyModule const { mutate: create } = useCreateHierarchyModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }); ``` -### BillingModule +### PermissionsModule ```typescript -// 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, +// List all permissionsModules +const { data, isLoading } = usePermissionsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, }); -// Get one billingModule -const { data: item } = useBillingModuleQuery({ +// Get one permissionsModule +const { data: item } = usePermissionsModuleQuery({ 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, }); -// Create a billingModule -const { mutate: create } = useCreateBillingModuleMutation({ +// Create a permissionsModule +const { mutate: create } = useCreatePermissionsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); ``` -### BillingProviderModule +### NotificationsModule ```typescript -// List all billingProviderModules -const { data, isLoading } = useBillingProviderModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, +// List all notificationsModules +const { data, isLoading } = useNotificationsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Get one billingProviderModule -const { data: item } = useBillingProviderModuleQuery({ +// Get one notificationsModule +const { data: item } = useNotificationsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Create a billingProviderModule -const { mutate: create } = useCreateBillingProviderModuleMutation({ +// Create a notificationsModule +const { mutate: create } = useCreateNotificationsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ### ProfilesModule @@ -1415,41 +1462,41 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', pr ```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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }); ``` -### PermissionsModule +### BillingModule ```typescript -// List all permissionsModules -const { data, isLoading } = usePermissionsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, +// List all billingModules +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Get one permissionsModule -const { data: item } = usePermissionsModuleQuery({ +// Get one billingModule +const { data: item } = useBillingModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); -// Create a permissionsModule -const { mutate: create } = useCreatePermissionsModuleMutation({ +// Create a billingModule +const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ### RelationProvision @@ -1473,27 +1520,6 @@ const { mutate: create } = useCreateRelationProvisionMutation({ create({ databaseId: '', relationType: '', sourceTableId: '', targetTableId: '', fieldName: '', deleteAction: '', isRequired: '', apiRequired: '', junctionTableId: '', junctionTableName: '', junctionSchemaId: '', sourceFieldName: '', targetFieldName: '', useCompositeKey: '', createIndex: '', exposeInApi: '', nodes: '', grants: '', policies: '', outFieldId: '', outJunctionTableId: '', outSourceFieldId: '', outTargetFieldId: '' }); ``` -### FunctionModule - -```typescript -// List all functionModules -const { data, isLoading } = useFunctionModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, -}); - -// Get one functionModule -const { data: item } = useFunctionModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }, -}); - -// Create a functionModule -const { mutate: create } = useCreateFunctionModuleMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }); -``` - ### UserAuthModule ```typescript @@ -1520,20 +1546,20 @@ create({ databaseId: '', schemaId: '', emailsTableId: '', user ```typescript // List all agentModules const { data, isLoading } = useAgentModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); // Get one agentModule const { data: item } = useAgentModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }, }); // Create a agentModule const { mutate: create } = useCreateAgentModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }); ``` ### LimitsModule @@ -1541,20 +1567,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', th ```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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); ``` ### MembershipsModule @@ -1562,20 +1588,41 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ta ```typescript // List all membershipsModules const { data, isLoading } = useMembershipsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, }); // Get one membershipsModule const { data: item } = useMembershipsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }, }); // Create a membershipsModule const { mutate: create } = useCreateMembershipsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }); +``` + +### EntityTypeProvision + +```typescript +// List all entityTypeProvisions +const { data, isLoading } = useEntityTypeProvisionsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, +}); + +// Get one entityTypeProvision +const { data: item } = useEntityTypeProvisionQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, +}); + +// Create a entityTypeProvision +const { mutate: create } = useCreateEntityTypeProvisionMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); ``` ### StorageModule @@ -1583,20 +1630,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', me ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ### EventsModule @@ -1604,41 +1651,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', bu ```typescript // List all eventsModules const { data, isLoading } = useEventsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Get one eventsModule const { data: item } = useEventsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }, }); // Create a eventsModule const { mutate: create } = useCreateEventsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }); -``` - -### EntityTypeProvision - -```typescript -// List all entityTypeProvisions -const { data, isLoading } = useEntityTypeProvisionsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, -}); - -// Get one entityTypeProvision -const { data: item } = useEntityTypeProvisionQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }, -}); - -// Create a entityTypeProvision -const { mutate: create } = useCreateEntityTypeProvisionMutation({ - selection: { fields: { id: true } }, -}); -create({ databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }); ``` ## Custom Operation Hooks diff --git a/sdk/constructive-react/src/modules/hooks/index.ts b/sdk/constructive-react/src/modules/hooks/index.ts index bc329617b8..e93e1825bb 100644 --- a/sdk/constructive-react/src/modules/hooks/index.ts +++ b/sdk/constructive-react/src/modules/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: DefaultIdsModule, MembershipTypesModule, UserStateModule, SessionSecretsModule, ConfigSecretsOrgModule, DevicesModule, I18NModule, UserCredentialsModule, UserSettingsModule, ConfigSecretsUserModule, ConnectedAccountsModule, EmailsModule, PhoneNumbersModule, RateLimitsModule, UsersModule, WebauthnCredentialsModule, CryptoAddressesModule, IdentityProvidersModule, DenormalizedTableField, RlsModule, Blueprint, BlueprintTemplate, BlueprintConstruction, CryptoAuthModule, RateLimitMetersModule, SessionsModule, ConfigSecretsModule, MerkleStoreModule, GraphModule, SecureTableProvision, InvitesModule, DatabaseProvisionModule, NamespaceModule, RealtimeModule, WebauthnAuthModule, ComputeLogModule, InferenceLogModule, StorageLogModule, TransferLogModule, DbUsageModule, NotificationsModule, PlansModule, HierarchyModule, BillingModule, BillingProviderModule, ProfilesModule, PermissionsModule, RelationProvision, FunctionModule, UserAuthModule, AgentModule, LimitsModule, MembershipsModule, StorageModule, EventsModule, EntityTypeProvision + * Tables: DefaultIdsModule, MembershipTypesModule, UserStateModule, SessionSecretsModule, ConfigSecretsOrgModule, DevicesModule, I18NModule, UserCredentialsModule, UserSettingsModule, ConfigSecretsUserModule, ConnectedAccountsModule, EmailsModule, PhoneNumbersModule, RateLimitsModule, UsersModule, WebauthnCredentialsModule, CryptoAddressesModule, DenormalizedTableField, IdentityProvidersModule, RlsModule, Blueprint, BlueprintTemplate, BlueprintConstruction, CryptoAuthModule, SessionsModule, SecureTableProvision, MerkleStoreModule, GraphModule, DatabaseProvisionModule, ConfigSecretsModule, RateLimitMetersModule, RealtimeModule, WebauthnAuthModule, FunctionInvocationModule, FunctionModule, InvitesModule, NamespaceModule, ComputeLogModule, InferenceLogModule, StorageLogModule, TransferLogModule, PlansModule, BillingProviderModule, DbUsageModule, HierarchyModule, PermissionsModule, NotificationsModule, ProfilesModule, BillingModule, RelationProvision, UserAuthModule, AgentModule, LimitsModule, MembershipsModule, EntityTypeProvision, StorageModule, EventsModule * * Usage: * diff --git a/sdk/constructive-react/src/modules/hooks/invalidation.ts b/sdk/constructive-react/src/modules/hooks/invalidation.ts index 73db5d073e..eac46b9727 100644 --- a/sdk/constructive-react/src/modules/hooks/invalidation.ts +++ b/sdk/constructive-react/src/modules/hooks/invalidation.ts @@ -32,45 +32,46 @@ import { usersModuleKeys, webauthnCredentialsModuleKeys, cryptoAddressesModuleKeys, - identityProvidersModuleKeys, denormalizedTableFieldKeys, + identityProvidersModuleKeys, rlsModuleKeys, blueprintKeys, blueprintTemplateKeys, blueprintConstructionKeys, cryptoAuthModuleKeys, - rateLimitMetersModuleKeys, sessionsModuleKeys, - configSecretsModuleKeys, + secureTableProvisionKeys, merkleStoreModuleKeys, graphModuleKeys, - secureTableProvisionKeys, - invitesModuleKeys, databaseProvisionModuleKeys, - namespaceModuleKeys, + configSecretsModuleKeys, + rateLimitMetersModuleKeys, realtimeModuleKeys, webauthnAuthModuleKeys, + functionInvocationModuleKeys, + functionModuleKeys, + invitesModuleKeys, + namespaceModuleKeys, computeLogModuleKeys, inferenceLogModuleKeys, storageLogModuleKeys, transferLogModuleKeys, - dbUsageModuleKeys, - notificationsModuleKeys, plansModuleKeys, - hierarchyModuleKeys, - billingModuleKeys, billingProviderModuleKeys, - profilesModuleKeys, + dbUsageModuleKeys, + hierarchyModuleKeys, permissionsModuleKeys, + notificationsModuleKeys, + profilesModuleKeys, + billingModuleKeys, relationProvisionKeys, - functionModuleKeys, userAuthModuleKeys, agentModuleKeys, limitsModuleKeys, membershipsModuleKeys, + entityTypeProvisionKeys, storageModuleKeys, eventsModuleKeys, - entityTypeProvisionKeys, } from './query-keys'; /** // ============================================================================ @@ -381,38 +382,38 @@ export const invalidate = { queryKey: cryptoAddressesModuleKeys.detail(id), }), }, - /** Invalidate identityProvidersModule queries */ identityProvidersModule: { - /** Invalidate all identityProvidersModule queries */ all: (queryClient: QueryClient) => + /** Invalidate denormalizedTableField queries */ denormalizedTableField: { + /** Invalidate all denormalizedTableField queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.all, + queryKey: denormalizedTableFieldKeys.all, }), - /** Invalidate identityProvidersModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate denormalizedTableField list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.lists(), + queryKey: denormalizedTableFieldKeys.lists(), }), - /** Invalidate a specific identityProvidersModule */ detail: ( + /** Invalidate a specific denormalizedTableField */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: identityProvidersModuleKeys.detail(id), + queryKey: denormalizedTableFieldKeys.detail(id), }), }, - /** Invalidate denormalizedTableField queries */ denormalizedTableField: { - /** Invalidate all denormalizedTableField queries */ all: (queryClient: QueryClient) => + /** Invalidate identityProvidersModule queries */ identityProvidersModule: { + /** Invalidate all identityProvidersModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.all, + queryKey: identityProvidersModuleKeys.all, }), - /** Invalidate denormalizedTableField list queries */ lists: (queryClient: QueryClient) => + /** Invalidate identityProvidersModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.lists(), + queryKey: identityProvidersModuleKeys.lists(), }), - /** Invalidate a specific denormalizedTableField */ detail: ( + /** Invalidate a specific identityProvidersModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: denormalizedTableFieldKeys.detail(id), + queryKey: identityProvidersModuleKeys.detail(id), }), }, /** Invalidate rlsModule queries */ rlsModule: { @@ -500,23 +501,6 @@ export const invalidate = { queryKey: cryptoAuthModuleKeys.detail(id), }), }, - /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { - /** Invalidate all rateLimitMetersModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.all, - }), - /** Invalidate rateLimitMetersModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.lists(), - }), - /** Invalidate a specific rateLimitMetersModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), - }), - }, /** Invalidate sessionsModule queries */ sessionsModule: { /** Invalidate all sessionsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -534,21 +518,21 @@ export const invalidate = { queryKey: sessionsModuleKeys.detail(id), }), }, - /** Invalidate configSecretsModule queries */ configSecretsModule: { - /** Invalidate all configSecretsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate secureTableProvision queries */ secureTableProvision: { + /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.all, + queryKey: secureTableProvisionKeys.all, }), - /** Invalidate configSecretsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate secureTableProvision list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.lists(), + queryKey: secureTableProvisionKeys.lists(), }), - /** Invalidate a specific configSecretsModule */ detail: ( + /** Invalidate a specific secureTableProvision */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: configSecretsModuleKeys.detail(id), + queryKey: secureTableProvisionKeys.detail(id), }), }, /** Invalidate merkleStoreModule queries */ merkleStoreModule: { @@ -585,72 +569,55 @@ export const invalidate = { queryKey: graphModuleKeys.detail(id), }), }, - /** Invalidate secureTableProvision queries */ secureTableProvision: { - /** Invalidate all secureTableProvision queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.all, - }), - /** Invalidate secureTableProvision list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.lists(), - }), - /** Invalidate a specific secureTableProvision */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: secureTableProvisionKeys.detail(id), - }), - }, - /** Invalidate invitesModule queries */ invitesModule: { - /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => + /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { + /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.all, + queryKey: databaseProvisionModuleKeys.all, }), - /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.lists(), + queryKey: databaseProvisionModuleKeys.lists(), }), - /** Invalidate a specific invitesModule */ detail: ( + /** Invalidate a specific databaseProvisionModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: invitesModuleKeys.detail(id), + queryKey: databaseProvisionModuleKeys.detail(id), }), }, - /** Invalidate databaseProvisionModule queries */ databaseProvisionModule: { - /** Invalidate all databaseProvisionModule queries */ all: (queryClient: QueryClient) => + /** Invalidate configSecretsModule queries */ configSecretsModule: { + /** Invalidate all configSecretsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.all, + queryKey: configSecretsModuleKeys.all, }), - /** Invalidate databaseProvisionModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate configSecretsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.lists(), + queryKey: configSecretsModuleKeys.lists(), }), - /** Invalidate a specific databaseProvisionModule */ detail: ( + /** Invalidate a specific configSecretsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), + queryKey: configSecretsModuleKeys.detail(id), }), }, - /** Invalidate namespaceModule queries */ namespaceModule: { - /** Invalidate all namespaceModule queries */ all: (queryClient: QueryClient) => + /** Invalidate rateLimitMetersModule queries */ rateLimitMetersModule: { + /** Invalidate all rateLimitMetersModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.all, + queryKey: rateLimitMetersModuleKeys.all, }), - /** Invalidate namespaceModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate rateLimitMetersModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.lists(), + queryKey: rateLimitMetersModuleKeys.lists(), }), - /** Invalidate a specific namespaceModule */ detail: ( + /** Invalidate a specific rateLimitMetersModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: namespaceModuleKeys.detail(id), + queryKey: rateLimitMetersModuleKeys.detail(id), }), }, /** Invalidate realtimeModule queries */ realtimeModule: { @@ -687,6 +654,74 @@ export const invalidate = { queryKey: webauthnAuthModuleKeys.detail(id), }), }, + /** Invalidate functionInvocationModule queries */ functionInvocationModule: { + /** Invalidate all functionInvocationModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.all, + }), + /** Invalidate functionInvocationModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.lists(), + }), + /** Invalidate a specific functionInvocationModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.detail(id), + }), + }, + /** Invalidate functionModule queries */ functionModule: { + /** Invalidate all functionModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.all, + }), + /** Invalidate functionModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.lists(), + }), + /** Invalidate a specific functionModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: functionModuleKeys.detail(id), + }), + }, + /** Invalidate invitesModule queries */ invitesModule: { + /** Invalidate all invitesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.all, + }), + /** Invalidate invitesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.lists(), + }), + /** Invalidate a specific invitesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: invitesModuleKeys.detail(id), + }), + }, + /** Invalidate namespaceModule queries */ namespaceModule: { + /** Invalidate all namespaceModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.all, + }), + /** Invalidate namespaceModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.lists(), + }), + /** Invalidate a specific namespaceModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: namespaceModuleKeys.detail(id), + }), + }, /** Invalidate computeLogModule queries */ computeLogModule: { /** Invalidate all computeLogModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -755,55 +790,55 @@ export const invalidate = { queryKey: transferLogModuleKeys.detail(id), }), }, - /** Invalidate dbUsageModule queries */ dbUsageModule: { - /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => + /** Invalidate plansModule queries */ plansModule: { + /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.all, + queryKey: plansModuleKeys.all, }), - /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.lists(), + queryKey: plansModuleKeys.lists(), }), - /** Invalidate a specific dbUsageModule */ detail: ( + /** Invalidate a specific plansModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: dbUsageModuleKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }), }, - /** Invalidate notificationsModule queries */ notificationsModule: { - /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate billingProviderModule queries */ billingProviderModule: { + /** Invalidate all billingProviderModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.all, + queryKey: billingProviderModuleKeys.all, }), - /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate billingProviderModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.lists(), + queryKey: billingProviderModuleKeys.lists(), }), - /** Invalidate a specific notificationsModule */ detail: ( + /** Invalidate a specific billingProviderModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: notificationsModuleKeys.detail(id), + queryKey: billingProviderModuleKeys.detail(id), }), }, - /** Invalidate plansModule queries */ plansModule: { - /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => + /** Invalidate dbUsageModule queries */ dbUsageModule: { + /** Invalidate all dbUsageModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.all, + queryKey: dbUsageModuleKeys.all, }), - /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate dbUsageModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.lists(), + queryKey: dbUsageModuleKeys.lists(), }), - /** Invalidate a specific plansModule */ detail: ( + /** Invalidate a specific dbUsageModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: plansModuleKeys.detail(id), + queryKey: dbUsageModuleKeys.detail(id), }), }, /** Invalidate hierarchyModule queries */ hierarchyModule: { @@ -823,38 +858,38 @@ export const invalidate = { queryKey: hierarchyModuleKeys.detail(id), }), }, - /** Invalidate billingModule queries */ billingModule: { - /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => + /** Invalidate permissionsModule queries */ permissionsModule: { + /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.all, + queryKey: permissionsModuleKeys.all, }), - /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.lists(), + queryKey: permissionsModuleKeys.lists(), }), - /** Invalidate a specific billingModule */ detail: ( + /** Invalidate a specific permissionsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: billingModuleKeys.detail(id), + queryKey: permissionsModuleKeys.detail(id), }), }, - /** Invalidate billingProviderModule queries */ billingProviderModule: { - /** Invalidate all billingProviderModule queries */ all: (queryClient: QueryClient) => + /** Invalidate notificationsModule queries */ notificationsModule: { + /** Invalidate all notificationsModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.all, + queryKey: notificationsModuleKeys.all, }), - /** Invalidate billingProviderModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate notificationsModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.lists(), + queryKey: notificationsModuleKeys.lists(), }), - /** Invalidate a specific billingProviderModule */ detail: ( + /** Invalidate a specific notificationsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: billingProviderModuleKeys.detail(id), + queryKey: notificationsModuleKeys.detail(id), }), }, /** Invalidate profilesModule queries */ profilesModule: { @@ -874,21 +909,21 @@ export const invalidate = { queryKey: profilesModuleKeys.detail(id), }), }, - /** Invalidate permissionsModule queries */ permissionsModule: { - /** Invalidate all permissionsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate billingModule queries */ billingModule: { + /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.all, + queryKey: billingModuleKeys.all, }), - /** Invalidate permissionsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.lists(), + queryKey: billingModuleKeys.lists(), }), - /** Invalidate a specific permissionsModule */ detail: ( + /** Invalidate a specific billingModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: billingModuleKeys.detail(id), }), }, /** Invalidate relationProvision queries */ relationProvision: { @@ -908,23 +943,6 @@ export const invalidate = { queryKey: relationProvisionKeys.detail(id), }), }, - /** Invalidate functionModule queries */ functionModule: { - /** Invalidate all functionModule queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.all, - }), - /** Invalidate functionModule list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.lists(), - }), - /** Invalidate a specific functionModule */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: functionModuleKeys.detail(id), - }), - }, /** Invalidate userAuthModule queries */ userAuthModule: { /** Invalidate all userAuthModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -993,6 +1011,23 @@ export const invalidate = { queryKey: membershipsModuleKeys.detail(id), }), }, + /** Invalidate entityTypeProvision queries */ entityTypeProvision: { + /** Invalidate all entityTypeProvision queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.all, + }), + /** Invalidate entityTypeProvision list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.lists(), + }), + /** Invalidate a specific entityTypeProvision */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: entityTypeProvisionKeys.detail(id), + }), + }, /** Invalidate storageModule queries */ storageModule: { /** Invalidate all storageModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1027,23 +1062,6 @@ export const invalidate = { queryKey: eventsModuleKeys.detail(id), }), }, - /** Invalidate entityTypeProvision queries */ entityTypeProvision: { - /** Invalidate all entityTypeProvision queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.all, - }), - /** Invalidate entityTypeProvision list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.lists(), - }), - /** Invalidate a specific entityTypeProvision */ detail: ( - queryClient: QueryClient, - id: string | number - ) => - queryClient.invalidateQueries({ - queryKey: entityTypeProvisionKeys.detail(id), - }), - }, } as const; /** @@ -1193,20 +1211,20 @@ export const remove = { queryKey: cryptoAddressesModuleKeys.detail(id), }); }, - /** Remove identityProvidersModule from cache */ identityProvidersModule: ( + /** Remove denormalizedTableField from cache */ denormalizedTableField: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: identityProvidersModuleKeys.detail(id), + queryKey: denormalizedTableFieldKeys.detail(id), }); }, - /** Remove denormalizedTableField from cache */ denormalizedTableField: ( + /** Remove identityProvidersModule from cache */ identityProvidersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: denormalizedTableFieldKeys.detail(id), + queryKey: identityProvidersModuleKeys.detail(id), }); }, /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { @@ -1243,14 +1261,6 @@ export const remove = { queryKey: cryptoAuthModuleKeys.detail(id), }); }, - /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: rateLimitMetersModuleKeys.detail(id), - }); - }, /** Remove sessionsModule from cache */ sessionsModule: ( queryClient: QueryClient, id: string | number @@ -1259,12 +1269,12 @@ export const remove = { queryKey: sessionsModuleKeys.detail(id), }); }, - /** Remove configSecretsModule from cache */ configSecretsModule: ( + /** Remove secureTableProvision from cache */ secureTableProvision: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: configSecretsModuleKeys.detail(id), + queryKey: secureTableProvisionKeys.detail(id), }); }, /** Remove merkleStoreModule from cache */ merkleStoreModule: ( @@ -1283,52 +1293,76 @@ export const remove = { queryKey: graphModuleKeys.detail(id), }); }, - /** Remove secureTableProvision from cache */ secureTableProvision: ( + /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: secureTableProvisionKeys.detail(id), + queryKey: databaseProvisionModuleKeys.detail(id), }); }, - /** Remove invitesModule from cache */ invitesModule: ( + /** Remove configSecretsModule from cache */ configSecretsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: invitesModuleKeys.detail(id), + queryKey: configSecretsModuleKeys.detail(id), }); }, - /** Remove databaseProvisionModule from cache */ databaseProvisionModule: ( + /** Remove rateLimitMetersModule from cache */ rateLimitMetersModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: databaseProvisionModuleKeys.detail(id), + queryKey: rateLimitMetersModuleKeys.detail(id), }); }, - /** Remove namespaceModule from cache */ namespaceModule: ( + /** Remove realtimeModule from cache */ realtimeModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: namespaceModuleKeys.detail(id), + queryKey: realtimeModuleKeys.detail(id), }); }, - /** Remove realtimeModule from cache */ realtimeModule: ( + /** Remove webauthnAuthModule from cache */ webauthnAuthModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: realtimeModuleKeys.detail(id), + queryKey: webauthnAuthModuleKeys.detail(id), }); }, - /** Remove webauthnAuthModule from cache */ webauthnAuthModule: ( + /** Remove functionInvocationModule from cache */ functionInvocationModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: webauthnAuthModuleKeys.detail(id), + queryKey: functionInvocationModuleKeys.detail(id), + }); + }, + /** Remove functionModule from cache */ functionModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: functionModuleKeys.detail(id), + }); + }, + /** Remove invitesModule from cache */ invitesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: invitesModuleKeys.detail(id), + }); + }, + /** Remove namespaceModule from cache */ namespaceModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: namespaceModuleKeys.detail(id), }); }, /** Remove computeLogModule from cache */ computeLogModule: ( @@ -1363,28 +1397,28 @@ export const remove = { queryKey: transferLogModuleKeys.detail(id), }); }, - /** Remove dbUsageModule from cache */ dbUsageModule: ( + /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: dbUsageModuleKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }); }, - /** Remove notificationsModule from cache */ notificationsModule: ( + /** Remove billingProviderModule from cache */ billingProviderModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: notificationsModuleKeys.detail(id), + queryKey: billingProviderModuleKeys.detail(id), }); }, - /** Remove plansModule from cache */ plansModule: ( + /** Remove dbUsageModule from cache */ dbUsageModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: plansModuleKeys.detail(id), + queryKey: dbUsageModuleKeys.detail(id), }); }, /** Remove hierarchyModule from cache */ hierarchyModule: ( @@ -1395,20 +1429,20 @@ export const remove = { queryKey: hierarchyModuleKeys.detail(id), }); }, - /** Remove billingModule from cache */ billingModule: ( + /** Remove permissionsModule from cache */ permissionsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: billingModuleKeys.detail(id), + queryKey: permissionsModuleKeys.detail(id), }); }, - /** Remove billingProviderModule from cache */ billingProviderModule: ( + /** Remove notificationsModule from cache */ notificationsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: billingProviderModuleKeys.detail(id), + queryKey: notificationsModuleKeys.detail(id), }); }, /** Remove profilesModule from cache */ profilesModule: ( @@ -1419,12 +1453,12 @@ export const remove = { queryKey: profilesModuleKeys.detail(id), }); }, - /** Remove permissionsModule from cache */ permissionsModule: ( + /** Remove billingModule from cache */ billingModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: permissionsModuleKeys.detail(id), + queryKey: billingModuleKeys.detail(id), }); }, /** Remove relationProvision from cache */ relationProvision: ( @@ -1435,14 +1469,6 @@ export const remove = { queryKey: relationProvisionKeys.detail(id), }); }, - /** Remove functionModule from cache */ functionModule: ( - queryClient: QueryClient, - id: string | number - ) => { - queryClient.removeQueries({ - queryKey: functionModuleKeys.detail(id), - }); - }, /** Remove userAuthModule from cache */ userAuthModule: ( queryClient: QueryClient, id: string | number @@ -1475,28 +1501,28 @@ export const remove = { queryKey: membershipsModuleKeys.detail(id), }); }, - /** Remove storageModule from cache */ storageModule: ( + /** Remove entityTypeProvision from cache */ entityTypeProvision: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: storageModuleKeys.detail(id), + queryKey: entityTypeProvisionKeys.detail(id), }); }, - /** Remove eventsModule from cache */ eventsModule: ( + /** Remove storageModule from cache */ storageModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: eventsModuleKeys.detail(id), + queryKey: storageModuleKeys.detail(id), }); }, - /** Remove entityTypeProvision from cache */ entityTypeProvision: ( + /** Remove eventsModule from cache */ eventsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: entityTypeProvisionKeys.detail(id), + queryKey: eventsModuleKeys.detail(id), }); }, } as const; diff --git a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts index 7c1a1f3bc7..c420528fa4 100644 --- a/sdk/constructive-react/src/modules/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/mutation-keys.ts @@ -191,18 +191,6 @@ export const cryptoAddressesModuleMutationKeys = { /** Delete cryptoAddressesModule mutation key */ delete: (id: string | number) => ['mutation', 'cryptoaddressesmodule', 'delete', id] as const, } as const; -export const identityProvidersModuleMutationKeys = { - /** All identityProvidersModule mutation keys */ all: [ - 'mutation', - 'identityprovidersmodule', - ] as const, - /** Create identityProvidersModule mutation key */ create: () => - ['mutation', 'identityprovidersmodule', 'create'] as const, - /** Update identityProvidersModule mutation key */ update: (id: string | number) => - ['mutation', 'identityprovidersmodule', 'update', id] as const, - /** Delete identityProvidersModule mutation key */ delete: (id: string | number) => - ['mutation', 'identityprovidersmodule', 'delete', id] as const, -} as const; export const denormalizedTableFieldMutationKeys = { /** All denormalizedTableField mutation keys */ all: [ 'mutation', @@ -215,6 +203,18 @@ export const denormalizedTableFieldMutationKeys = { /** Delete denormalizedTableField mutation key */ delete: (id: string | number) => ['mutation', 'denormalizedtablefield', 'delete', id] as const, } as const; +export const identityProvidersModuleMutationKeys = { + /** All identityProvidersModule mutation keys */ all: [ + 'mutation', + 'identityprovidersmodule', + ] as const, + /** Create identityProvidersModule mutation key */ create: () => + ['mutation', 'identityprovidersmodule', 'create'] as const, + /** Update identityProvidersModule mutation key */ update: (id: string | number) => + ['mutation', 'identityprovidersmodule', 'update', id] as const, + /** Delete identityProvidersModule mutation key */ delete: (id: string | number) => + ['mutation', 'identityprovidersmodule', 'delete', id] as const, +} as const; export const rlsModuleMutationKeys = { /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, /** Create rlsModule mutation key */ create: () => ['mutation', 'rlsmodule', 'create'] as const, @@ -261,18 +261,6 @@ export const cryptoAuthModuleMutationKeys = { /** Delete cryptoAuthModule mutation key */ delete: (id: string | number) => ['mutation', 'cryptoauthmodule', 'delete', id] as const, } as const; -export const rateLimitMetersModuleMutationKeys = { - /** All rateLimitMetersModule mutation keys */ all: [ - 'mutation', - 'ratelimitmetersmodule', - ] as const, - /** Create rateLimitMetersModule mutation key */ create: () => - ['mutation', 'ratelimitmetersmodule', 'create'] as const, - /** Update rateLimitMetersModule mutation key */ update: (id: string | number) => - ['mutation', 'ratelimitmetersmodule', 'update', id] as const, - /** Delete rateLimitMetersModule mutation key */ delete: (id: string | number) => - ['mutation', 'ratelimitmetersmodule', 'delete', id] as const, -} as const; export const sessionsModuleMutationKeys = { /** All sessionsModule mutation keys */ all: ['mutation', 'sessionsmodule'] as const, /** Create sessionsModule mutation key */ create: () => @@ -282,14 +270,14 @@ export const sessionsModuleMutationKeys = { /** Delete sessionsModule mutation key */ delete: (id: string | number) => ['mutation', 'sessionsmodule', 'delete', id] as const, } as const; -export const configSecretsModuleMutationKeys = { - /** All configSecretsModule mutation keys */ all: ['mutation', 'configsecretsmodule'] as const, - /** Create configSecretsModule mutation key */ create: () => - ['mutation', 'configsecretsmodule', 'create'] as const, - /** Update configSecretsModule mutation key */ update: (id: string | number) => - ['mutation', 'configsecretsmodule', 'update', id] as const, - /** Delete configSecretsModule mutation key */ delete: (id: string | number) => - ['mutation', 'configsecretsmodule', 'delete', id] as const, +export const secureTableProvisionMutationKeys = { + /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, + /** Create secureTableProvision mutation key */ create: () => + ['mutation', 'securetableprovision', 'create'] as const, + /** Update secureTableProvision mutation key */ update: (id: string | number) => + ['mutation', 'securetableprovision', 'update', id] as const, + /** Delete secureTableProvision mutation key */ delete: (id: string | number) => + ['mutation', 'securetableprovision', 'delete', id] as const, } as const; export const merkleStoreModuleMutationKeys = { /** All merkleStoreModule mutation keys */ all: ['mutation', 'merklestoremodule'] as const, @@ -309,24 +297,6 @@ export const graphModuleMutationKeys = { /** Delete graphModule mutation key */ delete: (id: string | number) => ['mutation', 'graphmodule', 'delete', id] as const, } as const; -export const secureTableProvisionMutationKeys = { - /** All secureTableProvision mutation keys */ all: ['mutation', 'securetableprovision'] as const, - /** Create secureTableProvision mutation key */ create: () => - ['mutation', 'securetableprovision', 'create'] as const, - /** Update secureTableProvision mutation key */ update: (id: string | number) => - ['mutation', 'securetableprovision', 'update', id] as const, - /** Delete secureTableProvision mutation key */ delete: (id: string | number) => - ['mutation', 'securetableprovision', 'delete', id] as const, -} as const; -export const invitesModuleMutationKeys = { - /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, - /** Create invitesModule mutation key */ create: () => - ['mutation', 'invitesmodule', 'create'] as const, - /** Update invitesModule mutation key */ update: (id: string | number) => - ['mutation', 'invitesmodule', 'update', id] as const, - /** Delete invitesModule mutation key */ delete: (id: string | number) => - ['mutation', 'invitesmodule', 'delete', id] as const, -} as const; export const databaseProvisionModuleMutationKeys = { /** All databaseProvisionModule mutation keys */ all: [ 'mutation', @@ -339,14 +309,26 @@ export const databaseProvisionModuleMutationKeys = { /** Delete databaseProvisionModule mutation key */ delete: (id: string | number) => ['mutation', 'databaseprovisionmodule', 'delete', id] as const, } as const; -export const namespaceModuleMutationKeys = { - /** All namespaceModule mutation keys */ all: ['mutation', 'namespacemodule'] as const, - /** Create namespaceModule mutation key */ create: () => - ['mutation', 'namespacemodule', 'create'] as const, - /** Update namespaceModule mutation key */ update: (id: string | number) => - ['mutation', 'namespacemodule', 'update', id] as const, - /** Delete namespaceModule mutation key */ delete: (id: string | number) => - ['mutation', 'namespacemodule', 'delete', id] as const, +export const configSecretsModuleMutationKeys = { + /** All configSecretsModule mutation keys */ all: ['mutation', 'configsecretsmodule'] as const, + /** Create configSecretsModule mutation key */ create: () => + ['mutation', 'configsecretsmodule', 'create'] as const, + /** Update configSecretsModule mutation key */ update: (id: string | number) => + ['mutation', 'configsecretsmodule', 'update', id] as const, + /** Delete configSecretsModule mutation key */ delete: (id: string | number) => + ['mutation', 'configsecretsmodule', 'delete', id] as const, +} as const; +export const rateLimitMetersModuleMutationKeys = { + /** All rateLimitMetersModule mutation keys */ all: [ + 'mutation', + 'ratelimitmetersmodule', + ] as const, + /** Create rateLimitMetersModule mutation key */ create: () => + ['mutation', 'ratelimitmetersmodule', 'create'] as const, + /** Update rateLimitMetersModule mutation key */ update: (id: string | number) => + ['mutation', 'ratelimitmetersmodule', 'update', id] as const, + /** Delete rateLimitMetersModule mutation key */ delete: (id: string | number) => + ['mutation', 'ratelimitmetersmodule', 'delete', id] as const, } as const; export const realtimeModuleMutationKeys = { /** All realtimeModule mutation keys */ all: ['mutation', 'realtimemodule'] as const, @@ -366,6 +348,45 @@ export const webauthnAuthModuleMutationKeys = { /** Delete webauthnAuthModule mutation key */ delete: (id: string | number) => ['mutation', 'webauthnauthmodule', 'delete', id] as const, } as const; +export const functionInvocationModuleMutationKeys = { + /** All functionInvocationModule mutation keys */ all: [ + 'mutation', + 'functioninvocationmodule', + ] as const, + /** Create functionInvocationModule mutation key */ create: () => + ['mutation', 'functioninvocationmodule', 'create'] as const, + /** Update functionInvocationModule mutation key */ update: (id: string | number) => + ['mutation', 'functioninvocationmodule', 'update', id] as const, + /** Delete functionInvocationModule mutation key */ delete: (id: string | number) => + ['mutation', 'functioninvocationmodule', 'delete', id] as const, +} as const; +export const functionModuleMutationKeys = { + /** All functionModule mutation keys */ all: ['mutation', 'functionmodule'] as const, + /** Create functionModule mutation key */ create: () => + ['mutation', 'functionmodule', 'create'] as const, + /** Update functionModule mutation key */ update: (id: string | number) => + ['mutation', 'functionmodule', 'update', id] as const, + /** Delete functionModule mutation key */ delete: (id: string | number) => + ['mutation', 'functionmodule', 'delete', id] as const, +} as const; +export const invitesModuleMutationKeys = { + /** All invitesModule mutation keys */ all: ['mutation', 'invitesmodule'] as const, + /** Create invitesModule mutation key */ create: () => + ['mutation', 'invitesmodule', 'create'] as const, + /** Update invitesModule mutation key */ update: (id: string | number) => + ['mutation', 'invitesmodule', 'update', id] as const, + /** Delete invitesModule mutation key */ delete: (id: string | number) => + ['mutation', 'invitesmodule', 'delete', id] as const, +} as const; +export const namespaceModuleMutationKeys = { + /** All namespaceModule mutation keys */ all: ['mutation', 'namespacemodule'] as const, + /** Create namespaceModule mutation key */ create: () => + ['mutation', 'namespacemodule', 'create'] as const, + /** Update namespaceModule mutation key */ update: (id: string | number) => + ['mutation', 'namespacemodule', 'update', id] as const, + /** Delete namespaceModule mutation key */ delete: (id: string | number) => + ['mutation', 'namespacemodule', 'delete', id] as const, +} as const; export const computeLogModuleMutationKeys = { /** All computeLogModule mutation keys */ all: ['mutation', 'computelogmodule'] as const, /** Create computeLogModule mutation key */ create: () => @@ -402,24 +423,6 @@ export const transferLogModuleMutationKeys = { /** Delete transferLogModule mutation key */ delete: (id: string | number) => ['mutation', 'transferlogmodule', 'delete', id] as const, } as const; -export const dbUsageModuleMutationKeys = { - /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, - /** Create dbUsageModule mutation key */ create: () => - ['mutation', 'dbusagemodule', 'create'] as const, - /** Update dbUsageModule mutation key */ update: (id: string | number) => - ['mutation', 'dbusagemodule', 'update', id] as const, - /** Delete dbUsageModule mutation key */ delete: (id: string | number) => - ['mutation', 'dbusagemodule', 'delete', id] as const, -} as const; -export const notificationsModuleMutationKeys = { - /** All notificationsModule mutation keys */ all: ['mutation', 'notificationsmodule'] as const, - /** Create notificationsModule mutation key */ create: () => - ['mutation', 'notificationsmodule', 'create'] as const, - /** Update notificationsModule mutation key */ update: (id: string | number) => - ['mutation', 'notificationsmodule', 'update', id] as const, - /** Delete notificationsModule mutation key */ delete: (id: string | number) => - ['mutation', 'notificationsmodule', 'delete', id] as const, -} as const; export const plansModuleMutationKeys = { /** All plansModule mutation keys */ all: ['mutation', 'plansmodule'] as const, /** Create plansModule mutation key */ create: () => @@ -429,24 +432,6 @@ export const plansModuleMutationKeys = { /** Delete plansModule mutation key */ delete: (id: string | number) => ['mutation', 'plansmodule', 'delete', id] as const, } as const; -export const hierarchyModuleMutationKeys = { - /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, - /** Create hierarchyModule mutation key */ create: () => - ['mutation', 'hierarchymodule', 'create'] as const, - /** Update hierarchyModule mutation key */ update: (id: string | number) => - ['mutation', 'hierarchymodule', 'update', id] as const, - /** Delete hierarchyModule mutation key */ delete: (id: string | number) => - ['mutation', 'hierarchymodule', 'delete', id] as const, -} 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 billingProviderModuleMutationKeys = { /** All billingProviderModule mutation keys */ all: [ 'mutation', @@ -459,14 +444,23 @@ export const billingProviderModuleMutationKeys = { /** Delete billingProviderModule mutation key */ delete: (id: string | number) => ['mutation', 'billingprovidermodule', 'delete', id] as const, } as const; -export const profilesModuleMutationKeys = { - /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, - /** Create profilesModule mutation key */ create: () => - ['mutation', 'profilesmodule', 'create'] as const, - /** Update profilesModule mutation key */ update: (id: string | number) => - ['mutation', 'profilesmodule', 'update', id] as const, - /** Delete profilesModule mutation key */ delete: (id: string | number) => - ['mutation', 'profilesmodule', 'delete', id] as const, +export const dbUsageModuleMutationKeys = { + /** All dbUsageModule mutation keys */ all: ['mutation', 'dbusagemodule'] as const, + /** Create dbUsageModule mutation key */ create: () => + ['mutation', 'dbusagemodule', 'create'] as const, + /** Update dbUsageModule mutation key */ update: (id: string | number) => + ['mutation', 'dbusagemodule', 'update', id] as const, + /** Delete dbUsageModule mutation key */ delete: (id: string | number) => + ['mutation', 'dbusagemodule', 'delete', id] as const, +} as const; +export const hierarchyModuleMutationKeys = { + /** All hierarchyModule mutation keys */ all: ['mutation', 'hierarchymodule'] as const, + /** Create hierarchyModule mutation key */ create: () => + ['mutation', 'hierarchymodule', 'create'] as const, + /** Update hierarchyModule mutation key */ update: (id: string | number) => + ['mutation', 'hierarchymodule', 'update', id] as const, + /** Delete hierarchyModule mutation key */ delete: (id: string | number) => + ['mutation', 'hierarchymodule', 'delete', id] as const, } as const; export const permissionsModuleMutationKeys = { /** All permissionsModule mutation keys */ all: ['mutation', 'permissionsmodule'] as const, @@ -477,6 +471,33 @@ export const permissionsModuleMutationKeys = { /** Delete permissionsModule mutation key */ delete: (id: string | number) => ['mutation', 'permissionsmodule', 'delete', id] as const, } as const; +export const notificationsModuleMutationKeys = { + /** All notificationsModule mutation keys */ all: ['mutation', 'notificationsmodule'] as const, + /** Create notificationsModule mutation key */ create: () => + ['mutation', 'notificationsmodule', 'create'] as const, + /** Update notificationsModule mutation key */ update: (id: string | number) => + ['mutation', 'notificationsmodule', 'update', id] as const, + /** Delete notificationsModule mutation key */ delete: (id: string | number) => + ['mutation', 'notificationsmodule', 'delete', id] as const, +} as const; +export const profilesModuleMutationKeys = { + /** All profilesModule mutation keys */ all: ['mutation', 'profilesmodule'] as const, + /** Create profilesModule mutation key */ create: () => + ['mutation', 'profilesmodule', 'create'] as const, + /** Update profilesModule mutation key */ update: (id: string | number) => + ['mutation', 'profilesmodule', 'update', id] as const, + /** Delete profilesModule mutation key */ delete: (id: string | number) => + ['mutation', 'profilesmodule', 'delete', id] as const, +} 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 relationProvisionMutationKeys = { /** All relationProvision mutation keys */ all: ['mutation', 'relationprovision'] as const, /** Create relationProvision mutation key */ create: () => @@ -486,15 +507,6 @@ export const relationProvisionMutationKeys = { /** Delete relationProvision mutation key */ delete: (id: string | number) => ['mutation', 'relationprovision', 'delete', id] as const, } as const; -export const functionModuleMutationKeys = { - /** All functionModule mutation keys */ all: ['mutation', 'functionmodule'] as const, - /** Create functionModule mutation key */ create: () => - ['mutation', 'functionmodule', 'create'] as const, - /** Update functionModule mutation key */ update: (id: string | number) => - ['mutation', 'functionmodule', 'update', id] as const, - /** Delete functionModule mutation key */ delete: (id: string | number) => - ['mutation', 'functionmodule', 'delete', id] as const, -} as const; export const userAuthModuleMutationKeys = { /** All userAuthModule mutation keys */ all: ['mutation', 'userauthmodule'] as const, /** Create userAuthModule mutation key */ create: () => @@ -531,6 +543,15 @@ export const membershipsModuleMutationKeys = { /** Delete membershipsModule mutation key */ delete: (id: string | number) => ['mutation', 'membershipsmodule', 'delete', id] as const, } as const; +export const entityTypeProvisionMutationKeys = { + /** All entityTypeProvision mutation keys */ all: ['mutation', 'entitytypeprovision'] as const, + /** Create entityTypeProvision mutation key */ create: () => + ['mutation', 'entitytypeprovision', 'create'] as const, + /** Update entityTypeProvision mutation key */ update: (id: string | number) => + ['mutation', 'entitytypeprovision', 'update', id] as const, + /** Delete entityTypeProvision mutation key */ delete: (id: string | number) => + ['mutation', 'entitytypeprovision', 'delete', id] as const, +} as const; export const storageModuleMutationKeys = { /** All storageModule mutation keys */ all: ['mutation', 'storagemodule'] as const, /** Create storageModule mutation key */ create: () => @@ -549,15 +570,6 @@ export const eventsModuleMutationKeys = { /** Delete eventsModule mutation key */ delete: (id: string | number) => ['mutation', 'eventsmodule', 'delete', id] as const, } as const; -export const entityTypeProvisionMutationKeys = { - /** All entityTypeProvision mutation keys */ all: ['mutation', 'entitytypeprovision'] as const, - /** Create entityTypeProvision mutation key */ create: () => - ['mutation', 'entitytypeprovision', 'create'] as const, - /** Update entityTypeProvision mutation key */ update: (id: string | number) => - ['mutation', 'entitytypeprovision', 'update', id] as const, - /** Delete entityTypeProvision mutation key */ delete: (id: string | number) => - ['mutation', 'entitytypeprovision', 'delete', id] as const, -} as const; // ============================================================================ // Custom Mutation Keys @@ -651,44 +663,45 @@ export const mutationKeys = { usersModule: usersModuleMutationKeys, webauthnCredentialsModule: webauthnCredentialsModuleMutationKeys, cryptoAddressesModule: cryptoAddressesModuleMutationKeys, - identityProvidersModule: identityProvidersModuleMutationKeys, denormalizedTableField: denormalizedTableFieldMutationKeys, + identityProvidersModule: identityProvidersModuleMutationKeys, rlsModule: rlsModuleMutationKeys, blueprint: blueprintMutationKeys, blueprintTemplate: blueprintTemplateMutationKeys, blueprintConstruction: blueprintConstructionMutationKeys, cryptoAuthModule: cryptoAuthModuleMutationKeys, - rateLimitMetersModule: rateLimitMetersModuleMutationKeys, sessionsModule: sessionsModuleMutationKeys, - configSecretsModule: configSecretsModuleMutationKeys, + secureTableProvision: secureTableProvisionMutationKeys, merkleStoreModule: merkleStoreModuleMutationKeys, graphModule: graphModuleMutationKeys, - secureTableProvision: secureTableProvisionMutationKeys, - invitesModule: invitesModuleMutationKeys, databaseProvisionModule: databaseProvisionModuleMutationKeys, - namespaceModule: namespaceModuleMutationKeys, + configSecretsModule: configSecretsModuleMutationKeys, + rateLimitMetersModule: rateLimitMetersModuleMutationKeys, realtimeModule: realtimeModuleMutationKeys, webauthnAuthModule: webauthnAuthModuleMutationKeys, + functionInvocationModule: functionInvocationModuleMutationKeys, + functionModule: functionModuleMutationKeys, + invitesModule: invitesModuleMutationKeys, + namespaceModule: namespaceModuleMutationKeys, computeLogModule: computeLogModuleMutationKeys, inferenceLogModule: inferenceLogModuleMutationKeys, storageLogModule: storageLogModuleMutationKeys, transferLogModule: transferLogModuleMutationKeys, - dbUsageModule: dbUsageModuleMutationKeys, - notificationsModule: notificationsModuleMutationKeys, plansModule: plansModuleMutationKeys, - hierarchyModule: hierarchyModuleMutationKeys, - billingModule: billingModuleMutationKeys, billingProviderModule: billingProviderModuleMutationKeys, - profilesModule: profilesModuleMutationKeys, + dbUsageModule: dbUsageModuleMutationKeys, + hierarchyModule: hierarchyModuleMutationKeys, permissionsModule: permissionsModuleMutationKeys, + notificationsModule: notificationsModuleMutationKeys, + profilesModule: profilesModuleMutationKeys, + billingModule: billingModuleMutationKeys, relationProvision: relationProvisionMutationKeys, - functionModule: functionModuleMutationKeys, userAuthModule: userAuthModuleMutationKeys, agentModule: agentModuleMutationKeys, limitsModule: limitsModuleMutationKeys, membershipsModule: membershipsModuleMutationKeys, + entityTypeProvision: entityTypeProvisionMutationKeys, storageModule: storageModuleMutationKeys, eventsModule: eventsModuleMutationKeys, - entityTypeProvision: entityTypeProvisionMutationKeys, custom: customMutationKeys, } as const; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/index.ts b/sdk/constructive-react/src/modules/hooks/mutations/index.ts index 1c16e1468c..7cdf23ba00 100644 --- a/sdk/constructive-react/src/modules/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/modules/hooks/mutations/index.ts @@ -54,12 +54,12 @@ export * from './useDeleteWebauthnCredentialsModuleMutation'; export * from './useCreateCryptoAddressesModuleMutation'; export * from './useUpdateCryptoAddressesModuleMutation'; export * from './useDeleteCryptoAddressesModuleMutation'; -export * from './useCreateIdentityProvidersModuleMutation'; -export * from './useUpdateIdentityProvidersModuleMutation'; -export * from './useDeleteIdentityProvidersModuleMutation'; export * from './useCreateDenormalizedTableFieldMutation'; export * from './useUpdateDenormalizedTableFieldMutation'; export * from './useDeleteDenormalizedTableFieldMutation'; +export * from './useCreateIdentityProvidersModuleMutation'; +export * from './useUpdateIdentityProvidersModuleMutation'; +export * from './useDeleteIdentityProvidersModuleMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; @@ -75,39 +75,45 @@ export * from './useDeleteBlueprintConstructionMutation'; export * from './useCreateCryptoAuthModuleMutation'; export * from './useUpdateCryptoAuthModuleMutation'; export * from './useDeleteCryptoAuthModuleMutation'; -export * from './useCreateRateLimitMetersModuleMutation'; -export * from './useUpdateRateLimitMetersModuleMutation'; -export * from './useDeleteRateLimitMetersModuleMutation'; export * from './useCreateSessionsModuleMutation'; export * from './useUpdateSessionsModuleMutation'; export * from './useDeleteSessionsModuleMutation'; -export * from './useCreateConfigSecretsModuleMutation'; -export * from './useUpdateConfigSecretsModuleMutation'; -export * from './useDeleteConfigSecretsModuleMutation'; +export * from './useCreateSecureTableProvisionMutation'; +export * from './useUpdateSecureTableProvisionMutation'; +export * from './useDeleteSecureTableProvisionMutation'; export * from './useCreateMerkleStoreModuleMutation'; export * from './useUpdateMerkleStoreModuleMutation'; export * from './useDeleteMerkleStoreModuleMutation'; export * from './useCreateGraphModuleMutation'; export * from './useUpdateGraphModuleMutation'; export * from './useDeleteGraphModuleMutation'; -export * from './useCreateSecureTableProvisionMutation'; -export * from './useUpdateSecureTableProvisionMutation'; -export * from './useDeleteSecureTableProvisionMutation'; -export * from './useCreateInvitesModuleMutation'; -export * from './useUpdateInvitesModuleMutation'; -export * from './useDeleteInvitesModuleMutation'; export * from './useCreateDatabaseProvisionModuleMutation'; export * from './useUpdateDatabaseProvisionModuleMutation'; export * from './useDeleteDatabaseProvisionModuleMutation'; -export * from './useCreateNamespaceModuleMutation'; -export * from './useUpdateNamespaceModuleMutation'; -export * from './useDeleteNamespaceModuleMutation'; +export * from './useCreateConfigSecretsModuleMutation'; +export * from './useUpdateConfigSecretsModuleMutation'; +export * from './useDeleteConfigSecretsModuleMutation'; +export * from './useCreateRateLimitMetersModuleMutation'; +export * from './useUpdateRateLimitMetersModuleMutation'; +export * from './useDeleteRateLimitMetersModuleMutation'; export * from './useCreateRealtimeModuleMutation'; export * from './useUpdateRealtimeModuleMutation'; export * from './useDeleteRealtimeModuleMutation'; export * from './useCreateWebauthnAuthModuleMutation'; export * from './useUpdateWebauthnAuthModuleMutation'; export * from './useDeleteWebauthnAuthModuleMutation'; +export * from './useCreateFunctionInvocationModuleMutation'; +export * from './useUpdateFunctionInvocationModuleMutation'; +export * from './useDeleteFunctionInvocationModuleMutation'; +export * from './useCreateFunctionModuleMutation'; +export * from './useUpdateFunctionModuleMutation'; +export * from './useDeleteFunctionModuleMutation'; +export * from './useCreateInvitesModuleMutation'; +export * from './useUpdateInvitesModuleMutation'; +export * from './useDeleteInvitesModuleMutation'; +export * from './useCreateNamespaceModuleMutation'; +export * from './useUpdateNamespaceModuleMutation'; +export * from './useDeleteNamespaceModuleMutation'; export * from './useCreateComputeLogModuleMutation'; export * from './useUpdateComputeLogModuleMutation'; export * from './useDeleteComputeLogModuleMutation'; @@ -120,36 +126,33 @@ export * from './useDeleteStorageLogModuleMutation'; export * from './useCreateTransferLogModuleMutation'; export * from './useUpdateTransferLogModuleMutation'; export * from './useDeleteTransferLogModuleMutation'; -export * from './useCreateDbUsageModuleMutation'; -export * from './useUpdateDbUsageModuleMutation'; -export * from './useDeleteDbUsageModuleMutation'; -export * from './useCreateNotificationsModuleMutation'; -export * from './useUpdateNotificationsModuleMutation'; -export * from './useDeleteNotificationsModuleMutation'; export * from './useCreatePlansModuleMutation'; export * from './useUpdatePlansModuleMutation'; export * from './useDeletePlansModuleMutation'; -export * from './useCreateHierarchyModuleMutation'; -export * from './useUpdateHierarchyModuleMutation'; -export * from './useDeleteHierarchyModuleMutation'; -export * from './useCreateBillingModuleMutation'; -export * from './useUpdateBillingModuleMutation'; -export * from './useDeleteBillingModuleMutation'; export * from './useCreateBillingProviderModuleMutation'; export * from './useUpdateBillingProviderModuleMutation'; export * from './useDeleteBillingProviderModuleMutation'; -export * from './useCreateProfilesModuleMutation'; -export * from './useUpdateProfilesModuleMutation'; -export * from './useDeleteProfilesModuleMutation'; +export * from './useCreateDbUsageModuleMutation'; +export * from './useUpdateDbUsageModuleMutation'; +export * from './useDeleteDbUsageModuleMutation'; +export * from './useCreateHierarchyModuleMutation'; +export * from './useUpdateHierarchyModuleMutation'; +export * from './useDeleteHierarchyModuleMutation'; export * from './useCreatePermissionsModuleMutation'; export * from './useUpdatePermissionsModuleMutation'; export * from './useDeletePermissionsModuleMutation'; +export * from './useCreateNotificationsModuleMutation'; +export * from './useUpdateNotificationsModuleMutation'; +export * from './useDeleteNotificationsModuleMutation'; +export * from './useCreateProfilesModuleMutation'; +export * from './useUpdateProfilesModuleMutation'; +export * from './useDeleteProfilesModuleMutation'; +export * from './useCreateBillingModuleMutation'; +export * from './useUpdateBillingModuleMutation'; +export * from './useDeleteBillingModuleMutation'; export * from './useCreateRelationProvisionMutation'; export * from './useUpdateRelationProvisionMutation'; export * from './useDeleteRelationProvisionMutation'; -export * from './useCreateFunctionModuleMutation'; -export * from './useUpdateFunctionModuleMutation'; -export * from './useDeleteFunctionModuleMutation'; export * from './useCreateUserAuthModuleMutation'; export * from './useUpdateUserAuthModuleMutation'; export * from './useDeleteUserAuthModuleMutation'; @@ -162,15 +165,15 @@ export * from './useDeleteLimitsModuleMutation'; export * from './useCreateMembershipsModuleMutation'; export * from './useUpdateMembershipsModuleMutation'; export * from './useDeleteMembershipsModuleMutation'; +export * from './useCreateEntityTypeProvisionMutation'; +export * from './useUpdateEntityTypeProvisionMutation'; +export * from './useDeleteEntityTypeProvisionMutation'; export * from './useCreateStorageModuleMutation'; export * from './useUpdateStorageModuleMutation'; export * from './useDeleteStorageModuleMutation'; export * from './useCreateEventsModuleMutation'; export * from './useUpdateEventsModuleMutation'; export * from './useDeleteEventsModuleMutation'; -export * from './useCreateEntityTypeProvisionMutation'; -export * from './useUpdateEntityTypeProvisionMutation'; -export * from './useDeleteEntityTypeProvisionMutation'; export * from './useConstructBlueprintMutation'; export * from './useProvisionFullTextSearchMutation'; export * from './useProvisionIndexMutation'; diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.ts new file mode 100644 index 0000000000..87763873b9 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useCreateFunctionInvocationModuleMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for FunctionInvocationModule + * @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 { functionInvocationModuleKeys } from '../query-keys'; +import { functionInvocationModuleMutationKeys } from '../mutation-keys'; +import type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + CreateFunctionInvocationModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + CreateFunctionInvocationModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a FunctionInvocationModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateFunctionInvocationModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateFunctionInvocationModuleMutation( + params: { + selection: { + fields: S & FunctionInvocationModuleSelect; + } & HookStrictSelect, FunctionInvocationModuleSelect>; + } & Omit< + UseMutationOptions< + { + createFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + CreateFunctionInvocationModuleInput['functionInvocationModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + CreateFunctionInvocationModuleInput['functionInvocationModule'] +>; +export function useCreateFunctionInvocationModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: functionInvocationModuleMutationKeys.create(), + mutationFn: (data: CreateFunctionInvocationModuleInput['functionInvocationModule']) => + getClient() + .functionInvocationModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.ts new file mode 100644 index 0000000000..f5a00ef7ec --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useDeleteFunctionInvocationModuleMutation.ts @@ -0,0 +1,104 @@ +/** + * Delete mutation hook for FunctionInvocationModule + * @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 { functionInvocationModuleKeys } from '../query-keys'; +import { functionInvocationModuleMutationKeys } from '../mutation-keys'; +import type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, +} from '../../orm/input-types'; +/** + * Mutation hook for deleting a FunctionInvocationModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteFunctionInvocationModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteFunctionInvocationModuleMutation( + params: { + selection: { + fields: S & FunctionInvocationModuleSelect; + } & HookStrictSelect, FunctionInvocationModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteFunctionInvocationModuleMutation( + 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: functionInvocationModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .functionInvocationModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: functionInvocationModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.ts b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.ts new file mode 100644 index 0000000000..96c39f4b97 --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/mutations/useUpdateFunctionInvocationModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for FunctionInvocationModule + * @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 { functionInvocationModuleKeys } from '../query-keys'; +import { functionInvocationModuleMutationKeys } from '../mutation-keys'; +import type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + FunctionInvocationModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + FunctionInvocationModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a FunctionInvocationModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateFunctionInvocationModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', functionInvocationModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateFunctionInvocationModuleMutation( + params: { + selection: { + fields: S & FunctionInvocationModuleSelect; + } & HookStrictSelect, FunctionInvocationModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + { + id: string; + functionInvocationModulePatch: FunctionInvocationModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }, + Error, + { + id: string; + functionInvocationModulePatch: FunctionInvocationModulePatch; + } +>; +export function useUpdateFunctionInvocationModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + functionInvocationModulePatch: FunctionInvocationModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: functionInvocationModuleMutationKeys.all, + mutationFn: ({ + id, + functionInvocationModulePatch, + }: { + id: string; + functionInvocationModulePatch: FunctionInvocationModulePatch; + }) => + getClient() + .functionInvocationModule.update({ + where: { + id, + }, + data: functionInvocationModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: functionInvocationModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/index.ts b/sdk/constructive-react/src/modules/hooks/queries/index.ts index 07ebba194f..0986052b1f 100644 --- a/sdk/constructive-react/src/modules/hooks/queries/index.ts +++ b/sdk/constructive-react/src/modules/hooks/queries/index.ts @@ -37,10 +37,10 @@ export * from './useWebauthnCredentialsModulesQuery'; export * from './useWebauthnCredentialsModuleQuery'; export * from './useCryptoAddressesModulesQuery'; export * from './useCryptoAddressesModuleQuery'; -export * from './useIdentityProvidersModulesQuery'; -export * from './useIdentityProvidersModuleQuery'; export * from './useDenormalizedTableFieldsQuery'; export * from './useDenormalizedTableFieldQuery'; +export * from './useIdentityProvidersModulesQuery'; +export * from './useIdentityProvidersModuleQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; export * from './useBlueprintsQuery'; @@ -51,28 +51,32 @@ export * from './useBlueprintConstructionsQuery'; export * from './useBlueprintConstructionQuery'; export * from './useCryptoAuthModulesQuery'; export * from './useCryptoAuthModuleQuery'; -export * from './useRateLimitMetersModulesQuery'; -export * from './useRateLimitMetersModuleQuery'; export * from './useSessionsModulesQuery'; export * from './useSessionsModuleQuery'; -export * from './useConfigSecretsModulesQuery'; -export * from './useConfigSecretsModuleQuery'; +export * from './useSecureTableProvisionsQuery'; +export * from './useSecureTableProvisionQuery'; export * from './useMerkleStoreModulesQuery'; export * from './useMerkleStoreModuleQuery'; export * from './useGraphModulesQuery'; export * from './useGraphModuleQuery'; -export * from './useSecureTableProvisionsQuery'; -export * from './useSecureTableProvisionQuery'; -export * from './useInvitesModulesQuery'; -export * from './useInvitesModuleQuery'; export * from './useDatabaseProvisionModulesQuery'; export * from './useDatabaseProvisionModuleQuery'; -export * from './useNamespaceModulesQuery'; -export * from './useNamespaceModuleQuery'; +export * from './useConfigSecretsModulesQuery'; +export * from './useConfigSecretsModuleQuery'; +export * from './useRateLimitMetersModulesQuery'; +export * from './useRateLimitMetersModuleQuery'; export * from './useRealtimeModulesQuery'; export * from './useRealtimeModuleQuery'; export * from './useWebauthnAuthModulesQuery'; export * from './useWebauthnAuthModuleQuery'; +export * from './useFunctionInvocationModulesQuery'; +export * from './useFunctionInvocationModuleQuery'; +export * from './useFunctionModulesQuery'; +export * from './useFunctionModuleQuery'; +export * from './useInvitesModulesQuery'; +export * from './useInvitesModuleQuery'; +export * from './useNamespaceModulesQuery'; +export * from './useNamespaceModuleQuery'; export * from './useComputeLogModulesQuery'; export * from './useComputeLogModuleQuery'; export * from './useInferenceLogModulesQuery'; @@ -81,26 +85,24 @@ export * from './useStorageLogModulesQuery'; export * from './useStorageLogModuleQuery'; export * from './useTransferLogModulesQuery'; export * from './useTransferLogModuleQuery'; -export * from './useDbUsageModulesQuery'; -export * from './useDbUsageModuleQuery'; -export * from './useNotificationsModulesQuery'; -export * from './useNotificationsModuleQuery'; export * from './usePlansModulesQuery'; export * from './usePlansModuleQuery'; -export * from './useHierarchyModulesQuery'; -export * from './useHierarchyModuleQuery'; -export * from './useBillingModulesQuery'; -export * from './useBillingModuleQuery'; export * from './useBillingProviderModulesQuery'; export * from './useBillingProviderModuleQuery'; -export * from './useProfilesModulesQuery'; -export * from './useProfilesModuleQuery'; +export * from './useDbUsageModulesQuery'; +export * from './useDbUsageModuleQuery'; +export * from './useHierarchyModulesQuery'; +export * from './useHierarchyModuleQuery'; export * from './usePermissionsModulesQuery'; export * from './usePermissionsModuleQuery'; +export * from './useNotificationsModulesQuery'; +export * from './useNotificationsModuleQuery'; +export * from './useProfilesModulesQuery'; +export * from './useProfilesModuleQuery'; +export * from './useBillingModulesQuery'; +export * from './useBillingModuleQuery'; export * from './useRelationProvisionsQuery'; export * from './useRelationProvisionQuery'; -export * from './useFunctionModulesQuery'; -export * from './useFunctionModuleQuery'; export * from './useUserAuthModulesQuery'; export * from './useUserAuthModuleQuery'; export * from './useAgentModulesQuery'; @@ -109,11 +111,11 @@ export * from './useLimitsModulesQuery'; export * from './useLimitsModuleQuery'; export * from './useMembershipsModulesQuery'; export * from './useMembershipsModuleQuery'; +export * from './useEntityTypeProvisionsQuery'; +export * from './useEntityTypeProvisionQuery'; export * from './useStorageModulesQuery'; export * from './useStorageModuleQuery'; export * from './useEventsModulesQuery'; export * from './useEventsModuleQuery'; -export * from './useEntityTypeProvisionsQuery'; -export * from './useEntityTypeProvisionQuery'; export * from './useResolveBlueprintFieldQuery'; export * from './useResolveBlueprintTableQuery'; diff --git a/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModuleQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModuleQuery.ts new file mode 100644 index 0000000000..2a62514f4d --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModuleQuery.ts @@ -0,0 +1,151 @@ +/** + * Single item query hook for FunctionInvocationModule + * @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 { functionInvocationModuleKeys } from '../query-keys'; +import type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const functionInvocationModuleQueryKey = functionInvocationModuleKeys.detail; +/** + * Query hook for fetching a single FunctionInvocationModule + * + * @example + * ```tsx + * const { data, isLoading } = useFunctionInvocationModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useFunctionInvocationModuleQuery< + S extends FunctionInvocationModuleSelect, + TData = { + functionInvocationModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FunctionInvocationModuleSelect>; + } & Omit< + UseQueryOptions< + { + functionInvocationModule: InferSelectResult< + FunctionInvocationModuleWithRelations, + S + > | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFunctionInvocationModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: functionInvocationModuleKeys.detail(params.id), + queryFn: () => + getClient() + .functionInvocationModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single FunctionInvocationModule without React hooks + * + * @example + * ```ts + * const data = await fetchFunctionInvocationModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchFunctionInvocationModuleQuery< + S extends FunctionInvocationModuleSelect, +>(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FunctionInvocationModuleSelect>; +}): Promise<{ + functionInvocationModule: InferSelectResult | null; +}>; +export async function fetchFunctionInvocationModuleQuery(params: { + id: string; + selection: SelectionConfig; +}): Promise { + const args = buildSelectionArgs(params.selection); + return getClient() + .functionInvocationModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single FunctionInvocationModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchFunctionInvocationModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchFunctionInvocationModuleQuery< + S extends FunctionInvocationModuleSelect, +>( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, FunctionInvocationModuleSelect>; + } +): Promise; +export async function prefetchFunctionInvocationModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: functionInvocationModuleKeys.detail(params.id), + queryFn: () => + getClient() + .functionInvocationModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModulesQuery.ts b/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModulesQuery.ts new file mode 100644 index 0000000000..b68571abce --- /dev/null +++ b/sdk/constructive-react/src/modules/hooks/queries/useFunctionInvocationModulesQuery.ts @@ -0,0 +1,182 @@ +/** + * List query hook for FunctionInvocationModule + * @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 { functionInvocationModuleKeys } from '../query-keys'; +import type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + FunctionInvocationModuleSelect, + FunctionInvocationModuleWithRelations, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const functionInvocationModulesQueryKey = functionInvocationModuleKeys.list; +/** + * Query hook for fetching FunctionInvocationModule list + * + * @example + * ```tsx + * const { data, isLoading } = useFunctionInvocationModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useFunctionInvocationModulesQuery< + S extends FunctionInvocationModuleSelect, + TData = { + functionInvocationModules: ConnectionResult< + InferSelectResult + >; + }, +>( + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, FunctionInvocationModuleSelect>; + } & Omit< + UseQueryOptions< + { + functionInvocationModules: ConnectionResult< + InferSelectResult + >; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useFunctionInvocationModulesQuery( + params: { + selection: ListSelectionConfig< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: functionInvocationModuleKeys.list(args), + queryFn: () => getClient().functionInvocationModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch FunctionInvocationModule list without React hooks + * + * @example + * ```ts + * const data = await fetchFunctionInvocationModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchFunctionInvocationModulesQuery< + S extends FunctionInvocationModuleSelect, +>(params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, FunctionInvocationModuleSelect>; +}): Promise<{ + functionInvocationModules: ConnectionResult< + InferSelectResult + >; +}>; +export async function fetchFunctionInvocationModulesQuery(params: { + selection: ListSelectionConfig< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >; +}) { + const args = buildListSelectionArgs< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >(params.selection); + return getClient().functionInvocationModule.findMany(args).unwrap(); +} +/** + * Prefetch FunctionInvocationModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchFunctionInvocationModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchFunctionInvocationModulesQuery< + S extends FunctionInvocationModuleSelect, +>( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit< + ListSelectionConfig, + 'fields' + > & + HookStrictSelect, FunctionInvocationModuleSelect>; + } +): Promise; +export async function prefetchFunctionInvocationModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: functionInvocationModuleKeys.list(args), + queryFn: () => getClient().functionInvocationModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/modules/hooks/query-keys.ts b/sdk/constructive-react/src/modules/hooks/query-keys.ts index 3ba759a44f..9a9f527f9c 100644 --- a/sdk/constructive-react/src/modules/hooks/query-keys.ts +++ b/sdk/constructive-react/src/modules/hooks/query-keys.ts @@ -172,15 +172,6 @@ export const cryptoAddressesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...cryptoAddressesModuleKeys.details(), id] as const, } as const; -export const identityProvidersModuleKeys = { - /** All identityProvidersModule queries */ all: ['identityprovidersmodule'] as const, - /** List query keys */ lists: () => [...identityProvidersModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...identityProvidersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...identityProvidersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...identityProvidersModuleKeys.details(), id] as const, -} as const; export const denormalizedTableFieldKeys = { /** All denormalizedTableField queries */ all: ['denormalizedtablefield'] as const, /** List query keys */ lists: () => [...denormalizedTableFieldKeys.all, 'list'] as const, @@ -190,6 +181,15 @@ export const denormalizedTableFieldKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...denormalizedTableFieldKeys.details(), id] as const, } as const; +export const identityProvidersModuleKeys = { + /** All identityProvidersModule queries */ all: ['identityprovidersmodule'] as const, + /** List query keys */ lists: () => [...identityProvidersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...identityProvidersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...identityProvidersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...identityProvidersModuleKeys.details(), id] as const, +} as const; export const rlsModuleKeys = { /** All rlsModule queries */ all: ['rlsmodule'] as const, /** List query keys */ lists: () => [...rlsModuleKeys.all, 'list'] as const, @@ -235,15 +235,6 @@ export const cryptoAuthModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...cryptoAuthModuleKeys.details(), id] as const, } as const; -export const rateLimitMetersModuleKeys = { - /** All rateLimitMetersModule queries */ all: ['ratelimitmetersmodule'] as const, - /** List query keys */ lists: () => [...rateLimitMetersModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...rateLimitMetersModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rateLimitMetersModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...rateLimitMetersModuleKeys.details(), id] as const, -} as const; export const sessionsModuleKeys = { /** All sessionsModule queries */ all: ['sessionsmodule'] as const, /** List query keys */ lists: () => [...sessionsModuleKeys.all, 'list'] as const, @@ -253,14 +244,14 @@ export const sessionsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sessionsModuleKeys.details(), id] as const, } as const; -export const configSecretsModuleKeys = { - /** All configSecretsModule queries */ all: ['configsecretsmodule'] as const, - /** List query keys */ lists: () => [...configSecretsModuleKeys.all, 'list'] as const, +export const secureTableProvisionKeys = { + /** All secureTableProvision queries */ all: ['securetableprovision'] as const, + /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...configSecretsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...configSecretsModuleKeys.all, 'detail'] as const, + [...secureTableProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...secureTableProvisionKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...configSecretsModuleKeys.details(), id] as const, + [...secureTableProvisionKeys.details(), id] as const, } as const; export const merkleStoreModuleKeys = { /** All merkleStoreModule queries */ all: ['merklestoremodule'] as const, @@ -280,24 +271,6 @@ export const graphModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...graphModuleKeys.details(), id] as const, } as const; -export const secureTableProvisionKeys = { - /** All secureTableProvision queries */ all: ['securetableprovision'] as const, - /** List query keys */ lists: () => [...secureTableProvisionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...secureTableProvisionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...secureTableProvisionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...secureTableProvisionKeys.details(), id] as const, -} as const; -export const invitesModuleKeys = { - /** All invitesModule queries */ all: ['invitesmodule'] as const, - /** List query keys */ lists: () => [...invitesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...invitesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...invitesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...invitesModuleKeys.details(), id] as const, -} as const; export const databaseProvisionModuleKeys = { /** All databaseProvisionModule queries */ all: ['databaseprovisionmodule'] as const, /** List query keys */ lists: () => [...databaseProvisionModuleKeys.all, 'list'] as const, @@ -307,14 +280,23 @@ export const databaseProvisionModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...databaseProvisionModuleKeys.details(), id] as const, } as const; -export const namespaceModuleKeys = { - /** All namespaceModule queries */ all: ['namespacemodule'] as const, - /** List query keys */ lists: () => [...namespaceModuleKeys.all, 'list'] as const, +export const configSecretsModuleKeys = { + /** All configSecretsModule queries */ all: ['configsecretsmodule'] as const, + /** List query keys */ lists: () => [...configSecretsModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...namespaceModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...namespaceModuleKeys.all, 'detail'] as const, + [...configSecretsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...configSecretsModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...namespaceModuleKeys.details(), id] as const, + [...configSecretsModuleKeys.details(), id] as const, +} as const; +export const rateLimitMetersModuleKeys = { + /** All rateLimitMetersModule queries */ all: ['ratelimitmetersmodule'] as const, + /** List query keys */ lists: () => [...rateLimitMetersModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...rateLimitMetersModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rateLimitMetersModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rateLimitMetersModuleKeys.details(), id] as const, } as const; export const realtimeModuleKeys = { /** All realtimeModule queries */ all: ['realtimemodule'] as const, @@ -334,6 +316,42 @@ export const webauthnAuthModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...webauthnAuthModuleKeys.details(), id] as const, } as const; +export const functionInvocationModuleKeys = { + /** All functionInvocationModule queries */ all: ['functioninvocationmodule'] as const, + /** List query keys */ lists: () => [...functionInvocationModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionInvocationModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionInvocationModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionInvocationModuleKeys.details(), id] as const, +} as const; +export const functionModuleKeys = { + /** All functionModule queries */ all: ['functionmodule'] as const, + /** List query keys */ lists: () => [...functionModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...functionModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...functionModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...functionModuleKeys.details(), id] as const, +} as const; +export const invitesModuleKeys = { + /** All invitesModule queries */ all: ['invitesmodule'] as const, + /** List query keys */ lists: () => [...invitesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...invitesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...invitesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...invitesModuleKeys.details(), id] as const, +} as const; +export const namespaceModuleKeys = { + /** All namespaceModule queries */ all: ['namespacemodule'] as const, + /** List query keys */ lists: () => [...namespaceModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...namespaceModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...namespaceModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...namespaceModuleKeys.details(), id] as const, +} as const; export const computeLogModuleKeys = { /** All computeLogModule queries */ all: ['computelogmodule'] as const, /** List query keys */ lists: () => [...computeLogModuleKeys.all, 'list'] as const, @@ -370,24 +388,6 @@ export const transferLogModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...transferLogModuleKeys.details(), id] as const, } as const; -export const dbUsageModuleKeys = { - /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, - /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...dbUsageModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...dbUsageModuleKeys.details(), id] as const, -} as const; -export const notificationsModuleKeys = { - /** All notificationsModule queries */ all: ['notificationsmodule'] as const, - /** List query keys */ lists: () => [...notificationsModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...notificationsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...notificationsModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...notificationsModuleKeys.details(), id] as const, -} as const; export const plansModuleKeys = { /** All plansModule queries */ all: ['plansmodule'] as const, /** List query keys */ lists: () => [...plansModuleKeys.all, 'list'] as const, @@ -397,6 +397,24 @@ export const plansModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...plansModuleKeys.details(), id] as const, } as const; +export const billingProviderModuleKeys = { + /** All billingProviderModule queries */ all: ['billingprovidermodule'] as const, + /** List query keys */ lists: () => [...billingProviderModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...billingProviderModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...billingProviderModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...billingProviderModuleKeys.details(), id] as const, +} as const; +export const dbUsageModuleKeys = { + /** All dbUsageModule queries */ all: ['dbusagemodule'] as const, + /** List query keys */ lists: () => [...dbUsageModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...dbUsageModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...dbUsageModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...dbUsageModuleKeys.details(), id] as const, +} as const; export const hierarchyModuleKeys = { /** All hierarchyModule queries */ all: ['hierarchymodule'] as const, /** List query keys */ lists: () => [...hierarchyModuleKeys.all, 'list'] as const, @@ -406,23 +424,23 @@ export const hierarchyModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...hierarchyModuleKeys.details(), id] as const, } as const; -export const billingModuleKeys = { - /** All billingModule queries */ all: ['billingmodule'] as const, - /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, +export const permissionsModuleKeys = { + /** All permissionsModule queries */ all: ['permissionsmodule'] as const, + /** List query keys */ lists: () => [...permissionsModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...billingModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, + [...permissionsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...permissionsModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...billingModuleKeys.details(), id] as const, + [...permissionsModuleKeys.details(), id] as const, } as const; -export const billingProviderModuleKeys = { - /** All billingProviderModule queries */ all: ['billingprovidermodule'] as const, - /** List query keys */ lists: () => [...billingProviderModuleKeys.all, 'list'] as const, +export const notificationsModuleKeys = { + /** All notificationsModule queries */ all: ['notificationsmodule'] as const, + /** List query keys */ lists: () => [...notificationsModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...billingProviderModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...billingProviderModuleKeys.all, 'detail'] as const, + [...notificationsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...notificationsModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...billingProviderModuleKeys.details(), id] as const, + [...notificationsModuleKeys.details(), id] as const, } as const; export const profilesModuleKeys = { /** All profilesModule queries */ all: ['profilesmodule'] as const, @@ -433,14 +451,14 @@ export const profilesModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...profilesModuleKeys.details(), id] as const, } as const; -export const permissionsModuleKeys = { - /** All permissionsModule queries */ all: ['permissionsmodule'] as const, - /** List query keys */ lists: () => [...permissionsModuleKeys.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) => - [...permissionsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...permissionsModuleKeys.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) => - [...permissionsModuleKeys.details(), id] as const, + [...billingModuleKeys.details(), id] as const, } as const; export const relationProvisionKeys = { /** All relationProvision queries */ all: ['relationprovision'] as const, @@ -451,15 +469,6 @@ export const relationProvisionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...relationProvisionKeys.details(), id] as const, } as const; -export const functionModuleKeys = { - /** All functionModule queries */ all: ['functionmodule'] as const, - /** List query keys */ lists: () => [...functionModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...functionModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...functionModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...functionModuleKeys.details(), id] as const, -} as const; export const userAuthModuleKeys = { /** All userAuthModule queries */ all: ['userauthmodule'] as const, /** List query keys */ lists: () => [...userAuthModuleKeys.all, 'list'] as const, @@ -496,6 +505,15 @@ export const membershipsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...membershipsModuleKeys.details(), id] as const, } as const; +export const entityTypeProvisionKeys = { + /** All entityTypeProvision queries */ all: ['entitytypeprovision'] as const, + /** List query keys */ lists: () => [...entityTypeProvisionKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...entityTypeProvisionKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...entityTypeProvisionKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...entityTypeProvisionKeys.details(), id] as const, +} as const; export const storageModuleKeys = { /** All storageModule queries */ all: ['storagemodule'] as const, /** List query keys */ lists: () => [...storageModuleKeys.all, 'list'] as const, @@ -514,15 +532,6 @@ export const eventsModuleKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...eventsModuleKeys.details(), id] as const, } as const; -export const entityTypeProvisionKeys = { - /** All entityTypeProvision queries */ all: ['entitytypeprovision'] as const, - /** List query keys */ lists: () => [...entityTypeProvisionKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...entityTypeProvisionKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...entityTypeProvisionKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...entityTypeProvisionKeys.details(), id] as const, -} as const; // ============================================================================ // Custom Query Keys @@ -574,45 +583,46 @@ export const queryKeys = { usersModule: usersModuleKeys, webauthnCredentialsModule: webauthnCredentialsModuleKeys, cryptoAddressesModule: cryptoAddressesModuleKeys, - identityProvidersModule: identityProvidersModuleKeys, denormalizedTableField: denormalizedTableFieldKeys, + identityProvidersModule: identityProvidersModuleKeys, rlsModule: rlsModuleKeys, blueprint: blueprintKeys, blueprintTemplate: blueprintTemplateKeys, blueprintConstruction: blueprintConstructionKeys, cryptoAuthModule: cryptoAuthModuleKeys, - rateLimitMetersModule: rateLimitMetersModuleKeys, sessionsModule: sessionsModuleKeys, - configSecretsModule: configSecretsModuleKeys, + secureTableProvision: secureTableProvisionKeys, merkleStoreModule: merkleStoreModuleKeys, graphModule: graphModuleKeys, - secureTableProvision: secureTableProvisionKeys, - invitesModule: invitesModuleKeys, databaseProvisionModule: databaseProvisionModuleKeys, - namespaceModule: namespaceModuleKeys, + configSecretsModule: configSecretsModuleKeys, + rateLimitMetersModule: rateLimitMetersModuleKeys, realtimeModule: realtimeModuleKeys, webauthnAuthModule: webauthnAuthModuleKeys, + functionInvocationModule: functionInvocationModuleKeys, + functionModule: functionModuleKeys, + invitesModule: invitesModuleKeys, + namespaceModule: namespaceModuleKeys, computeLogModule: computeLogModuleKeys, inferenceLogModule: inferenceLogModuleKeys, storageLogModule: storageLogModuleKeys, transferLogModule: transferLogModuleKeys, - dbUsageModule: dbUsageModuleKeys, - notificationsModule: notificationsModuleKeys, plansModule: plansModuleKeys, - hierarchyModule: hierarchyModuleKeys, - billingModule: billingModuleKeys, billingProviderModule: billingProviderModuleKeys, - profilesModule: profilesModuleKeys, + dbUsageModule: dbUsageModuleKeys, + hierarchyModule: hierarchyModuleKeys, permissionsModule: permissionsModuleKeys, + notificationsModule: notificationsModuleKeys, + profilesModule: profilesModuleKeys, + billingModule: billingModuleKeys, relationProvision: relationProvisionKeys, - functionModule: functionModuleKeys, userAuthModule: userAuthModuleKeys, agentModule: agentModuleKeys, limitsModule: limitsModuleKeys, membershipsModule: membershipsModuleKeys, + entityTypeProvision: entityTypeProvisionKeys, storageModule: storageModuleKeys, eventsModule: eventsModuleKeys, - entityTypeProvision: entityTypeProvisionKeys, custom: customQueryKeys, } as const; /** Type representing all available query key scopes */ diff --git a/sdk/constructive-react/src/modules/orm/README.md b/sdk/constructive-react/src/modules/orm/README.md index 2d52e7421a..029e5d6ca7 100644 --- a/sdk/constructive-react/src/modules/orm/README.md +++ b/sdk/constructive-react/src/modules/orm/README.md @@ -38,45 +38,46 @@ const db = createClient({ | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | | `merkleStoreModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | | `permissionsModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | ## Table Operations @@ -681,9 +682,9 @@ const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.denormalizedTableField` -CRUD operations for IdentityProvidersModule records. +CRUD operations for DenormalizedTableField records. **Fields:** @@ -691,38 +692,39 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.denormalizedTableField` +### `db.identityProvidersModule` -CRUD operations for DenormalizedTableField records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -730,34 +732,35 @@ CRUD operations for DenormalizedTableField records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -970,48 +973,6 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionsModule` CRUD operations for SessionsModule records. @@ -1051,9 +1012,9 @@ const updated = await db.sessionsModule.update({ where: { id: '' }, data: const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.secureTableProvision` -CRUD operations for ConfigSecretsModule records. +CRUD operations for SecureTableProvision records. **Fields:** @@ -1062,36 +1023,32 @@ CRUD operations for ConfigSecretsModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | | `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | +| `outFields` | UUID | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.merkleStoreModule` @@ -1116,19 +1073,20 @@ CRUD operations for MerkleStoreModule records. | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | +| `functionPrefix` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1162,19 +1120,20 @@ CRUD operations for GraphModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1183,89 +1142,6 @@ const updated = await db.graphModule.update({ where: { id: '' }, data: { d const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -1308,9 +1184,9 @@ const updated = await db.databaseProvisionModule.update({ where: { id: '' const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceModule` +### `db.configSecretsModule` -CRUD operations for NamespaceModule records. +CRUD operations for ConfigSecretsModule records. **Fields:** @@ -1322,10 +1198,9 @@ CRUD operations for NamespaceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1333,29 +1208,75 @@ CRUD operations for NamespaceModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +// List all configSecretsModule records +const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.rateLimitMetersModule` -CRUD operations for RealtimeModule records. +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +CRUD operations for RealtimeModule records. **Fields:** @@ -1439,6 +1360,190 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.functionInvocationModule` + +CRUD operations for FunctionInvocationModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionModule records +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all namespaceModule records +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.computeLogModule` CRUD operations for ComputeLogModule records. @@ -1451,6 +1556,8 @@ CRUD operations for ComputeLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `computeLogTableId` | UUID | Yes | | `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1469,13 +1576,13 @@ CRUD operations for ComputeLogModule records. ```typescript // List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1496,6 +1603,8 @@ CRUD operations for InferenceLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1514,13 +1623,13 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1541,6 +1650,8 @@ CRUD operations for StorageLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `storageLogTableId` | UUID | Yes | | `storageLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1559,13 +1670,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1586,6 +1697,8 @@ CRUD operations for TransferLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `transferLogTableId` | UUID | Yes | | `transferLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1604,13 +1717,13 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1619,9 +1732,9 @@ const updated = await db.transferLogModule.update({ where: { id: '' }, dat const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.plansModule` -CRUD operations for DbUsageModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1631,18 +1744,20 @@ CRUD operations for DbUsageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1650,25 +1765,25 @@ CRUD operations for DbUsageModule records. **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.billingProviderModule` -CRUD operations for NotificationsModule records. +CRUD operations for BillingProviderModule records. **Fields:** @@ -1678,44 +1793,47 @@ CRUD operations for NotificationsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.dbUsageModule` -CRUD operations for PlansModule records. +CRUD operations for DbUsageModule records. **Fields:** @@ -1725,39 +1843,42 @@ CRUD operations for PlansModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// 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, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -1788,19 +1909,20 @@ CRUD operations for HierarchyModule records. | `getSubordinatesFunction` | String | Yes | | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1809,9 +1931,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.permissionsModule` -CRUD operations for BillingModule records. +CRUD operations for PermissionsModule records. **Fields:** @@ -1821,92 +1943,92 @@ CRUD operations for BillingModule records. | `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 | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `meterDefaultsTableId` | UUID | Yes | -| `meterDefaultsTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingProviderModule` +### `db.notificationsModule` -CRUD operations for BillingProviderModule records. +CRUD operations for NotificationsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -1921,6 +2043,8 @@ CRUD operations for ProfilesModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `profilePermissionsTableId` | UUID | Yes | @@ -1944,13 +2068,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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1959,9 +2083,9 @@ const updated = await db.profilesModule.update({ where: { id: '' }, data: const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.billingModule` -CRUD operations for PermissionsModule records. +CRUD operations for BillingModule records. **Fields:** @@ -1971,39 +2095,45 @@ CRUD operations for PermissionsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | 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 | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -2058,60 +2188,6 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.userAuthModule` CRUD operations for UserAuthModule records. @@ -2180,6 +2256,8 @@ CRUD operations for AgentModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `threadTableId` | UUID | Yes | | `messageTableId` | UUID | Yes | | `taskTableId` | UUID | Yes | @@ -2199,6 +2277,7 @@ CRUD operations for AgentModule records. | `hasPlans` | Boolean | Yes | | `hasResources` | Boolean | Yes | | `hasAgents` | Boolean | Yes | +| `shared` | Boolean | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -2207,18 +2286,19 @@ CRUD operations for AgentModule records. | `policies` | JSON | Yes | | `resources` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2239,6 +2319,8 @@ CRUD operations for LimitsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `defaultTableId` | UUID | Yes | @@ -2274,13 +2356,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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2301,6 +2383,8 @@ CRUD operations for MembershipsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `membershipsTableId` | UUID | Yes | | `membershipsTableName` | String | Yes | | `membersTableId` | UUID | Yes | @@ -2332,6 +2416,8 @@ CRUD operations for MembershipsModule records. | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | | `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2339,13 +2425,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2354,6 +2440,74 @@ const updated = await db.membershipsModule.update({ where: { id: '' }, dat const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all entityTypeProvision records +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Get one by id +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Create +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.storageModule` CRUD operations for StorageModule records. @@ -2366,6 +2520,8 @@ CRUD operations for StorageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | @@ -2396,6 +2552,7 @@ CRUD operations for StorageModule records. | `hasConfirmUpload` | Boolean | Yes | | `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2403,13 +2560,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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: 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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2430,6 +2587,8 @@ CRUD operations for EventsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -2465,6 +2624,7 @@ CRUD operations for EventsModule records. | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2472,13 +2632,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2487,76 +2647,6 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```typescript -// List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.resolveBlueprintField` diff --git a/sdk/constructive-react/src/modules/orm/index.ts b/sdk/constructive-react/src/modules/orm/index.ts index c119d6f628..e8c151cfdb 100644 --- a/sdk/constructive-react/src/modules/orm/index.ts +++ b/sdk/constructive-react/src/modules/orm/index.ts @@ -22,45 +22,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { SessionsModuleModel } from './models/sessionsModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { GraphModuleModel } from './models/graphModule'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { InvitesModuleModel } from './models/invitesModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { FunctionModuleModel } from './models/functionModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; import { PlansModuleModel } from './models/plansModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { ProfilesModuleModel } from './models/profilesModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; import { PermissionsModuleModel } from './models/permissionsModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { BillingModuleModel } from './models/billingModule'; import { RelationProvisionModel } from './models/relationProvision'; -import { FunctionModuleModel } from './models/functionModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; import { MembershipsModuleModel } from './models/membershipsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; import { EventsModuleModel } from './models/eventsModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -113,45 +114,46 @@ export function createClient(config: OrmClientConfig) { usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), blueprintConstruction: new BlueprintConstructionModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), sessionsModule: new SessionsModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), merkleStoreModule: new MerkleStoreModuleModel(client), graphModule: new GraphModuleModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - invitesModule: new InvitesModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), + functionModule: new FunctionModuleModel(client), + invitesModule: new InvitesModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), plansModule: new PlansModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - profilesModule: new ProfilesModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), permissionsModule: new PermissionsModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + billingModule: new BillingModuleModel(client), relationProvision: new RelationProvisionModel(client), - functionModule: new FunctionModuleModel(client), userAuthModule: new UserAuthModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), membershipsModule: new MembershipsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), eventsModule: new EventsModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-react/src/modules/orm/input-types.ts b/sdk/constructive-react/src/modules/orm/input-types.ts index 75db6ada94..62271cf277 100644 --- a/sdk/constructive-react/src/modules/orm/input-types.ts +++ b/sdk/constructive-react/src/modules/orm/input-types.ts @@ -400,6 +400,20 @@ export interface CryptoAddressesModule { apiName?: string | null; privateApiName?: string | null; } +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} /** * Entity-aware config row for the identity_providers_module, which provisions a per-database * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. @@ -418,6 +432,8 @@ export interface IdentityProvidersModule { schemaId?: string | null; /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; apiName?: string | null; @@ -426,20 +442,6 @@ export interface IdentityProvidersModule { prefix?: string | null; entityTableId?: string | null; } -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -566,22 +568,6 @@ export interface CryptoAuthModule { signUpWithKey?: string | null; signInWithChallenge?: string | null; } -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface SessionsModule { id: string; databaseId?: string | null; @@ -595,27 +581,30 @@ export interface SessionsModule { sessionCredentialsTable?: string | null; authSettingsTable?: string | null; } -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. - */ -export interface ConfigSecretsModule { +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database this provision belongs to. Required. */ databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ schemaId?: string | null; - privateSchemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string | null; - configDefinitionsTableId?: string | null; + /** 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 | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + /** 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?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** 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?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + /** 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[] | null; } export interface MerkleStoreModule { id: string; @@ -632,6 +621,7 @@ export interface MerkleStoreModule { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; createdAt?: string | null; } export interface GraphModule { @@ -652,51 +642,9 @@ export interface GraphModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** 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?: Record | null; - /** 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[] | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { id: string; @@ -723,17 +671,21 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: string | null; } -export interface NamespaceModule { +/** + * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + * User-scoped bcrypt credentials are handled by user_credentials_module. + */ +export interface ConfigSecretsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -741,6 +693,26 @@ export interface NamespaceModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } export interface RealtimeModule { id: string; @@ -776,11 +748,93 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } +export interface FunctionInvocationModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NamespaceModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface ComputeLogModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; computeLogTableId?: string | null; computeLogTableName?: string | null; usageDailyTableId?: string | null; @@ -800,6 +854,8 @@ export interface InferenceLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; usageDailyTableId?: string | null; @@ -819,6 +875,8 @@ export interface StorageLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; storageLogTableId?: string | null; storageLogTableName?: string | null; usageDailyTableId?: string | null; @@ -838,6 +896,8 @@ export interface TransferLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; transferLogTableId?: string | null; transferLogTableName?: string | null; usageDailyTableId?: string | null; @@ -852,53 +912,13 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface PlansModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -915,6 +935,54 @@ export interface PlansModule { apiName?: string | null; privateApiName?: string | null; } +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface HierarchyModule { id: string; databaseId?: string | null; @@ -936,53 +1004,54 @@ export interface HierarchyModule { getSubordinatesFunction?: string | null; getManagersFunction?: string | null; isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface BillingModule { +export interface PermissionsModule { 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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface BillingProviderModule { +export interface NotificationsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -991,6 +1060,8 @@ export interface ProfilesModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; profilePermissionsTableId?: string | null; @@ -1010,24 +1081,30 @@ export interface ProfilesModule { apiName?: string | null; privateApiName?: string | null; } -export interface PermissionsModule { +export interface BillingModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -1164,34 +1241,6 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1227,6 +1276,8 @@ export interface AgentModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -1246,6 +1297,7 @@ export interface AgentModule { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -1254,12 +1306,15 @@ export interface AgentModule { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface LimitsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -1296,6 +1351,8 @@ export interface MembershipsModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -1327,116 +1384,37 @@ export interface MembershipsModule { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface StorageModule { +/** + * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database to provision this entity type in. Required. */ databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ prefix?: string | null; /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ description?: string | null; @@ -1669,12 +1647,97 @@ export interface EntityTypeProvision { outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; } +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1705,8 +1768,8 @@ export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} export interface CryptoAddressesModuleRelations {} -export interface IdentityProvidersModuleRelations {} export interface DenormalizedTableFieldRelations {} +export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1721,42 +1784,43 @@ export interface BlueprintConstructionRelations { blueprint?: Blueprint | null; } export interface CryptoAuthModuleRelations {} -export interface RateLimitMetersModuleRelations {} export interface SessionsModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface SecureTableProvisionRelations {} export interface MerkleStoreModuleRelations { graphModules?: ConnectionResult; } export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface SecureTableProvisionRelations {} -export interface InvitesModuleRelations {} export interface DatabaseProvisionModuleRelations {} -export interface NamespaceModuleRelations {} +export interface ConfigSecretsModuleRelations {} +export interface RateLimitMetersModuleRelations {} export interface RealtimeModuleRelations {} export interface WebauthnAuthModuleRelations {} +export interface FunctionInvocationModuleRelations {} +export interface FunctionModuleRelations {} +export interface InvitesModuleRelations {} +export interface NamespaceModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} -export interface DbUsageModuleRelations {} -export interface NotificationsModuleRelations {} export interface PlansModuleRelations {} -export interface HierarchyModuleRelations {} -export interface BillingModuleRelations {} export interface BillingProviderModuleRelations {} -export interface ProfilesModuleRelations {} +export interface DbUsageModuleRelations {} +export interface HierarchyModuleRelations {} export interface PermissionsModuleRelations {} +export interface NotificationsModuleRelations {} +export interface ProfilesModuleRelations {} +export interface BillingModuleRelations {} export interface RelationProvisionRelations {} -export interface FunctionModuleRelations {} export interface UserAuthModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} export interface MembershipsModuleRelations {} +export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} export interface EventsModuleRelations {} -export interface EntityTypeProvisionRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & @@ -1783,52 +1847,54 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & + FunctionInvocationModuleRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { id?: boolean; @@ -1989,19 +2055,6 @@ export type CryptoAddressesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type DenormalizedTableFieldSelect = { id?: boolean; databaseId?: boolean; @@ -2016,6 +2069,21 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; +}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2123,23 +2191,7 @@ export type CryptoAuthModuleSelect = { signUpWithKey?: boolean; signInWithChallenge?: boolean; }; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; -export type SessionsModuleSelect = { +export type SessionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -2152,22 +2204,18 @@ export type SessionsModuleSelect = { sessionCredentialsTable?: boolean; authSettingsTable?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type SecureTableProvisionSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; policies?: boolean; - provisions?: boolean; - hasConfig?: boolean; + outFields?: boolean; }; export type MerkleStoreModuleSelect = { id?: boolean; @@ -2184,6 +2232,7 @@ export type MerkleStoreModuleSelect = { apiName?: boolean; privateApiName?: boolean; scope?: boolean; + functionPrefix?: boolean; createdAt?: boolean; graphModules?: { select: GraphModuleSelect; @@ -2210,42 +2259,12 @@ export type GraphModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -2262,17 +2281,16 @@ export type DatabaseProvisionModuleSelect = { updatedAt?: boolean; completedAt?: boolean; }; -export type NamespaceModuleSelect = { +export type ConfigSecretsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2280,6 +2298,26 @@ export type NamespaceModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + hasConfig?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; }; export type RealtimeModuleSelect = { id?: boolean; @@ -2315,11 +2353,93 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; +export type FunctionInvocationModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + secretDefinitionsTableId?: boolean; + definitionsTableName?: boolean; + secretDefinitionsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; computeLogTableId?: boolean; computeLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2339,6 +2459,8 @@ export type InferenceLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2358,6 +2480,8 @@ export type StorageLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; storageLogTableId?: boolean; storageLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2377,6 +2501,8 @@ export type TransferLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; transferLogTableId?: boolean; transferLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2391,66 +2517,74 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type NotificationsModuleSelect = { +export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type DbUsageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; prefix?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2475,53 +2609,54 @@ export type HierarchyModuleSelect = { getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; }; -export type BillingModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - meterDefaultsTableId?: boolean; - meterDefaultsTableName?: boolean; - recordUsageFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type BillingProviderModuleSelect = { +export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + suppressionsTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2530,6 +2665,8 @@ export type ProfilesModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; profilePermissionsTableId?: boolean; @@ -2549,24 +2686,30 @@ export type ProfilesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type PermissionsModuleSelect = { +export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2596,34 +2739,6 @@ export type RelationProvisionSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; -}; export type UserAuthModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2659,6 +2774,8 @@ export type AgentModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; threadTableId?: boolean; messageTableId?: boolean; taskTableId?: boolean; @@ -2678,6 +2795,7 @@ export type AgentModuleSelect = { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2686,12 +2804,15 @@ export type AgentModuleSelect = { policies?: boolean; resources?: boolean; provisions?: boolean; + defaultPermissions?: boolean; }; export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; defaultTableId?: boolean; @@ -2728,6 +2849,8 @@ export type MembershipsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; membershipsTableId?: boolean; membershipsTableName?: boolean; membersTableId?: boolean; @@ -2759,14 +2882,60 @@ export type MembershipsModuleSelect = { entityIdsByPerm?: boolean; entityIdsFunction?: boolean; memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; export type StorageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; bucketsTableName?: boolean; @@ -2797,6 +2966,7 @@ export type StorageModuleSelect = { hasConfirmUpload?: boolean; confirmUploadDelay?: boolean; fileEventsTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2805,6 +2975,8 @@ export type EventsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; eventAggregatesTableId?: boolean; @@ -2840,53 +3012,10 @@ export type EventsModuleSelect = { prefix?: boolean; entityTableId?: boolean; actorTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; -}; // ============ Table Filter Types ============ export interface DefaultIdsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3274,36 +3403,6 @@ export interface CryptoAddressesModuleFilter { /** Negates the expression. */ not?: CryptoAddressesModuleFilter; } -export interface IdentityProvidersModuleFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface DenormalizedTableFieldFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3336,7 +3435,7 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface RlsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3345,16 +3444,50 @@ export interface RlsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `authenticate` field. */ - authenticate?: StringFilter; - /** Filter by the object’s `authenticateStrict` field. */ - authenticateStrict?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface RlsModuleFilter { + /** 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 `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `authenticate` field. */ + authenticate?: StringFilter; + /** Filter by the object’s `authenticateStrict` field. */ + authenticateStrict?: StringFilter; /** Filter by the object’s `currentRole` field. */ currentRole?: StringFilter; /** Filter by the object’s `currentRoleId` field. */ @@ -3538,42 +3671,6 @@ export interface CryptoAuthModuleFilter { /** Negates the expression. */ not?: CryptoAuthModuleFilter; } -export interface RateLimitMetersModuleFilter { - /** 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 `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; -} export interface SessionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3604,43 +3701,35 @@ export interface SessionsModuleFilter { /** Negates the expression. */ not?: SessionsModuleFilter; } -export interface ConfigSecretsModuleFilter { +export interface SecureTableProvisionFilter { /** 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 `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: SecureTableProvisionFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: SecureTableProvisionFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: SecureTableProvisionFilter; } export interface MerkleStoreModuleFilter { /** Filter by the object’s `id` field. */ @@ -3671,6 +3760,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3719,6 +3810,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3730,76 +3823,6 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } -export interface SecureTableProvisionFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; -} -export interface InvitesModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; -} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3836,7 +3859,7 @@ export interface DatabaseProvisionModuleFilter { /** Negates the expression. */ not?: DatabaseProvisionModuleFilter; } -export interface NamespaceModuleFilter { +export interface ConfigSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3849,14 +3872,12 @@ export interface NamespaceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `namespacesTableId` field. */ - namespacesTableId?: UUIDFilter; - /** Filter by the object’s `namespaceEventsTableId` field. */ - namespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `namespacesTableName` field. */ - namespacesTableName?: StringFilter; - /** Filter by the object’s `namespaceEventsTableName` field. */ - namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3871,12 +3892,56 @@ export interface NamespaceModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `hasConfig` field. */ + hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: NamespaceModuleFilter[]; + and?: ConfigSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; + or?: ConfigSecretsModuleFilter[]; /** Negates the expression. */ - not?: NamespaceModuleFilter; + not?: ConfigSecretsModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; } export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ @@ -3954,7 +4019,7 @@ export interface WebauthnAuthModuleFilter { /** Negates the expression. */ not?: WebauthnAuthModuleFilter; } -export interface ComputeLogModuleFilter { +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3963,11 +4028,191 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface FunctionModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface InvitesModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +export interface NamespaceModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `namespacesTableId` field. */ + namespacesTableId?: UUIDFilter; + /** Filter by the object’s `namespaceEventsTableId` field. */ + namespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `namespacesTableName` field. */ + namespacesTableName?: StringFilter; + /** Filter by the object’s `namespaceEventsTableName` field. */ + namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ usageDailyTableName?: StringFilter; @@ -4005,6 +4250,10 @@ export interface InferenceLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `inferenceLogTableId` field. */ inferenceLogTableId?: UUIDFilter; /** Filter by the object’s `inferenceLogTableName` field. */ @@ -4047,6 +4296,10 @@ export interface StorageLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `storageLogTableId` field. */ storageLogTableId?: UUIDFilter; /** Filter by the object’s `storageLogTableName` field. */ @@ -4089,6 +4342,10 @@ export interface TransferLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `transferLogTableId` field. */ transferLogTableId?: UUIDFilter; /** Filter by the object’s `transferLogTableName` field. */ @@ -4122,7 +4379,7 @@ export interface TransferLogModuleFilter { /** Negates the expression. */ not?: TransferLogModuleFilter; } -export interface DbUsageModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4131,30 +4388,34 @@ export interface DbUsageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4162,13 +4423,13 @@ export interface DbUsageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PlansModuleFilter; } -export interface NotificationsModuleFilter { +export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4177,44 +4438,50 @@ export interface NotificationsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `notificationsTableId` field. */ - notificationsTableId?: UUIDFilter; - /** Filter by the object’s `readStateTableId` field. */ - readStateTableId?: UUIDFilter; - /** Filter by the object’s `preferencesTableId` field. */ - preferencesTableId?: UUIDFilter; - /** Filter by the object’s `channelsTableId` field. */ - channelsTableId?: UUIDFilter; - /** Filter by the object’s `deliveryLogTableId` field. */ - deliveryLogTableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; - /** Filter by the object’s `userSettingsTableId` field. */ - userSettingsTableId?: UUIDFilter; - /** Filter by the object’s `organizationSettingsTableId` field. */ - organizationSettingsTableId?: UUIDFilter; - /** Filter by the object’s `hasChannels` field. */ - hasChannels?: BooleanFilter; - /** Filter by the object’s `hasPreferences` field. */ - hasPreferences?: BooleanFilter; - /** Filter by the object’s `hasSettingsExtension` field. */ - hasSettingsExtension?: BooleanFilter; - /** Filter by the object’s `hasDigestMetadata` field. */ - hasDigestMetadata?: BooleanFilter; - /** Filter by the object’s `hasSubscriptions` field. */ - hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `productsTableId` field. */ + productsTableId?: UUIDFilter; + /** Filter by the object’s `pricesTableId` field. */ + pricesTableId?: UUIDFilter; + /** Filter by the object’s `subscriptionsTableId` field. */ + subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableId` field. */ + billingCustomersTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableName` field. */ + billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingProductsTableId` field. */ + billingProductsTableId?: UUIDFilter; + /** Filter by the object’s `billingProductsTableName` field. */ + billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingPricesTableId` field. */ + billingPricesTableId?: UUIDFilter; + /** Filter by the object’s `billingPricesTableName` field. */ + billingPricesTableName?: StringFilter; + /** Filter by the object’s `billingSubscriptionsTableId` field. */ + billingSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingSubscriptionsTableName` field. */ + billingSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `billingWebhookEventsTableId` field. */ + billingWebhookEventsTableId?: UUIDFilter; + /** Filter by the object’s `billingWebhookEventsTableName` field. */ + billingWebhookEventsTableName?: StringFilter; + /** Filter by the object’s `processBillingEventFunction` field. */ + processBillingEventFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; + and?: BillingProviderModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; + or?: BillingProviderModuleFilter[]; /** Negates the expression. */ - not?: NotificationsModuleFilter; + not?: BillingProviderModuleFilter; } -export interface PlansModuleFilter { +export interface DbUsageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4223,42 +4490,48 @@ export interface PlansModuleFilter { 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 `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: DbUsageModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: DbUsageModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: DbUsageModuleFilter; } export interface HierarchyModuleFilter { /** Filter by the object’s `id` field. */ @@ -4301,6 +4574,8 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; /** Filter by the object’s `isManagerOfFunction` field. */ isManagerOfFunction?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -4310,7 +4585,7 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface BillingModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4319,50 +4594,48 @@ export interface BillingModuleFilter { 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 `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `meterDefaultsTableId` field. */ - meterDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `meterDefaultsTableName` field. */ - meterDefaultsTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; + not?: PermissionsModuleFilter; } -export interface BillingProviderModuleFilter { +export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4371,48 +4644,50 @@ export interface BillingProviderModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `productsTableId` field. */ - productsTableId?: UUIDFilter; - /** Filter by the object’s `pricesTableId` field. */ - pricesTableId?: UUIDFilter; - /** Filter by the object’s `subscriptionsTableId` field. */ - subscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableId` field. */ - billingCustomersTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableName` field. */ - billingCustomersTableName?: StringFilter; - /** Filter by the object’s `billingProductsTableId` field. */ - billingProductsTableId?: UUIDFilter; - /** Filter by the object’s `billingProductsTableName` field. */ - billingProductsTableName?: StringFilter; - /** Filter by the object’s `billingPricesTableId` field. */ - billingPricesTableId?: UUIDFilter; - /** Filter by the object’s `billingPricesTableName` field. */ - billingPricesTableName?: StringFilter; - /** Filter by the object’s `billingSubscriptionsTableId` field. */ - billingSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingSubscriptionsTableName` field. */ - billingSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `billingWebhookEventsTableId` field. */ - billingWebhookEventsTableId?: UUIDFilter; - /** Filter by the object’s `billingWebhookEventsTableName` field. */ - billingWebhookEventsTableName?: StringFilter; - /** Filter by the object’s `processBillingEventFunction` field. */ - processBillingEventFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `notificationsTableId` field. */ + notificationsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; + /** Filter by the object’s `preferencesTableId` field. */ + preferencesTableId?: UUIDFilter; + /** Filter by the object’s `channelsTableId` field. */ + channelsTableId?: UUIDFilter; + /** Filter by the object’s `deliveryLogTableId` field. */ + deliveryLogTableId?: UUIDFilter; + /** Filter by the object’s `suppressionsTableId` field. */ + suppressionsTableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `userSettingsTableId` field. */ + userSettingsTableId?: UUIDFilter; + /** Filter by the object’s `organizationSettingsTableId` field. */ + organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: NotificationsModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: NotificationsModuleFilter; } export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ @@ -4423,8 +4698,12 @@ export interface ProfilesModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `profilePermissionsTableId` field. */ @@ -4466,7 +4745,7 @@ export interface ProfilesModuleFilter { /** Negates the expression. */ not?: ProfilesModuleFilter; } -export interface PermissionsModuleFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4475,42 +4754,54 @@ export interface PermissionsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: PermissionsModuleFilter; + not?: BillingModuleFilter; } export interface RelationProvisionFilter { /** Filter by the object’s `id` field. */ @@ -4568,66 +4859,6 @@ export interface RelationProvisionFilter { /** Negates the expression. */ not?: RelationProvisionFilter; } -export interface FunctionModuleFilter { - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; -} export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4701,6 +4932,10 @@ export interface AgentModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `threadTableId` field. */ threadTableId?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4739,6 +4974,8 @@ export interface AgentModuleFilter { hasResources?: BooleanFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `shared` field. */ + shared?: BooleanFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4755,6 +4992,8 @@ export interface AgentModuleFilter { resources?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ and?: AgentModuleFilter[]; /** Checks for any expressions in this list. */ @@ -4771,6 +5010,10 @@ export interface LimitsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ @@ -4847,6 +5090,10 @@ export interface MembershipsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Filter by the object’s `membershipsTableName` field. */ @@ -4909,6 +5156,10 @@ export interface MembershipsModuleFilter { entityIdsFunction?: StringFilter; /** Filter by the object’s `memberProfilesTableId` field. */ memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4920,6 +5171,94 @@ export interface MembershipsModuleFilter { /** Negates the expression. */ not?: MembershipsModuleFilter; } +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + outInvocationsTableId?: UUIDFilter; + /** Filter by the object’s `outExecutionLogsTableId` field. */ + outExecutionLogsTableId?: UUIDFilter; + /** Filter by the object’s `outSecretDefinitionsTableId` field. */ + outSecretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} export interface StorageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4929,6 +5268,10 @@ export interface StorageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ @@ -4989,6 +5332,8 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5009,6 +5354,10 @@ export interface EventsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `eventsTableId` field. */ eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ @@ -5079,6 +5428,8 @@ export interface EventsModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5090,98 +5441,6 @@ export interface EventsModuleFilter { /** Negates the expression. */ not?: EventsModuleFilter; } -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - outInvocationsTableId?: UUIDFilter; - /** Filter by the object’s `outExecutionLogsTableId` field. */ - outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; -} // ============ OrderBy Types ============ export type DefaultIdsModuleOrderBy = | 'NATURAL' @@ -5501,32 +5760,6 @@ export type CryptoAddressesModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type IdentityProvidersModuleOrderBy = - | '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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type DenormalizedTableFieldOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5555,6 +5788,36 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; +export type IdentityProvidersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5715,38 +5978,6 @@ export type CryptoAuthModuleOrderBy = | 'SIGN_UP_WITH_KEY_DESC' | 'SIGN_IN_WITH_CHALLENGE_ASC' | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | 'RATE_LIMIT_STATE_TABLE_ID_ASC' - | 'RATE_LIMIT_STATE_TABLE_ID_DESC' - | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' - | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' - | 'CHECK_RATE_LIMIT_FUNCTION_ASC' - | 'CHECK_RATE_LIMIT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type SessionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5773,7 +6004,7 @@ export type SessionsModuleOrderBy = | 'SESSION_CREDENTIALS_TABLE_DESC' | 'AUTH_SETTINGS_TABLE_ASC' | 'AUTH_SETTINGS_TABLE_DESC'; -export type ConfigSecretsModuleOrderBy = +export type SecureTableProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5783,30 +6014,22 @@ export type ConfigSecretsModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5839,6 +6062,8 @@ export type MerkleStoreModuleOrderBy = | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type GraphModuleOrderBy = @@ -5879,70 +6104,10 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC'; -export type InvitesModuleOrderBy = - | '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' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5975,7 +6140,7 @@ export type DatabaseProvisionModuleOrderBy = | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC'; -export type NamespaceModuleOrderBy = +export type ConfigSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5991,16 +6156,14 @@ export type NamespaceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NAMESPACES_TABLE_ID_ASC' - | 'NAMESPACES_TABLE_ID_DESC' - | 'NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'NAMESPACES_TABLE_NAME_ASC' - | 'NAMESPACES_TABLE_NAME_DESC' - | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' - | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' @@ -6012,7 +6175,47 @@ export type NamespaceModuleOrderBy = | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'HAS_CONFIG_ASC' + | 'HAS_CONFIG_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RATE_LIMIT_STATE_TABLE_ID_ASC' + | 'RATE_LIMIT_STATE_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' + | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' + | 'CHECK_RATE_LIMIT_FUNCTION_ASC' + | 'CHECK_RATE_LIMIT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type RealtimeModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6081,6 +6284,166 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; +export type FunctionInvocationModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type FunctionModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NamespaceModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NAMESPACES_TABLE_ID_ASC' + | 'NAMESPACES_TABLE_ID_DESC' + | 'NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'NAMESPACES_TABLE_NAME_ASC' + | 'NAMESPACES_TABLE_NAME_DESC' + | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' + | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6093,6 +6456,10 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'COMPUTE_LOG_TABLE_ID_ASC' | 'COMPUTE_LOG_TABLE_ID_DESC' | 'COMPUTE_LOG_TABLE_NAME_ASC' @@ -6131,6 +6498,10 @@ export type InferenceLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' | 'INFERENCE_LOG_TABLE_ID_DESC' | 'INFERENCE_LOG_TABLE_NAME_ASC' @@ -6169,6 +6540,10 @@ export type StorageLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'STORAGE_LOG_TABLE_ID_ASC' | 'STORAGE_LOG_TABLE_ID_DESC' | 'STORAGE_LOG_TABLE_NAME_ASC' @@ -6207,6 +6582,10 @@ export type TransferLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TRANSFER_LOG_TABLE_ID_ASC' | 'TRANSFER_LOG_TABLE_ID_DESC' | 'TRANSFER_LOG_TABLE_NAME_ASC' @@ -6233,91 +6612,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = - | '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' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type NotificationsModuleOrderBy = - | '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' - | 'NOTIFICATIONS_TABLE_ID_ASC' - | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'READ_STATE_TABLE_ID_ASC' - | 'READ_STATE_TABLE_ID_DESC' - | 'PREFERENCES_TABLE_ID_ASC' - | 'PREFERENCES_TABLE_ID_DESC' - | 'CHANNELS_TABLE_ID_ASC' - | 'CHANNELS_TABLE_ID_DESC' - | 'DELIVERY_LOG_TABLE_ID_ASC' - | 'DELIVERY_LOG_TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'USER_SETTINGS_TABLE_ID_ASC' - | 'USER_SETTINGS_TABLE_ID_DESC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' - | 'HAS_CHANNELS_ASC' - | 'HAS_CHANNELS_DESC' - | 'HAS_PREFERENCES_ASC' - | 'HAS_PREFERENCES_DESC' - | 'HAS_SETTINGS_EXTENSION_ASC' - | 'HAS_SETTINGS_EXTENSION_DESC' - | 'HAS_DIGEST_METADATA_ASC' - | 'HAS_DIGEST_METADATA_DESC' - | 'HAS_SUBSCRIPTIONS_ASC' - | 'HAS_SUBSCRIPTIONS_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PlansModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6329,6 +6624,10 @@ export type PlansModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'PLANS_TABLE_ID_ASC' | 'PLANS_TABLE_ID_DESC' | 'PLANS_TABLE_NAME_ASC' @@ -6359,100 +6658,6 @@ export type PlansModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type HierarchyModuleOrderBy = - | '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' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'METER_DEFAULTS_TABLE_ID_ASC' - | 'METER_DEFAULTS_TABLE_ID_DESC' - | 'METER_DEFAULTS_TABLE_NAME_ASC' - | 'METER_DEFAULTS_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6501,7 +6706,7 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type ProfilesModuleOrderBy = +export type DbUsageModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6513,42 +6718,90 @@ export type ProfilesModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type HierarchyModuleOrderBy = + | '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' + | 'CHART_EDGES_TABLE_ID_ASC' + | 'CHART_EDGES_TABLE_ID_DESC' + | 'CHART_EDGES_TABLE_NAME_ASC' + | 'CHART_EDGES_TABLE_NAME_DESC' + | 'HIERARCHY_SPRT_TABLE_ID_ASC' + | 'HIERARCHY_SPRT_TABLE_ID_DESC' + | 'HIERARCHY_SPRT_TABLE_NAME_ASC' + | 'HIERARCHY_SPRT_TABLE_NAME_DESC' + | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' + | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SPRT_TABLE_NAME_ASC' + | 'SPRT_TABLE_NAME_DESC' + | 'REBUILD_HIERARCHY_FUNCTION_ASC' + | 'REBUILD_HIERARCHY_FUNCTION_DESC' + | 'GET_SUBORDINATES_FUNCTION_ASC' + | 'GET_SUBORDINATES_FUNCTION_DESC' + | 'GET_MANAGERS_FUNCTION_ASC' + | 'GET_MANAGERS_FUNCTION_DESC' + | 'IS_MANAGER_OF_FUNCTION_ASC' + | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6561,6 +6814,10 @@ export type PermissionsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6591,7 +6848,7 @@ export type PermissionsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6599,10 +6856,166 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NOTIFICATIONS_TABLE_ID_ASC' + | 'NOTIFICATIONS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' + | 'PREFERENCES_TABLE_ID_ASC' + | 'PREFERENCES_TABLE_ID_DESC' + | 'CHANNELS_TABLE_ID_ASC' + | 'CHANNELS_TABLE_ID_DESC' + | 'DELIVERY_LOG_TABLE_ID_ASC' + | 'DELIVERY_LOG_TABLE_ID_DESC' + | 'SUPPRESSIONS_TABLE_ID_ASC' + | 'SUPPRESSIONS_TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'USER_SETTINGS_TABLE_ID_ASC' + | 'USER_SETTINGS_TABLE_ID_DESC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type ProfilesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' + | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' + | 'PROFILE_GRANTS_TABLE_ID_ASC' + | 'PROFILE_GRANTS_TABLE_ID_DESC' + | 'PROFILE_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' + | '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' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_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' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'METER_DEFAULTS_TABLE_ID_ASC' + | 'METER_DEFAULTS_TABLE_ID_DESC' + | 'METER_DEFAULTS_TABLE_NAME_ASC' + | 'METER_DEFAULTS_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' | 'TARGET_TABLE_ID_DESC' | 'FIELD_NAME_ASC' @@ -6643,62 +7056,6 @@ export type RelationProvisionOrderBy = | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6771,6 +7128,10 @@ export type AgentModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -6809,6 +7170,8 @@ export type AgentModuleOrderBy = | 'HAS_RESOURCES_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'SHARED_ASC' + | 'SHARED_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6824,7 +7187,9 @@ export type AgentModuleOrderBy = | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type LimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6837,6 +7202,10 @@ export type LimitsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6909,6 +7278,10 @@ export type MembershipsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' @@ -6971,11 +7344,15 @@ export type MembershipsModuleOrderBy = | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type StorageModuleOrderBy = +export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6983,46 +7360,134 @@ export type StorageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | 'OUT_INVOCATIONS_TABLE_ID_DESC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' | 'MAX_FILENAME_LENGTH_ASC' @@ -7047,6 +7512,8 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7063,6 +7530,10 @@ export type EventsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'EVENTS_TABLE_NAME_ASC' @@ -7133,98 +7604,12 @@ export type EventsModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | 'OUT_INVOCATIONS_TABLE_ID_DESC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateDefaultIdsModuleInput { clientMutationId?: string; @@ -7714,42 +8099,6 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; denormalizedTableField: { @@ -7788,16 +8137,56 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateRlsModuleInput { +export interface CreateIdentityProvidersModuleInput { clientMutationId?: string; - rlsModule: { + identityProvidersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; authenticateStrict?: string; currentRole?: string; currentRoleId?: string; @@ -7986,48 +8375,6 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateSessionsModuleInput { clientMutationId?: string; sessionsModule: { @@ -8064,47 +8411,39 @@ export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateSecureTableProvisionInput { clientMutationId?: string; - configSecretsModule: { + secureTableProvision: { databaseId: string; schemaId?: string; - privateSchemaId?: string; tableId?: string; - configDefinitionsTableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; policies?: Record; - provisions?: Record; - hasConfig?: boolean; + outFields?: string[]; }; } -export interface ConfigSecretsModulePatch { +export interface SecureTableProvisionPatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + outFields?: string[] | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + secureTableProvisionPatch: SecureTableProvisionPatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; id: string; } @@ -8124,6 +8463,7 @@ export interface CreateMerkleStoreModuleInput { apiName?: string; privateApiName?: string; scope?: string; + functionPrefix?: string; }; } export interface MerkleStoreModulePatch { @@ -8140,6 +8480,7 @@ export interface MerkleStoreModulePatch { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; } export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; @@ -8169,6 +8510,7 @@ export interface CreateGraphModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface GraphModulePatch { @@ -8188,6 +8530,7 @@ export interface GraphModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateGraphModuleInput { clientMutationId?: string; @@ -8198,88 +8541,6 @@ export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -export interface SecureTableProvisionPatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; -} -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; -} -export interface DeleteSecureTableProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -8318,18 +8579,17 @@ export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateNamespaceModuleInput { +export interface CreateConfigSecretsModuleInput { clientMutationId?: string; - namespaceModule: { + configSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -8337,18 +8597,18 @@ export interface CreateNamespaceModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + hasConfig?: boolean; }; } -export interface NamespaceModulePatch { +export interface ConfigSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -8356,38 +8616,87 @@ export interface NamespaceModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; } -export interface UpdateNamespaceModuleInput { +export interface UpdateConfigSecretsModuleInput { clientMutationId?: string; id: string; - namespaceModulePatch: NamespaceModulePatch; + configSecretsModulePatch: ConfigSecretsModulePatch; } -export interface DeleteNamespaceModuleInput { +export interface DeleteConfigSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; - realtimeModule: { + rateLimitMetersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RealtimeModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; subscriptionsSchemaId?: string | null; changeLogTableId?: string | null; listenerNodeTableId?: string | null; @@ -8454,299 +8763,411 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateFunctionModuleInput { clientMutationId?: string; - inferenceLogModule: { + functionModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface InferenceLogModulePatch { +export interface FunctionModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateFunctionModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + functionModulePatch: FunctionModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - storageLogModule: { + invitesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateNamespaceModuleInput { clientMutationId?: string; - transferLogModule: { + namespaceModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface TransferLogModulePatch { +export interface NamespaceModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - dbUsageModule: { + inferenceLogModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; interval?: string; retention?: string; premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; interval?: string | null; retention?: string | null; premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateNotificationsModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - notificationsModule: { + storageLogModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface NotificationsModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateNotificationsModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - notificationsModulePatch: NotificationsModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteNotificationsModuleInput { +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -8756,6 +9177,8 @@ export interface CreatePlansModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; plansTableId?: string; plansTableName?: string; planLimitsTableId?: string; @@ -8777,6 +9200,8 @@ export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -8802,121 +9227,9 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateHierarchyModuleInput { +export interface CreateBillingProviderModuleInput { clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - scope?: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - scope?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { + billingProviderModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; @@ -8972,61 +9285,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateProfilesModuleInput { +export interface CreateDbUsageModuleInput { clientMutationId?: string; - profilesModule: { + dbUsageModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; } -export interface ProfilesModulePatch { +export interface DbUsageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateProfilesModuleInput { +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - profilesModulePatch: ProfilesModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteProfilesModuleInput { +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } @@ -9036,6 +9405,8 @@ export interface CreatePermissionsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9057,6 +9428,8 @@ export interface PermissionsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9082,131 +9455,251 @@ export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - relationProvision: { + notificationsModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; - }; -} -export interface RelationProvisionPatch { - databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; - policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; } -export interface UpdateRelationProvisionInput { +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + notificationsModulePatch: NotificationsModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionModuleInput { +export interface CreateProfilesModuleInput { clientMutationId?: string; - functionModule: { + profilesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; scope?: string; prefix?: string; entityTableId?: string; - policies?: Record; - provisions?: Record; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionModulePatch { +export interface ProfilesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; } -export interface UpdateFunctionModuleInput { +export interface UpdateRelationProvisionInput { clientMutationId?: string; id: string; - functionModulePatch: FunctionModulePatch; + relationProvisionPatch: RelationProvisionPatch; } -export interface DeleteFunctionModuleInput { +export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } @@ -9286,6 +9779,8 @@ export interface CreateAgentModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; threadTableId?: string; messageTableId?: string; taskTableId?: string; @@ -9305,6 +9800,7 @@ export interface CreateAgentModuleInput { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: string; privateApiName?: string; scope?: string; @@ -9313,12 +9809,15 @@ export interface CreateAgentModuleInput { policies?: Record; resources?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface AgentModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -9338,6 +9837,7 @@ export interface AgentModulePatch { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9346,6 +9846,7 @@ export interface AgentModulePatch { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -9362,6 +9863,8 @@ export interface CreateLimitsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9398,6 +9901,8 @@ export interface LimitsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9444,6 +9949,8 @@ export interface CreateMembershipsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; membershipsTableId?: string; membershipsTableName?: string; membersTableId?: string; @@ -9475,6 +9982,8 @@ export interface CreateMembershipsModuleInput { entityIdsByPerm?: string; entityIdsFunction?: string; memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; }; @@ -9483,6 +9992,8 @@ export interface MembershipsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -9514,6 +10025,8 @@ export interface MembershipsModulePatch { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } @@ -9526,12 +10039,108 @@ export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateStorageModuleInput { clientMutationId?: string; storageModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; bucketsTableId?: string; filesTableId?: string; bucketsTableName?: string; @@ -9562,6 +10171,7 @@ export interface CreateStorageModuleInput { hasConfirmUpload?: boolean; confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9570,6 +10180,8 @@ export interface StorageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; bucketsTableName?: string | null; @@ -9600,6 +10212,7 @@ export interface StorageModulePatch { hasConfirmUpload?: boolean | null; confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9618,6 +10231,8 @@ export interface CreateEventsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; eventsTableId?: string; eventsTableName?: string; eventAggregatesTableId?: string; @@ -9653,6 +10268,7 @@ export interface CreateEventsModuleInput { prefix?: string; entityTableId?: string; actorTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9661,6 +10277,8 @@ export interface EventsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; eventAggregatesTableId?: string | null; @@ -9696,6 +10314,7 @@ export interface EventsModulePatch { prefix?: string | null; entityTableId?: string | null; actorTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9708,104 +10327,6 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Blueprint: { @@ -9967,15 +10488,6 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleToManyGraphModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: GraphModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: GraphModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: GraphModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -10015,44 +10527,1586 @@ export interface JSONListFilter { /** Any array item is greater than or equal to the specified value. */ anyGreaterThanOrEqualTo?: Record; } -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** 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?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyGraphModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: GraphModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: GraphModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: GraphModuleFilter; } -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ +/** An input for mutations affecting `DefaultIdsModule` */ +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +/** An input for mutations affecting `MembershipTypesModule` */ +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; +} +/** An input for mutations affecting `ConfigSecretsOrgModule` */ +export interface ConfigSecretsOrgModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DevicesModule` */ +export interface DevicesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; +} +/** An input for mutations affecting `I18NModule` */ +export interface I18NModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; +} +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RateLimitsModule` */ +export interface RateLimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; +} +/** An input for mutations affecting `UsersModule` */ +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnCredentialsModule` */ +export interface WebauthnCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `CryptoAddressesModule` */ +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DenormalizedTableField` */ +export interface DenormalizedTableFieldInput { + id?: string; + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; +} +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `Blueprint` */ +export interface BlueprintInput { + /** Unique identifier for this blueprint. */ + id?: string; + /** The user who owns this blueprint. */ + ownerId: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name: string; + /** Human-readable display name for the blueprint. */ + displayName: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. */ + definition: Record; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintTemplate` */ +export interface BlueprintTemplateInput { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition: Record; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintConstruction` */ +export interface BlueprintConstructionInput { + /** Unique identifier for this construction attempt. */ + id?: string; + /** The blueprint that was constructed. */ + blueprintId: string; + /** The database the blueprint was constructed into. */ + databaseId: string; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string; + /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). */ + status?: string; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. */ + constructedDefinition?: Record; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Timestamp when this construction attempt was created. */ + createdAt?: string; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAuthModule` */ +export interface CryptoAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; +} +/** An input for mutations affecting `SessionsModule` */ +export interface SessionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} +/** 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; +} +/** 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?: Record; + /** 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?: Record[]; + /** 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?: Record; + /** 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?: Record; + /** 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[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + createdAt?: string; +} +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `ConfigSecretsModule` */ +export interface ConfigSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; +} +/** An input for mutations affecting `RateLimitMetersModule` */ +export interface RateLimitMetersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnAuthModule` */ +export interface WebauthnAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + authSettingsTableId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; +} +/** An input for mutations affecting `FunctionInvocationModule` */ +export interface FunctionInvocationModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `StorageLogModule` */ +export interface StorageLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `TransferLogModule` */ +export interface TransferLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingProviderModule` */ +export interface BillingProviderModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `HierarchyModule` */ +export interface HierarchyModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RelationProvision` */ +export interface RelationProvisionInput { + /** Unique identifier for this relation provision row. */ + id?: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId: string; + /** + * The type of relation to create. Uses SuperCase naming: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType: string; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId: string; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId: string; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean; + /** + * For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. + * Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. + * Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + nodes?: Record; + /** For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. */ + grants?: Record; + /** + * For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. + * Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. + * Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + policies?: Record; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; +} +/** An input for mutations affecting `UserAuthModule` */ +export interface UserAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInCrossOriginFunction?: string; + requestCrossOriginTokenFunction?: string; + extendTokenExpires?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `AgentModule` */ +export interface AgentModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + planTableId?: string; + agentTableId?: string; + personaTableId?: string; + resourceTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + planTableName?: string; + agentTableName?: string; + personaTableName?: string; + resourceTableName?: string; + hasPlans?: boolean; + hasResources?: boolean; + hasAgents?: boolean; + shared?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + resources?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EntityTypeProvision` */ +export interface EntityTypeProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database to provision this entity type in. Required. */ + databaseId: string; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name: string; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix: string; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record; + agents?: Record; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[]; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string; + outPathSharesTableId?: string; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: Record; + provisions?: Record; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EventsModule` */ +export interface EventsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + pruneEvents?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** 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?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `version` field. */ version?: StringFilter; @@ -10150,25 +12204,6 @@ export interface BlueprintFilter { /** `blueprintConstructions` exist. */ blueprintConstructionsExist?: boolean; } -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ @@ -10205,6 +12240,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -10472,6 +12509,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -11326,68 +13365,23 @@ export type UpdateCryptoAddressesModulePayloadSelect = { cryptoAddressesModule?: { select: CryptoAddressesModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; }; -export interface DeleteIdentityProvidersModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteIdentityProvidersModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; export interface CreateDenormalizedTableFieldPayload { @@ -11435,6 +13429,51 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -11660,51 +13699,6 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; export interface CreateSessionsModulePayload { clientMutationId?: string | null; /** The `SessionsModule` that was created by this mutation. */ @@ -11750,49 +13744,49 @@ export type DeleteSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -11879,100 +13873,10 @@ export interface DeleteGraphModulePayload { export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; + select: GraphModuleSelect; }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -12020,49 +13924,94 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { +export interface CreateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type CreateNamespaceModulePayloadSelect = { +export type CreateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface UpdateNamespaceModulePayload { +export interface UpdateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type UpdateNamespaceModulePayloadSelect = { +export type UpdateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface DeleteNamespaceModulePayload { +export interface DeleteConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type DeleteNamespaceModulePayloadSelect = { +export type DeleteConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type CreateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type UpdateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type DeleteRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; export interface CreateRealtimeModulePayload { @@ -12112,47 +14061,227 @@ export type DeleteRealtimeModulePayloadSelect = { }; export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface CreateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was created by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type CreateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was updated by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type UpdateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was deleted by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type DeleteFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface CreateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type CreateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface UpdateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type UpdateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface DeleteFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type DeleteFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -12335,139 +14464,139 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateNotificationsModulePayload { +export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type CreateNotificationsModulePayloadSelect = { +export type CreateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface UpdateNotificationsModulePayload { +export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type UpdateNotificationsModulePayloadSelect = { +export type UpdateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface DeleteNotificationsModulePayload { +export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteNotificationsModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface CreatePlansModulePayload { +export interface CreateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type CreatePlansModulePayloadSelect = { +export type CreateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdatePlansModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdatePlansModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeletePlansModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeletePlansModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateHierarchyModulePayload { @@ -12515,94 +14644,94 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface CreateBillingProviderModulePayload { +export interface CreateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type CreateBillingProviderModulePayloadSelect = { +export type CreateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface UpdateBillingProviderModulePayload { +export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type UpdateBillingProviderModulePayloadSelect = { +export type UpdateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface DeleteBillingProviderModulePayload { +export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; export interface CreateProfilesModulePayload { @@ -12650,49 +14779,49 @@ export type DeleteProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreatePermissionsModulePayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdatePermissionsModulePayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdatePermissionsModulePayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeletePermissionsModulePayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeletePermissionsModulePayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateRelationProvisionPayload { @@ -12740,51 +14869,6 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was created by this mutation. */ @@ -12965,6 +15049,51 @@ export type DeleteMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; export interface CreateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was created by this mutation. */ @@ -13046,58 +15175,13 @@ export interface DeleteEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { +export type DeleteEventsModulePayloadSelect = { clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; + eventsModule?: { + select: EventsModuleSelect; }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; }; }; export interface ProvisionTableRecord { @@ -13324,18 +15408,6 @@ export type CryptoAddressesModuleEdgeSelect = { select: CryptoAddressesModuleSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { cursor?: string | null; @@ -13348,6 +15420,18 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -13408,18 +15492,6 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; /** A `SessionsModule` edge in the connection. */ export interface SessionsModuleEdge { cursor?: string | null; @@ -13432,16 +15504,16 @@ export type SessionsModuleEdgeSelect = { select: SessionsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type SecureTableProvisionEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: SecureTableProvisionSelect; }; }; /** A `MerkleStoreModule` edge in the connection. */ @@ -13468,30 +15540,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} -export type SecureTableProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: SecureTableProvisionSelect; - }; -}; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -13504,16 +15552,28 @@ export type DatabaseProvisionModuleEdgeSelect = { select: DatabaseProvisionModuleSelect; }; }; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { +/** A `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; } -export type NamespaceModuleEdgeSelect = { +export type ConfigSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: NamespaceModuleSelect; + select: ConfigSecretsModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; }; }; /** A `RealtimeModule` edge in the connection. */ @@ -13540,6 +15600,54 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { + cursor?: string | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; +} +export type FunctionInvocationModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionInvocationModuleSelect; + }; +}; +/** A `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { cursor?: string | null; @@ -13588,40 +15696,40 @@ export type TransferLogModuleEdgeSelect = { select: TransferLogModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type DbUsageModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: PlansModuleSelect; }; }; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; } -export type NotificationsModuleEdgeSelect = { +export type BillingProviderModuleEdgeSelect = { cursor?: boolean; node?: { - select: NotificationsModuleSelect; + select: BillingProviderModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; } -export type PlansModuleEdgeSelect = { +export type DbUsageModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: DbUsageModuleSelect; }; }; /** A `HierarchyModule` edge in the connection. */ @@ -13636,28 +15744,28 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; } -export type BillingModuleEdgeSelect = { +export type PermissionsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: PermissionsModuleSelect; }; }; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; } -export type BillingProviderModuleEdgeSelect = { +export type NotificationsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingProviderModuleSelect; + select: NotificationsModuleSelect; }; }; /** A `ProfilesModule` edge in the connection. */ @@ -13672,16 +15780,16 @@ export type ProfilesModuleEdgeSelect = { select: ProfilesModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type PermissionsModuleEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: BillingModuleSelect; }; }; /** A `RelationProvision` edge in the connection. */ @@ -13696,18 +15804,6 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { cursor?: string | null; @@ -13756,6 +15852,18 @@ export type MembershipsModuleEdgeSelect = { select: MembershipsModuleSelect; }; }; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; /** A `StorageModule` edge in the connection. */ export interface StorageModuleEdge { cursor?: string | null; @@ -13780,15 +15888,3 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; diff --git a/sdk/constructive-react/src/modules/orm/models/functionInvocationModule.ts b/sdk/constructive-react/src/modules/orm/models/functionInvocationModule.ts new file mode 100644 index 0000000000..f8b9e92fc1 --- /dev/null +++ b/sdk/constructive-react/src/modules/orm/models/functionInvocationModule.ts @@ -0,0 +1,246 @@ +/** + * FunctionInvocationModule 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 { + FunctionInvocationModule, + FunctionInvocationModuleWithRelations, + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, + CreateFunctionInvocationModuleInput, + UpdateFunctionInvocationModuleInput, + FunctionInvocationModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FunctionInvocationModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + 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, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FunctionInvocationModule', + 'createFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.data, + 'CreateFunctionInvocationModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'createFunctionInvocationModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FunctionInvocationModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FunctionInvocationModule', + 'updateFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.where.id, + args.data, + 'UpdateFunctionInvocationModuleInput', + 'id', + 'functionInvocationModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'updateFunctionInvocationModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FunctionInvocationModule', + 'deleteFunctionInvocationModule', + 'functionInvocationModule', + { + id: args.where.id, + }, + 'DeleteFunctionInvocationModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'deleteFunctionInvocationModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/modules/orm/models/index.ts b/sdk/constructive-react/src/modules/orm/models/index.ts index 7afef56c9e..f478d2642f 100644 --- a/sdk/constructive-react/src/modules/orm/models/index.ts +++ b/sdk/constructive-react/src/modules/orm/models/index.ts @@ -20,42 +20,43 @@ export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { SessionsModuleModel } from './sessionsModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { GraphModuleModel } from './graphModule'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { InvitesModuleModel } from './invitesModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { NamespaceModuleModel } from './namespaceModule'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RealtimeModuleModel } from './realtimeModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { FunctionModuleModel } from './functionModule'; +export { InvitesModuleModel } from './invitesModule'; +export { NamespaceModuleModel } from './namespaceModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { NotificationsModuleModel } from './notificationsModule'; export { PlansModuleModel } from './plansModule'; -export { HierarchyModuleModel } from './hierarchyModule'; -export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { ProfilesModuleModel } from './profilesModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { HierarchyModuleModel } from './hierarchyModule'; export { PermissionsModuleModel } from './permissionsModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { BillingModuleModel } from './billingModule'; export { RelationProvisionModel } from './relationProvision'; -export { FunctionModuleModel } from './functionModule'; export { UserAuthModuleModel } from './userAuthModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; export { MembershipsModuleModel } from './membershipsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; export { EventsModuleModel } from './eventsModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-react/src/modules/schema-types.ts b/sdk/constructive-react/src/modules/schema-types.ts index 12b6fac7c6..9540f9f05e 100644 --- a/sdk/constructive-react/src/modules/schema-types.ts +++ b/sdk/constructive-react/src/modules/schema-types.ts @@ -26,6 +26,7 @@ import type { EmailsModule, EntityTypeProvision, EventsModule, + FunctionInvocationModule, FunctionModule, GraphModule, HierarchyModule, @@ -414,33 +415,6 @@ export type CryptoAddressesModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `IdentityProvidersModule`. */ -export type IdentityProvidersModuleOrderBy = - | '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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; /** Methods to use when ordering `DenormalizedTableField`. */ export type DenormalizedTableFieldOrderBy = | 'NATURAL' @@ -470,6 +444,37 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; +/** Methods to use when ordering `IdentityProvidersModule`. */ +export type IdentityProvidersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; /** Methods to use when ordering `RlsModule`. */ export type RlsModuleOrderBy = | 'NATURAL' @@ -635,39 +640,6 @@ export type CryptoAuthModuleOrderBy = | 'SIGN_UP_WITH_KEY_DESC' | 'SIGN_IN_WITH_CHALLENGE_ASC' | 'SIGN_IN_WITH_CHALLENGE_DESC'; -/** Methods to use when ordering `RateLimitMetersModule`. */ -export type RateLimitMetersModuleOrderBy = - | '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' - | 'RATE_LIMIT_STATE_TABLE_ID_ASC' - | 'RATE_LIMIT_STATE_TABLE_ID_DESC' - | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' - | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' - | 'CHECK_RATE_LIMIT_FUNCTION_ASC' - | 'CHECK_RATE_LIMIT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `SessionsModule`. */ export type SessionsModuleOrderBy = | 'NATURAL' @@ -695,8 +667,8 @@ export type SessionsModuleOrderBy = | 'SESSION_CREDENTIALS_TABLE_DESC' | 'AUTH_SETTINGS_TABLE_ASC' | 'AUTH_SETTINGS_TABLE_DESC'; -/** Methods to use when ordering `ConfigSecretsModule`. */ -export type ConfigSecretsModuleOrderBy = +/** Methods to use when ordering `SecureTableProvision`. */ +export type SecureTableProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -706,30 +678,22 @@ export type ConfigSecretsModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; /** Methods to use when ordering `GraphModule`. */ export type GraphModuleOrderBy = | 'NATURAL' @@ -769,6 +733,8 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; /** Methods to use when ordering `MerkleStoreModule`. */ @@ -804,72 +770,10 @@ export type MerkleStoreModuleOrderBy = | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `SecureTableProvision`. */ -export type SecureTableProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC'; -/** Methods to use when ordering `InvitesModule`. */ -export type InvitesModuleOrderBy = - | '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' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `DatabaseProvisionModule`. */ export type DatabaseProvisionModuleOrderBy = | 'NATURAL' @@ -903,8 +807,8 @@ export type DatabaseProvisionModuleOrderBy = | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC'; -/** Methods to use when ordering `NamespaceModule`. */ -export type NamespaceModuleOrderBy = +/** Methods to use when ordering `ConfigSecretsModule`. */ +export type ConfigSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -920,14 +824,12 @@ export type NamespaceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NAMESPACES_TABLE_ID_ASC' - | 'NAMESPACES_TABLE_ID_DESC' - | 'NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'NAMESPACES_TABLE_NAME_ASC' - | 'NAMESPACES_TABLE_NAME_DESC' - | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' - | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -941,7 +843,48 @@ export type NamespaceModuleOrderBy = | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'HAS_CONFIG_ASC' + | 'HAS_CONFIG_DESC'; +/** Methods to use when ordering `RateLimitMetersModule`. */ +export type RateLimitMetersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RATE_LIMIT_STATE_TABLE_ID_ASC' + | 'RATE_LIMIT_STATE_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' + | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' + | 'CHECK_RATE_LIMIT_FUNCTION_ASC' + | 'CHECK_RATE_LIMIT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; /** Methods to use when ordering `RealtimeModule`. */ export type RealtimeModuleOrderBy = | 'NATURAL' @@ -1012,8 +955,8 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; -/** Methods to use when ordering `ComputeLogModule`. */ -export type ComputeLogModuleOrderBy = +/** Methods to use when ordering `FunctionInvocationModule`. */ +export type FunctionInvocationModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1025,15 +968,183 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'COMPUTE_LOG_TABLE_ID_ASC' - | 'COMPUTE_LOG_TABLE_ID_DESC' - | 'COMPUTE_LOG_TABLE_NAME_ASC' - | 'COMPUTE_LOG_TABLE_NAME_DESC' - | 'USAGE_DAILY_TABLE_ID_ASC' - | 'USAGE_DAILY_TABLE_ID_DESC' - | 'USAGE_DAILY_TABLE_NAME_ASC' - | 'USAGE_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `FunctionModule`. */ +export type FunctionModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `InvitesModule`. */ +export type InvitesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `NamespaceModule`. */ +export type NamespaceModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NAMESPACES_TABLE_ID_ASC' + | 'NAMESPACES_TABLE_ID_DESC' + | 'NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'NAMESPACES_TABLE_NAME_ASC' + | 'NAMESPACES_TABLE_NAME_DESC' + | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' + | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +/** Methods to use when ordering `ComputeLogModule`. */ +export type ComputeLogModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'COMPUTE_LOG_TABLE_ID_ASC' + | 'COMPUTE_LOG_TABLE_ID_DESC' + | 'COMPUTE_LOG_TABLE_NAME_ASC' + | 'COMPUTE_LOG_TABLE_NAME_DESC' + | 'USAGE_DAILY_TABLE_ID_ASC' + | 'USAGE_DAILY_TABLE_ID_DESC' + | 'USAGE_DAILY_TABLE_NAME_ASC' + | 'USAGE_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' | 'INTERVAL_DESC' | 'RETENTION_ASC' | 'RETENTION_DESC' @@ -1064,6 +1175,10 @@ export type InferenceLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' | 'INFERENCE_LOG_TABLE_ID_DESC' | 'INFERENCE_LOG_TABLE_NAME_ASC' @@ -1103,6 +1218,10 @@ export type StorageLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'STORAGE_LOG_TABLE_ID_ASC' | 'STORAGE_LOG_TABLE_ID_DESC' | 'STORAGE_LOG_TABLE_NAME_ASC' @@ -1142,6 +1261,10 @@ export type TransferLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TRANSFER_LOG_TABLE_ID_ASC' | 'TRANSFER_LOG_TABLE_ID_DESC' | 'TRANSFER_LOG_TABLE_NAME_ASC' @@ -1168,8 +1291,8 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `DbUsageModule`. */ -export type DbUsageModuleOrderBy = +/** Methods to use when ordering `PlansModule`. */ +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1181,38 +1304,42 @@ export type DbUsageModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_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' + | 'PLAN_PRICING_TABLE_ID_ASC' + | 'PLAN_PRICING_TABLE_ID_DESC' + | 'PLAN_OVERRIDES_TABLE_ID_ASC' + | 'PLAN_OVERRIDES_TABLE_ID_DESC' + | 'PLAN_METER_LIMITS_TABLE_ID_ASC' + | 'PLAN_METER_LIMITS_TABLE_ID_DESC' + | 'PLAN_CAPS_TABLE_ID_ASC' + | 'PLAN_CAPS_TABLE_ID_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'APPLY_BILLING_PLAN_FUNCTION_ASC' + | 'APPLY_BILLING_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_CAPS_FUNCTION_ASC' + | 'APPLY_PLAN_CAPS_FUNCTION_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `NotificationsModule`. */ -export type NotificationsModuleOrderBy = +/** Methods to use when ordering `BillingProviderModule`. */ +export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1224,38 +1351,44 @@ export type NotificationsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'NOTIFICATIONS_TABLE_ID_ASC' - | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'READ_STATE_TABLE_ID_ASC' - | 'READ_STATE_TABLE_ID_DESC' - | 'PREFERENCES_TABLE_ID_ASC' - | 'PREFERENCES_TABLE_ID_DESC' - | 'CHANNELS_TABLE_ID_ASC' - | 'CHANNELS_TABLE_ID_DESC' - | 'DELIVERY_LOG_TABLE_ID_ASC' - | 'DELIVERY_LOG_TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'USER_SETTINGS_TABLE_ID_ASC' - | 'USER_SETTINGS_TABLE_ID_DESC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' - | 'HAS_CHANNELS_ASC' - | 'HAS_CHANNELS_DESC' - | 'HAS_PREFERENCES_ASC' - | 'HAS_PREFERENCES_DESC' - | 'HAS_SETTINGS_EXTENSION_ASC' - | 'HAS_SETTINGS_EXTENSION_DESC' - | 'HAS_DIGEST_METADATA_ASC' - | 'HAS_DIGEST_METADATA_DESC' - | 'HAS_SUBSCRIPTIONS_ASC' - | 'HAS_SUBSCRIPTIONS_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'PRODUCTS_TABLE_ID_ASC' + | 'PRODUCTS_TABLE_ID_DESC' + | 'PRICES_TABLE_ID_ASC' + | 'PRICES_TABLE_ID_DESC' + | 'SUBSCRIPTIONS_TABLE_ID_ASC' + | 'SUBSCRIPTIONS_TABLE_ID_DESC' + | 'BILLING_CUSTOMERS_TABLE_ID_ASC' + | 'BILLING_CUSTOMERS_TABLE_ID_DESC' + | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' + | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' + | 'BILLING_PRODUCTS_TABLE_ID_ASC' + | 'BILLING_PRODUCTS_TABLE_ID_DESC' + | 'BILLING_PRODUCTS_TABLE_NAME_ASC' + | 'BILLING_PRODUCTS_TABLE_NAME_DESC' + | 'BILLING_PRICES_TABLE_ID_ASC' + | 'BILLING_PRICES_TABLE_ID_DESC' + | 'BILLING_PRICES_TABLE_NAME_ASC' + | 'BILLING_PRICES_TABLE_NAME_DESC' + | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC' + | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' + | 'PROCESS_BILLING_EVENT_FUNCTION_ASC' + | 'PROCESS_BILLING_EVENT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `PlansModule`. */ -export type PlansModuleOrderBy = +/** Methods to use when ordering `DbUsageModule`. */ +export type DbUsageModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1267,32 +1400,38 @@ export type PlansModuleOrderBy = | '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' - | 'PLAN_PRICING_TABLE_ID_ASC' - | 'PLAN_PRICING_TABLE_ID_DESC' - | 'PLAN_OVERRIDES_TABLE_ID_ASC' - | 'PLAN_OVERRIDES_TABLE_ID_DESC' - | 'PLAN_METER_LIMITS_TABLE_ID_ASC' - | 'PLAN_METER_LIMITS_TABLE_ID_DESC' - | 'PLAN_CAPS_TABLE_ID_ASC' - | 'PLAN_CAPS_TABLE_ID_DESC' - | 'APPLY_PLAN_FUNCTION_ASC' - | 'APPLY_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' - | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' - | 'APPLY_BILLING_PLAN_FUNCTION_ASC' - | 'APPLY_BILLING_PLAN_FUNCTION_DESC' - | 'APPLY_PLAN_CAPS_FUNCTION_ASC' - | 'APPLY_PLAN_CAPS_FUNCTION_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1342,10 +1481,12 @@ export type HierarchyModuleOrderBy = | 'GET_MANAGERS_FUNCTION_DESC' | 'IS_MANAGER_OF_FUNCTION_ASC' | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `BillingModule`. */ -export type BillingModuleOrderBy = +/** Methods to use when ordering `PermissionsModule`. */ +export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1357,44 +1498,42 @@ export type BillingModuleOrderBy = | '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' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'METER_DEFAULTS_TABLE_ID_ASC' - | 'METER_DEFAULTS_TABLE_ID_DESC' - | 'METER_DEFAULTS_TABLE_NAME_ASC' - | 'METER_DEFAULTS_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'DEFAULT_TABLE_ID_ASC' + | 'DEFAULT_TABLE_ID_DESC' + | 'DEFAULT_TABLE_NAME_ASC' + | 'DEFAULT_TABLE_NAME_DESC' + | 'BITLEN_ASC' + | 'BITLEN_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'GET_PADDED_MASK_ASC' + | 'GET_PADDED_MASK_DESC' + | 'GET_MASK_ASC' + | 'GET_MASK_DESC' + | 'GET_BY_MASK_ASC' + | 'GET_BY_MASK_DESC' + | 'GET_MASK_BY_NAME_ASC' + | 'GET_MASK_BY_NAME_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `BillingProviderModule`. */ -export type BillingProviderModuleOrderBy = +/** Methods to use when ordering `NotificationsModule`. */ +export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1406,38 +1545,40 @@ export type BillingProviderModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'PRODUCTS_TABLE_ID_ASC' - | 'PRODUCTS_TABLE_ID_DESC' - | 'PRICES_TABLE_ID_ASC' - | 'PRICES_TABLE_ID_DESC' - | 'SUBSCRIPTIONS_TABLE_ID_ASC' - | 'SUBSCRIPTIONS_TABLE_ID_DESC' - | 'BILLING_CUSTOMERS_TABLE_ID_ASC' - | 'BILLING_CUSTOMERS_TABLE_ID_DESC' - | 'BILLING_CUSTOMERS_TABLE_NAME_ASC' - | 'BILLING_CUSTOMERS_TABLE_NAME_DESC' - | 'BILLING_PRODUCTS_TABLE_ID_ASC' - | 'BILLING_PRODUCTS_TABLE_ID_DESC' - | 'BILLING_PRODUCTS_TABLE_NAME_ASC' - | 'BILLING_PRODUCTS_TABLE_NAME_DESC' - | 'BILLING_PRICES_TABLE_ID_ASC' - | 'BILLING_PRICES_TABLE_ID_DESC' - | 'BILLING_PRICES_TABLE_NAME_ASC' - | 'BILLING_PRICES_TABLE_NAME_DESC' - | 'BILLING_SUBSCRIPTIONS_TABLE_ID_ASC' - | 'BILLING_SUBSCRIPTIONS_TABLE_ID_DESC' - | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_ASC' - | 'BILLING_SUBSCRIPTIONS_TABLE_NAME_DESC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_ASC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_ID_DESC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_ASC' - | 'BILLING_WEBHOOK_EVENTS_TABLE_NAME_DESC' - | 'PROCESS_BILLING_EVENT_FUNCTION_ASC' - | 'PROCESS_BILLING_EVENT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NOTIFICATIONS_TABLE_ID_ASC' + | 'NOTIFICATIONS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' + | 'PREFERENCES_TABLE_ID_ASC' + | 'PREFERENCES_TABLE_ID_DESC' + | 'CHANNELS_TABLE_ID_ASC' + | 'CHANNELS_TABLE_ID_DESC' + | 'DELIVERY_LOG_TABLE_ID_ASC' + | 'DELIVERY_LOG_TABLE_ID_DESC' + | 'SUPPRESSIONS_TABLE_ID_ASC' + | 'SUPPRESSIONS_TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'USER_SETTINGS_TABLE_ID_ASC' + | 'USER_SETTINGS_TABLE_ID_DESC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1455,6 +1596,10 @@ export type ProfilesModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -1491,8 +1636,8 @@ export type ProfilesModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `PermissionsModule`. */ -export type PermissionsModuleOrderBy = +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -1504,32 +1649,44 @@ export type PermissionsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'DEFAULT_TABLE_ID_ASC' - | 'DEFAULT_TABLE_ID_DESC' - | 'DEFAULT_TABLE_NAME_ASC' - | 'DEFAULT_TABLE_NAME_DESC' - | 'BITLEN_ASC' - | 'BITLEN_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'GET_PADDED_MASK_ASC' - | 'GET_PADDED_MASK_DESC' - | 'GET_MASK_ASC' - | 'GET_MASK_DESC' - | 'GET_BY_MASK_ASC' - | 'GET_BY_MASK_DESC' - | 'GET_MASK_BY_NAME_ASC' - | 'GET_MASK_BY_NAME_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_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' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'METER_DEFAULTS_TABLE_ID_ASC' + | 'METER_DEFAULTS_TABLE_ID_DESC' + | 'METER_DEFAULTS_TABLE_NAME_ASC' + | 'METER_DEFAULTS_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1587,63 +1744,6 @@ export type RelationProvisionOrderBy = | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC'; -/** Methods to use when ordering `FunctionModule`. */ -export type FunctionModuleOrderBy = - | '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' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; /** Methods to use when ordering `UserAuthModule`. */ export type UserAuthModuleOrderBy = | 'NATURAL' @@ -1718,6 +1818,10 @@ export type AgentModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -1756,6 +1860,8 @@ export type AgentModuleOrderBy = | 'HAS_RESOURCES_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'SHARED_ASC' + | 'SHARED_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -1771,7 +1877,9 @@ export type AgentModuleOrderBy = | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; /** Methods to use when ordering `LimitsModule`. */ export type LimitsModuleOrderBy = | 'NATURAL' @@ -1785,6 +1893,10 @@ export type LimitsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -1858,6 +1970,10 @@ export type MembershipsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' @@ -1920,10 +2036,99 @@ export type MembershipsModuleOrderBy = | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +/** Methods to use when ordering `EntityTypeProvision`. */ +export type EntityTypeProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | 'OUT_INVOCATIONS_TABLE_ID_DESC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; /** Methods to use when ordering `StorageModule`. */ export type StorageModuleOrderBy = | 'NATURAL' @@ -1937,6 +2142,10 @@ export type StorageModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'BUCKETS_TABLE_ID_ASC' | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' @@ -1997,6 +2206,8 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -2014,6 +2225,10 @@ export type EventsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'EVENTS_TABLE_NAME_ASC' @@ -2084,99 +2299,12 @@ export type EventsModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -/** Methods to use when ordering `EntityTypeProvision`. */ -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | 'OUT_INVOCATIONS_TABLE_ID_DESC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; /** A filter to be used against `DefaultIdsModule` object types. All fields are combined with a logical ‘and.’ */ export interface DefaultIdsModuleFilter { /** Filter by the object’s `id` field. */ @@ -2580,37 +2708,6 @@ export interface CryptoAddressesModuleFilter { /** Negates the expression. */ not?: CryptoAddressesModuleFilter; } -/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface IdentityProvidersModuleFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} /** A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ */ export interface DenormalizedTableFieldFilter { /** Filter by the object’s `id` field. */ @@ -2644,6 +2741,41 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } +/** A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface IdentityProvidersModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} /** A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ */ export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ @@ -2878,43 +3010,6 @@ export interface CryptoAuthModuleFilter { /** Negates the expression. */ not?: CryptoAuthModuleFilter; } -/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ -export interface RateLimitMetersModuleFilter { - /** 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 `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; -} /** A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ */ export interface SessionsModuleFilter { /** Filter by the object’s `id` field. */ @@ -2990,44 +3085,75 @@ export interface IntervalInput { /** A quantity of years. */ years?: number; } -/** A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ConfigSecretsModuleFilter { +/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface SecureTableProvisionFilter { /** 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 `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: SecureTableProvisionFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: SecureTableProvisionFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: SecureTableProvisionFilter; +} +/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ +export interface JSONListFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: unknown[]; + /** Not equal to the specified value. */ + notEqualTo?: unknown[]; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: unknown[]; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: unknown[]; + /** Less than the specified value. */ + lessThan?: unknown[]; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: unknown[]; + /** Greater than the specified value. */ + greaterThan?: unknown[]; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: unknown[]; + /** Contains the specified list of values. */ + contains?: unknown[]; + /** Contained by the specified list of values. */ + containedBy?: unknown[]; + /** Overlaps the specified list of values. */ + overlaps?: unknown[]; + /** Any array item is equal to the specified value. */ + anyEqualTo?: unknown; + /** Any array item is not equal to the specified value. */ + anyNotEqualTo?: unknown; + /** Any array item is less than the specified value. */ + anyLessThan?: unknown; + /** Any array item is less than or equal to the specified value. */ + anyLessThanOrEqualTo?: unknown; + /** Any array item is greater than the specified value. */ + anyGreaterThan?: unknown; + /** Any array item is greater than or equal to the specified value. */ + anyGreaterThanOrEqualTo?: unknown; } /** A filter to be used against `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphModuleFilter { @@ -3065,6 +3191,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3106,6 +3234,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3128,156 +3258,88 @@ export interface MerkleStoreModuleToManyGraphModuleFilter { /** Filters to entities where no related entity matches. */ none?: GraphModuleFilter; } -/** A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface SecureTableProvisionFilter { +/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseProvisionModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseName` field. */ + databaseName?: StringFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `subdomain` field. */ + subdomain?: StringFilter; + /** Filter by the object’s `domain` field. */ + domain?: StringFilter; + /** Filter by the object’s `modules` field. */ + modules?: JSONFilter; + /** Filter by the object’s `options` field. */ + options?: JSONFilter; + /** Filter by the object’s `bootstrapUser` field. */ + bootstrapUser?: BooleanFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorMessage` field. */ + errorMessage?: StringFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `completedAt` field. */ + completedAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: DatabaseProvisionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DatabaseProvisionModuleFilter[]; + /** Negates the expression. */ + not?: DatabaseProvisionModuleFilter; +} +/** A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ConfigSecretsModuleFilter { /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; -} -/** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ -export interface JSONListFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: unknown[]; - /** Not equal to the specified value. */ - notEqualTo?: unknown[]; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: unknown[]; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: unknown[]; - /** Less than the specified value. */ - lessThan?: unknown[]; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: unknown[]; - /** Greater than the specified value. */ - greaterThan?: unknown[]; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: unknown[]; - /** Contains the specified list of values. */ - contains?: unknown[]; - /** Contained by the specified list of values. */ - containedBy?: unknown[]; - /** Overlaps the specified list of values. */ - overlaps?: unknown[]; - /** Any array item is equal to the specified value. */ - anyEqualTo?: unknown; - /** Any array item is not equal to the specified value. */ - anyNotEqualTo?: unknown; - /** Any array item is less than the specified value. */ - anyLessThan?: unknown; - /** Any array item is less than or equal to the specified value. */ - anyLessThanOrEqualTo?: unknown; - /** Any array item is greater than the specified value. */ - anyGreaterThan?: unknown; - /** Any array item is greater than or equal to the specified value. */ - anyGreaterThanOrEqualTo?: unknown; -} -/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InvitesModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `entityTableId` field. */ entityTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; -} -/** A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DatabaseProvisionModuleFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseName` field. */ - databaseName?: StringFilter; - /** Filter by the object’s `ownerId` field. */ - ownerId?: UUIDFilter; - /** Filter by the object’s `subdomain` field. */ - subdomain?: StringFilter; - /** Filter by the object’s `domain` field. */ - domain?: StringFilter; - /** Filter by the object’s `modules` field. */ - modules?: JSONFilter; - /** Filter by the object’s `options` field. */ - options?: JSONFilter; - /** Filter by the object’s `bootstrapUser` field. */ - bootstrapUser?: BooleanFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorMessage` field. */ - errorMessage?: StringFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `completedAt` field. */ - completedAt?: DatetimeFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `hasConfig` field. */ + hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: DatabaseProvisionModuleFilter[]; + and?: ConfigSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DatabaseProvisionModuleFilter[]; + or?: ConfigSecretsModuleFilter[]; /** Negates the expression. */ - not?: DatabaseProvisionModuleFilter; + not?: ConfigSecretsModuleFilter; } -/** A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ -export interface NamespaceModuleFilter { +/** A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ */ +export interface RateLimitMetersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3290,34 +3352,34 @@ export interface NamespaceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `namespacesTableId` field. */ - namespacesTableId?: UUIDFilter; - /** Filter by the object’s `namespaceEventsTableId` field. */ - namespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `namespacesTableName` field. */ - namespacesTableName?: StringFilter; - /** Filter by the object’s `namespaceEventsTableName` field. */ - namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; /** Checks for all expressions in this list. */ - and?: NamespaceModuleFilter[]; + and?: RateLimitMetersModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; + or?: RateLimitMetersModuleFilter[]; /** Negates the expression. */ - not?: NamespaceModuleFilter; + not?: RateLimitMetersModuleFilter; } /** A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ */ export interface RealtimeModuleFilter { @@ -3397,8 +3459,8 @@ export interface WebauthnAuthModuleFilter { /** Negates the expression. */ not?: WebauthnAuthModuleFilter; } -/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface ComputeLogModuleFilter { +/** A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3407,41 +3469,43 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ - and?: ComputeLogModuleFilter[]; + and?: FunctionInvocationModuleFilter[]; /** Checks for any expressions in this list. */ - or?: ComputeLogModuleFilter[]; + or?: FunctionInvocationModuleFilter[]; /** Negates the expression. */ - not?: ComputeLogModuleFilter; + not?: FunctionInvocationModuleFilter; } -/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface InferenceLogModuleFilter { +/** A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ +export interface FunctionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3450,41 +3514,88 @@ export interface InferenceLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableId` field. */ - inferenceLogTableId?: UUIDFilter; - /** Filter by the object’s `inferenceLogTableName` field. */ - inferenceLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ - usageDailyTableId?: UUIDFilter; - /** Filter by the object’s `usageDailyTableName` field. */ - usageDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `actorFkTableId` field. */ - actorFkTableId?: UUIDFilter; - /** Filter by the object’s `entityFkTableId` field. */ - entityFkTableId?: UUIDFilter; - /** Filter by the object’s `prefix` field. */ + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +/** A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InvitesModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: InferenceLogModuleFilter[]; + and?: InvitesModuleFilter[]; /** Checks for any expressions in this list. */ - or?: InferenceLogModuleFilter[]; + or?: InvitesModuleFilter[]; /** Negates the expression. */ - not?: InferenceLogModuleFilter; + not?: InvitesModuleFilter; } -/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface StorageLogModuleFilter { +/** A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ */ +export interface NamespaceModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3493,10 +3604,59 @@ export interface StorageLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `storageLogTableId` field. */ - storageLogTableId?: UUIDFilter; - /** Filter by the object’s `storageLogTableName` field. */ - storageLogTableName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `namespacesTableId` field. */ + namespacesTableId?: UUIDFilter; + /** Filter by the object’s `namespaceEventsTableId` field. */ + namespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `namespacesTableName` field. */ + namespacesTableName?: StringFilter; + /** Filter by the object’s `namespaceEventsTableName` field. */ + namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +/** A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface ComputeLogModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -3520,14 +3680,14 @@ export interface StorageLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: StorageLogModuleFilter[]; + and?: ComputeLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: StorageLogModuleFilter[]; + or?: ComputeLogModuleFilter[]; /** Negates the expression. */ - not?: StorageLogModuleFilter; + not?: ComputeLogModuleFilter; } -/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ -export interface TransferLogModuleFilter { +/** A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface InferenceLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3536,10 +3696,14 @@ export interface TransferLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `transferLogTableId` field. */ - transferLogTableId?: UUIDFilter; - /** Filter by the object’s `transferLogTableName` field. */ - transferLogTableName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `inferenceLogTableId` field. */ + inferenceLogTableId?: UUIDFilter; + /** Filter by the object’s `inferenceLogTableName` field. */ + inferenceLogTableName?: StringFilter; /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ @@ -3563,14 +3727,14 @@ export interface TransferLogModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: TransferLogModuleFilter[]; + and?: InferenceLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: TransferLogModuleFilter[]; + or?: InferenceLogModuleFilter[]; /** Negates the expression. */ - not?: TransferLogModuleFilter; + not?: InferenceLogModuleFilter; } -/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ -export interface DbUsageModuleFilter { +/** A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface StorageLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3579,22 +3743,18 @@ export interface DbUsageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `storageLogTableId` field. */ + storageLogTableId?: UUIDFilter; + /** Filter by the object’s `storageLogTableName` field. */ + storageLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; /** Filter by the object’s `interval` field. */ interval?: StringFilter; /** Filter by the object’s `retention` field. */ @@ -3603,6 +3763,10 @@ export interface DbUsageModuleFilter { premake?: IntFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -3610,14 +3774,14 @@ export interface DbUsageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: StorageLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: StorageLogModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: StorageLogModuleFilter; } -/** A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface NotificationsModuleFilter { +/** A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ */ +export interface TransferLogModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3626,42 +3790,42 @@ export interface NotificationsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `notificationsTableId` field. */ - notificationsTableId?: UUIDFilter; - /** Filter by the object’s `readStateTableId` field. */ - readStateTableId?: UUIDFilter; - /** Filter by the object’s `preferencesTableId` field. */ - preferencesTableId?: UUIDFilter; - /** Filter by the object’s `channelsTableId` field. */ - channelsTableId?: UUIDFilter; - /** Filter by the object’s `deliveryLogTableId` field. */ - deliveryLogTableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; - /** Filter by the object’s `userSettingsTableId` field. */ - userSettingsTableId?: UUIDFilter; - /** Filter by the object’s `organizationSettingsTableId` field. */ - organizationSettingsTableId?: UUIDFilter; - /** Filter by the object’s `hasChannels` field. */ - hasChannels?: BooleanFilter; - /** Filter by the object’s `hasPreferences` field. */ - hasPreferences?: BooleanFilter; - /** Filter by the object’s `hasSettingsExtension` field. */ - hasSettingsExtension?: BooleanFilter; - /** Filter by the object’s `hasDigestMetadata` field. */ - hasDigestMetadata?: BooleanFilter; - /** Filter by the object’s `hasSubscriptions` field. */ - hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `transferLogTableId` field. */ + transferLogTableId?: UUIDFilter; + /** Filter by the object’s `transferLogTableName` field. */ + transferLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ + usageDailyTableId?: UUIDFilter; + /** Filter by the object’s `usageDailyTableName` field. */ + usageDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `actorFkTableId` field. */ + actorFkTableId?: UUIDFilter; + /** Filter by the object’s `entityFkTableId` field. */ + entityFkTableId?: UUIDFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; + and?: TransferLogModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; + or?: TransferLogModuleFilter[]; /** Negates the expression. */ - not?: NotificationsModuleFilter; + not?: TransferLogModuleFilter; } /** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ export interface PlansModuleFilter { @@ -3673,6 +3837,10 @@ export interface PlansModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `plansTableId` field. */ plansTableId?: UUIDFilter; /** Filter by the object’s `plansTableName` field. */ @@ -3710,6 +3878,112 @@ export interface PlansModuleFilter { /** Negates the expression. */ not?: PlansModuleFilter; } +/** A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingProviderModuleFilter { + /** 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 `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `productsTableId` field. */ + productsTableId?: UUIDFilter; + /** Filter by the object’s `pricesTableId` field. */ + pricesTableId?: UUIDFilter; + /** Filter by the object’s `subscriptionsTableId` field. */ + subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableId` field. */ + billingCustomersTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableName` field. */ + billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingProductsTableId` field. */ + billingProductsTableId?: UUIDFilter; + /** Filter by the object’s `billingProductsTableName` field. */ + billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingPricesTableId` field. */ + billingPricesTableId?: UUIDFilter; + /** Filter by the object’s `billingPricesTableName` field. */ + billingPricesTableName?: StringFilter; + /** Filter by the object’s `billingSubscriptionsTableId` field. */ + billingSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingSubscriptionsTableName` field. */ + billingSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `billingWebhookEventsTableId` field. */ + billingWebhookEventsTableId?: UUIDFilter; + /** Filter by the object’s `billingWebhookEventsTableName` field. */ + billingWebhookEventsTableName?: StringFilter; + /** Filter by the object’s `processBillingEventFunction` field. */ + processBillingEventFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingProviderModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingProviderModuleFilter[]; + /** Negates the expression. */ + not?: BillingProviderModuleFilter; +} +/** A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ */ +export interface DbUsageModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: DbUsageModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: DbUsageModuleFilter[]; + /** Negates the expression. */ + not?: DbUsageModuleFilter; +} /** A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ */ export interface HierarchyModuleFilter { /** Filter by the object’s `id` field. */ @@ -3752,6 +4026,8 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; /** Filter by the object’s `isManagerOfFunction` field. */ isManagerOfFunction?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3761,8 +4037,8 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingModuleFilter { +/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3771,51 +4047,49 @@ export interface BillingModuleFilter { 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 `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `meterDefaultsTableId` field. */ - meterDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `meterDefaultsTableName` field. */ - meterDefaultsTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; + not?: PermissionsModuleFilter; } -/** A filter to be used against `BillingProviderModule` object types. All fields are combined with a logical ‘and.’ */ -export interface BillingProviderModuleFilter { +/** A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ */ +export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3824,48 +4098,50 @@ export interface BillingProviderModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `productsTableId` field. */ - productsTableId?: UUIDFilter; - /** Filter by the object’s `pricesTableId` field. */ - pricesTableId?: UUIDFilter; - /** Filter by the object’s `subscriptionsTableId` field. */ - subscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableId` field. */ - billingCustomersTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableName` field. */ - billingCustomersTableName?: StringFilter; - /** Filter by the object’s `billingProductsTableId` field. */ - billingProductsTableId?: UUIDFilter; - /** Filter by the object’s `billingProductsTableName` field. */ - billingProductsTableName?: StringFilter; - /** Filter by the object’s `billingPricesTableId` field. */ - billingPricesTableId?: UUIDFilter; - /** Filter by the object’s `billingPricesTableName` field. */ - billingPricesTableName?: StringFilter; - /** Filter by the object’s `billingSubscriptionsTableId` field. */ - billingSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingSubscriptionsTableName` field. */ - billingSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `billingWebhookEventsTableId` field. */ - billingWebhookEventsTableId?: UUIDFilter; - /** Filter by the object’s `billingWebhookEventsTableName` field. */ - billingWebhookEventsTableName?: StringFilter; - /** Filter by the object’s `processBillingEventFunction` field. */ - processBillingEventFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `notificationsTableId` field. */ + notificationsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; + /** Filter by the object’s `preferencesTableId` field. */ + preferencesTableId?: UUIDFilter; + /** Filter by the object’s `channelsTableId` field. */ + channelsTableId?: UUIDFilter; + /** Filter by the object’s `deliveryLogTableId` field. */ + deliveryLogTableId?: UUIDFilter; + /** Filter by the object’s `suppressionsTableId` field. */ + suppressionsTableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `userSettingsTableId` field. */ + userSettingsTableId?: UUIDFilter; + /** Filter by the object’s `organizationSettingsTableId` field. */ + organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: NotificationsModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: NotificationsModuleFilter; } /** A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ */ export interface ProfilesModuleFilter { @@ -3877,6 +4153,10 @@ export interface ProfilesModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ @@ -3920,8 +4200,8 @@ export interface ProfilesModuleFilter { /** Negates the expression. */ not?: ProfilesModuleFilter; } -/** A filter to be used against `PermissionsModule` object types. All fields are combined with a logical ‘and.’ */ -export interface PermissionsModuleFilter { +/** 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. */ @@ -3930,42 +4210,54 @@ export interface PermissionsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: PermissionsModuleFilter; + not?: BillingModuleFilter; } /** A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ */ export interface RelationProvisionFilter { @@ -3982,108 +4274,47 @@ export interface RelationProvisionFilter { /** Filter by the object’s `fieldName` field. */ fieldName?: StringFilter; /** Filter by the object’s `deleteAction` field. */ - deleteAction?: StringFilter; - /** Filter by the object’s `isRequired` field. */ - isRequired?: BooleanFilter; - /** Filter by the object’s `apiRequired` field. */ - apiRequired?: BooleanFilter; - /** Filter by the object’s `junctionTableId` field. */ - junctionTableId?: UUIDFilter; - /** Filter by the object’s `junctionTableName` field. */ - junctionTableName?: StringFilter; - /** Filter by the object’s `junctionSchemaId` field. */ - junctionSchemaId?: UUIDFilter; - /** Filter by the object’s `sourceFieldName` field. */ - sourceFieldName?: StringFilter; - /** Filter by the object’s `targetFieldName` field. */ - targetFieldName?: StringFilter; - /** Filter by the object’s `useCompositeKey` field. */ - useCompositeKey?: BooleanFilter; - /** Filter by the object’s `createIndex` field. */ - createIndex?: BooleanFilter; - /** Filter by the object’s `exposeInApi` field. */ - exposeInApi?: BooleanFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFieldId` field. */ - outFieldId?: UUIDFilter; - /** Filter by the object’s `outJunctionTableId` field. */ - outJunctionTableId?: UUIDFilter; - /** Filter by the object’s `outSourceFieldId` field. */ - outSourceFieldId?: UUIDFilter; - /** Filter by the object’s `outTargetFieldId` field. */ - outTargetFieldId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: RelationProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: RelationProvisionFilter[]; - /** Negates the expression. */ - not?: RelationProvisionFilter; -} -/** A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ */ -export interface FunctionModuleFilter { - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + deleteAction?: StringFilter; + /** Filter by the object’s `isRequired` field. */ + isRequired?: BooleanFilter; + /** Filter by the object’s `apiRequired` field. */ + apiRequired?: BooleanFilter; + /** Filter by the object’s `junctionTableId` field. */ + junctionTableId?: UUIDFilter; + /** Filter by the object’s `junctionTableName` field. */ + junctionTableName?: StringFilter; + /** Filter by the object’s `junctionSchemaId` field. */ + junctionSchemaId?: UUIDFilter; + /** Filter by the object’s `sourceFieldName` field. */ + sourceFieldName?: StringFilter; + /** Filter by the object’s `targetFieldName` field. */ + targetFieldName?: StringFilter; + /** Filter by the object’s `useCompositeKey` field. */ + useCompositeKey?: BooleanFilter; + /** Filter by the object’s `createIndex` field. */ + createIndex?: BooleanFilter; + /** Filter by the object’s `exposeInApi` field. */ + exposeInApi?: BooleanFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; + /** Filter by the object’s `outFieldId` field. */ + outFieldId?: UUIDFilter; + /** Filter by the object’s `outJunctionTableId` field. */ + outJunctionTableId?: UUIDFilter; + /** Filter by the object’s `outSourceFieldId` field. */ + outSourceFieldId?: UUIDFilter; + /** Filter by the object’s `outTargetFieldId` field. */ + outTargetFieldId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; + and?: RelationProvisionFilter[]; /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; + or?: RelationProvisionFilter[]; /** Negates the expression. */ - not?: FunctionModuleFilter; + not?: RelationProvisionFilter; } /** A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ export interface UserAuthModuleFilter { @@ -4160,6 +4391,10 @@ export interface AgentModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `threadTableId` field. */ threadTableId?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4198,6 +4433,8 @@ export interface AgentModuleFilter { hasResources?: BooleanFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `shared` field. */ + shared?: BooleanFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4214,6 +4451,8 @@ export interface AgentModuleFilter { resources?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ and?: AgentModuleFilter[]; /** Checks for any expressions in this list. */ @@ -4231,6 +4470,10 @@ export interface LimitsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ @@ -4308,6 +4551,10 @@ export interface MembershipsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Filter by the object’s `membershipsTableName` field. */ @@ -4370,6 +4617,10 @@ export interface MembershipsModuleFilter { entityIdsFunction?: StringFilter; /** Filter by the object’s `memberProfilesTableId` field. */ memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4381,6 +4632,95 @@ export interface MembershipsModuleFilter { /** Negates the expression. */ not?: MembershipsModuleFilter; } +/** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + outInvocationsTableId?: UUIDFilter; + /** Filter by the object’s `outExecutionLogsTableId` field. */ + outExecutionLogsTableId?: UUIDFilter; + /** Filter by the object’s `outSecretDefinitionsTableId` field. */ + outSecretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} /** A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ */ export interface StorageModuleFilter { /** Filter by the object’s `id` field. */ @@ -4391,6 +4731,10 @@ export interface StorageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ @@ -4451,6 +4795,8 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4472,6 +4818,10 @@ export interface EventsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `eventsTableId` field. */ eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ @@ -4542,6 +4892,8 @@ export interface EventsModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4553,99 +4905,6 @@ export interface EventsModuleFilter { /** Negates the expression. */ not?: EventsModuleFilter; } -/** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - outInvocationsTableId?: UUIDFilter; - /** Filter by the object’s `outExecutionLogsTableId` field. */ - outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; -} export interface ConstructBlueprintInput { clientMutationId?: string; blueprintId?: string; @@ -4995,26 +5254,6 @@ export interface CryptoAddressesModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - /** The `IdentityProvidersModule` to be created by this mutation. */ - identityProvidersModule: IdentityProvidersModuleInput; -} -/** An input for mutations affecting `IdentityProvidersModule` */ -export interface IdentityProvidersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; /** The `DenormalizedTableField` to be created by this mutation. */ @@ -5035,6 +5274,28 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } +export interface CreateIdentityProvidersModuleInput { + clientMutationId?: string; + /** The `IdentityProvidersModule` to be created by this mutation. */ + identityProvidersModule: IdentityProvidersModuleInput; +} +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} export interface CreateRlsModuleInput { clientMutationId?: string; /** The `RlsModule` to be created by this mutation. */ @@ -5110,28 +5371,6 @@ export interface CryptoAuthModuleInput { signUpWithKey?: string; signInWithChallenge?: string; } -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - /** The `RateLimitMetersModule` to be created by this mutation. */ - rateLimitMetersModule: RateLimitMetersModuleInput; -} -/** An input for mutations affecting `RateLimitMetersModule` */ -export interface RateLimitMetersModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} export interface CreateBlueprintConstructionInput { clientMutationId?: string; /** The `BlueprintConstruction` to be created by this mutation. */ @@ -5181,52 +5420,6 @@ export interface SessionsModuleInput { sessionCredentialsTable?: string; authSettingsTable?: string; } -export interface CreateConfigSecretsModuleInput { - clientMutationId?: string; - /** The `ConfigSecretsModule` to be created by this mutation. */ - configSecretsModule: ConfigSecretsModuleInput; -} -/** An input for mutations affecting `ConfigSecretsModule` */ -export interface ConfigSecretsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; - hasConfig?: boolean; -} -export interface CreateMerkleStoreModuleInput { - clientMutationId?: string; - /** The `MerkleStoreModule` to be created by this mutation. */ - merkleStoreModule: MerkleStoreModuleInput; -} -/** An input for mutations affecting `MerkleStoreModule` */ -export interface MerkleStoreModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - createdAt?: string; -} export interface CreateSecureTableProvisionInput { clientMutationId?: string; /** The `SecureTableProvision` to be created by this mutation. */ @@ -5257,29 +5450,29 @@ export interface SecureTableProvisionInput { /** 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 CreateInvitesModuleInput { +export interface CreateMerkleStoreModuleInput { clientMutationId?: string; - /** The `InvitesModule` to be created by this mutation. */ - invitesModule: InvitesModuleInput; + /** The `MerkleStoreModule` to be created by this mutation. */ + merkleStoreModule: MerkleStoreModuleInput; } -/** An input for mutations affecting `InvitesModule` */ -export interface InvitesModuleInput { +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; prefix?: string; - entityTableId?: string; apiName?: string; privateApiName?: string; + scope?: string; + functionPrefix?: string; + createdAt?: string; } export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; @@ -5312,6 +5505,180 @@ export interface DatabaseProvisionModuleInput { updatedAt?: string; completedAt?: string; } +export interface CreateConfigSecretsModuleInput { + clientMutationId?: string; + /** The `ConfigSecretsModule` to be created by this mutation. */ + configSecretsModule: ConfigSecretsModuleInput; +} +/** An input for mutations affecting `ConfigSecretsModule` */ +export interface ConfigSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + hasConfig?: boolean; +} +export interface CreateRateLimitMetersModuleInput { + clientMutationId?: string; + /** The `RateLimitMetersModule` to be created by this mutation. */ + rateLimitMetersModule: RateLimitMetersModuleInput; +} +/** An input for mutations affecting `RateLimitMetersModule` */ +export interface RateLimitMetersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + /** The `RealtimeModule` to be created by this mutation. */ + realtimeModule: RealtimeModuleInput; +} +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +export interface CreateWebauthnAuthModuleInput { + clientMutationId?: string; + /** The `WebauthnAuthModule` to be created by this mutation. */ + webauthnAuthModule: WebauthnAuthModuleInput; +} +/** An input for mutations affecting `WebauthnAuthModule` */ +export interface WebauthnAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + authSettingsTableId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; +} +export interface CreateFunctionInvocationModuleInput { + clientMutationId?: string; + /** The `FunctionInvocationModule` to be created by this mutation. */ + functionInvocationModule: FunctionInvocationModuleInput; +} +/** An input for mutations affecting `FunctionInvocationModule` */ +export interface FunctionInvocationModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} +export interface CreateFunctionModuleInput { + clientMutationId?: string; + /** The `FunctionModule` to be created by this mutation. */ + functionModule: FunctionModuleInput; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} +export interface CreateInvitesModuleInput { + clientMutationId?: string; + /** The `InvitesModule` to be created by this mutation. */ + invitesModule: InvitesModuleInput; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} export interface CreateNamespaceModuleInput { clientMutationId?: string; /** The `NamespaceModule` to be created by this mutation. */ @@ -5336,53 +5703,35 @@ export interface NamespaceModuleInput { entityTableId?: string; policies?: unknown; provisions?: unknown; + defaultPermissions?: string[]; } -export interface CreateRealtimeModuleInput { +export interface CreateComputeLogModuleInput { clientMutationId?: string; - /** The `RealtimeModule` to be created by this mutation. */ - realtimeModule: RealtimeModuleInput; + /** The `ComputeLogModule` to be created by this mutation. */ + computeLogModule: ComputeLogModuleInput; } -/** An input for mutations affecting `RealtimeModule` */ -export interface RealtimeModuleInput { +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; interval?: string; - notifyChannel?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; apiName?: string; privateApiName?: string; } -export interface CreateWebauthnAuthModuleInput { - clientMutationId?: string; - /** The `WebauthnAuthModule` to be created by this mutation. */ - webauthnAuthModule: WebauthnAuthModuleInput; -} -/** An input for mutations affecting `WebauthnAuthModule` */ -export interface WebauthnAuthModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - usersTableId?: string; - credentialsTableId?: string; - sessionsTableId?: string; - sessionCredentialsTableId?: string; - sessionSecretsTableId?: string; - authSettingsTableId?: string; - rpId?: string; - rpName?: string; - originAllowlist?: string[]; - attestationType?: string; - requireUserVerification?: boolean; - residentKey?: string; - challengeExpiry?: IntervalInput; -} export interface CreateGraphModuleInput { clientMutationId?: string; /** The `GraphModule` to be created by this mutation. */ @@ -5407,33 +5756,9 @@ export interface GraphModuleInput { entityTableId?: string; policies?: unknown; provisions?: unknown; + defaultPermissions?: string[]; createdAt?: string; } -export interface CreateComputeLogModuleInput { - clientMutationId?: string; - /** The `ComputeLogModule` to be created by this mutation. */ - computeLogModule: ComputeLogModuleInput; -} -/** An input for mutations affecting `ComputeLogModule` */ -export interface ComputeLogModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} export interface CreateInferenceLogModuleInput { clientMutationId?: string; /** The `InferenceLogModule` to be created by this mutation. */ @@ -5445,6 +5770,8 @@ export interface InferenceLogModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; usageDailyTableId?: string; @@ -5470,6 +5797,8 @@ export interface StorageLogModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; storageLogTableId?: string; storageLogTableName?: string; usageDailyTableId?: string; @@ -5495,6 +5824,8 @@ export interface TransferLogModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; transferLogTableId?: string; transferLogTableName?: string; usageDailyTableId?: string; @@ -5509,84 +5840,92 @@ export interface TransferLogModuleInput { apiName?: string; privateApiName?: string; } -export interface CreateDbUsageModuleInput { +export interface CreatePlansModuleInput { clientMutationId?: string; - /** The `DbUsageModule` to be created by this mutation. */ - dbUsageModule: DbUsageModuleInput; + /** The `PlansModule` to be created by this mutation. */ + plansModule: PlansModuleInput; } -/** An input for mutations affecting `DbUsageModule` */ -export interface DbUsageModuleInput { +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; prefix?: string; apiName?: string; privateApiName?: string; } -export interface CreateNotificationsModuleInput { +export interface CreateBillingProviderModuleInput { clientMutationId?: string; - /** The `NotificationsModule` to be created by this mutation. */ - notificationsModule: NotificationsModuleInput; + /** The `BillingProviderModule` to be created by this mutation. */ + billingProviderModule: BillingProviderModuleInput; } -/** An input for mutations affecting `NotificationsModule` */ -export interface NotificationsModuleInput { +/** An input for mutations affecting `BillingProviderModule` */ +export interface BillingProviderModuleInput { 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; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; apiName?: string; privateApiName?: string; } -export interface CreatePlansModuleInput { +export interface CreateDbUsageModuleInput { clientMutationId?: string; - /** The `PlansModule` to be created by this mutation. */ - plansModule: PlansModuleInput; + /** The `DbUsageModule` to be created by this mutation. */ + dbUsageModule: DbUsageModuleInput; } -/** An input for mutations affecting `PlansModule` */ -export interface PlansModuleInput { +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - plansTableId?: string; - plansTableName?: string; - planLimitsTableId?: string; - planLimitsTableName?: string; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; prefix?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -5617,65 +5956,66 @@ export interface HierarchyModuleInput { getSubordinatesFunction?: string; getManagersFunction?: string; isManagerOfFunction?: string; + defaultPermissions?: string[]; createdAt?: string; } -export interface CreateBillingModuleInput { +export interface CreatePermissionsModuleInput { clientMutationId?: string; - /** The `BillingModule` to be created by this mutation. */ - billingModule: BillingModuleInput; + /** The `PermissionsModule` to be created by this mutation. */ + permissionsModule: PermissionsModuleInput; } -/** An input for mutations affecting `BillingModule` */ -export interface BillingModuleInput { +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } -export interface CreateBillingProviderModuleInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - /** The `BillingProviderModule` to be created by this mutation. */ - billingProviderModule: BillingProviderModuleInput; + /** The `NotificationsModule` to be created by this mutation. */ + notificationsModule: NotificationsModuleInput; } -/** An input for mutations affecting `BillingProviderModule` */ -export interface BillingProviderModuleInput { +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -5690,6 +6030,8 @@ export interface ProfilesModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; profilePermissionsTableId?: string; @@ -5709,30 +6051,36 @@ export interface ProfilesModuleInput { apiName?: string; privateApiName?: string; } -export interface CreatePermissionsModuleInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; + /** The `BillingModule` to be created by this mutation. */ + billingModule: BillingModuleInput; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { id?: string; databaseId: string; schemaId?: string; privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -5913,40 +6261,6 @@ export interface BlueprintTemplateInput { /** Timestamp when this template was last modified. */ updatedAt?: string; } -export interface CreateFunctionModuleInput { - clientMutationId?: string; - /** The `FunctionModule` to be created by this mutation. */ - functionModule: FunctionModuleInput; -} -/** An input for mutations affecting `FunctionModule` */ -export interface FunctionModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; -} export interface CreateUserAuthModuleInput { clientMutationId?: string; /** The `UserAuthModule` to be created by this mutation. */ @@ -5994,6 +6308,8 @@ export interface AgentModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; threadTableId?: string; messageTableId?: string; taskTableId?: string; @@ -6013,6 +6329,7 @@ export interface AgentModuleInput { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: string; privateApiName?: string; scope?: string; @@ -6021,6 +6338,7 @@ export interface AgentModuleInput { policies?: unknown; resources?: unknown; provisions?: unknown; + defaultPermissions?: string[]; } export interface CreateLimitsModuleInput { clientMutationId?: string; @@ -6033,6 +6351,8 @@ export interface LimitsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -6063,142 +6383,53 @@ export interface LimitsModuleInput { actorTableId?: string; apiName?: string; privateApiName?: string; -} -export interface CreateMembershipsModuleInput { - clientMutationId?: string; - /** The `MembershipsModule` to be created by this mutation. */ - membershipsModule: MembershipsModuleInput; -} -/** An input for mutations affecting `MembershipsModule` */ -export interface MembershipsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - membershipsTableId?: string; - membershipsTableName?: string; - membersTableId?: string; - membersTableName?: string; - membershipDefaultsTableId?: string; - membershipDefaultsTableName?: string; - membershipSettingsTableId?: string; - membershipSettingsTableName?: string; - grantsTableId?: string; - grantsTableName?: string; - actorTableId?: string; - limitsTableId?: string; - defaultLimitsTableId?: string; - permissionsTableId?: string; - defaultPermissionsTableId?: string; - sprtTableId?: string; - adminGrantsTableId?: string; - adminGrantsTableName?: string; - ownerGrantsTableId?: string; - ownerGrantsTableName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - entityTableOwnerId?: string; - getOrgFn?: string; - actorMaskCheck?: string; - actorPermCheck?: string; - entityIdsByMask?: string; - entityIdsByPerm?: string; - entityIdsFunction?: string; - memberProfilesTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface CreateStorageModuleInput { - clientMutationId?: string; - /** The `StorageModule` to be created by this mutation. */ - storageModule: StorageModuleInput; -} -/** An input for mutations affecting `StorageModule` */ -export interface StorageModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - scope?: string; - prefix?: string; - policies?: unknown; - provisions?: unknown; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface CreateEventsModuleInput { - clientMutationId?: string; - /** The `EventsModule` to be created by this mutation. */ - eventsModule: EventsModuleInput; -} -/** An input for mutations affecting `EventsModule` */ -export interface EventsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - eventsTableId?: string; - eventsTableName?: string; - eventAggregatesTableId?: string; - eventAggregatesTableName?: string; - eventTypesTableId?: string; - eventTypesTableName?: string; - levelsTableId?: string; - levelsTableName?: string; - levelRequirementsTableId?: string; - levelRequirementsTableName?: string; - levelGrantsTableId?: string; - levelGrantsTableName?: string; - achievementRewardsTableId?: string; - achievementRewardsTableName?: string; - recordEvent?: string; - removeEvent?: string; - tgEvent?: string; - tgEventToggle?: string; - tgEventToggleBool?: string; - tgEventBool?: string; - upsertAggregate?: string; - tgUpdateAggregates?: string; - pruneEvents?: string; - stepsRequired?: string; - levelAchieved?: string; - tgCheckAchievements?: string; - grantAchievement?: string; - tgAchievementReward?: string; - interval?: string; - retention?: string; - premake?: number; +} +export interface CreateMembershipsModuleInput { + clientMutationId?: string; + /** The `MembershipsModule` to be created by this mutation. */ + membershipsModule: MembershipsModuleInput; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; scope?: string; prefix?: string; entityTableId?: string; - actorTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; } @@ -6456,12 +6687,109 @@ export interface EntityTypeProvisionInput { outInvocationsTableId?: string; outExecutionLogsTableId?: string; outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; } +export interface CreateStorageModuleInput { + clientMutationId?: string; + /** The `StorageModule` to be created by this mutation. */ + storageModule: StorageModuleInput; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: unknown; + provisions?: unknown; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface CreateEventsModuleInput { + clientMutationId?: string; + /** The `EventsModule` to be created by this mutation. */ + eventsModule: EventsModuleInput; +} +/** An input for mutations affecting `EventsModule` */ +export interface EventsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + pruneEvents?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} export interface UpdateDefaultIdsModuleInput { clientMutationId?: string; id: string; @@ -6742,27 +7070,6 @@ export interface CryptoAddressesModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ -export interface IdentityProvidersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ - privateSchemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; -} export interface UpdateDenormalizedTableFieldInput { clientMutationId?: string; id: string; @@ -6784,6 +7091,29 @@ export interface DenormalizedTableFieldPatch { funcName?: string; funcOrder?: number; } +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `IdentityProvidersModule` being updated. */ + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +/** Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. */ +export interface IdentityProvidersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} export interface UpdateRlsModuleInput { clientMutationId?: string; id: string; @@ -6863,29 +7193,6 @@ export interface CryptoAuthModulePatch { signUpWithKey?: string; signInWithChallenge?: string; } -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `RateLimitMetersModule` being updated. */ - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -/** Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. */ -export interface RateLimitMetersModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; -} export interface UpdateBlueprintConstructionInput { clientMutationId?: string; /** Unique identifier for this construction attempt. */ @@ -6936,55 +7243,7 @@ export interface SessionsModulePatch { sessionsDefaultExpiration?: IntervalInput; sessionsTable?: string; sessionCredentialsTable?: string; - authSettingsTable?: string; -} -export interface UpdateConfigSecretsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ConfigSecretsModule` being updated. */ - configSecretsModulePatch: ConfigSecretsModulePatch; -} -/** Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. */ -export interface ConfigSecretsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - configDefinitionsTableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; - hasConfig?: boolean; -} -export interface UpdateMerkleStoreModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `MerkleStoreModule` being updated. */ - merkleStoreModulePatch: MerkleStoreModulePatch; -} -/** Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. */ -export interface MerkleStoreModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - objectTableId?: string; - storeTableId?: string; - commitTableId?: string; - refTableId?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - createdAt?: string; + authSettingsTable?: string; } export interface UpdateSecureTableProvisionInput { clientMutationId?: string; @@ -7018,30 +7277,30 @@ export interface SecureTableProvisionPatch { /** 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 UpdateInvitesModuleInput { +export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `InvitesModule` being updated. */ - invitesModulePatch: InvitesModulePatch; + /** An object where the defined keys will be set on the `MerkleStoreModule` being updated. */ + merkleStoreModulePatch: MerkleStoreModulePatch; } -/** Represents an update to a `InvitesModule`. Fields that are set will be updated. */ -export interface InvitesModulePatch { +/** Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. */ +export interface MerkleStoreModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; prefix?: string; - entityTableId?: string; apiName?: string; privateApiName?: string; + scope?: string; + functionPrefix?: string; + createdAt?: string; } export interface UpdateDatabaseProvisionModuleInput { clientMutationId?: string; @@ -7075,24 +7334,23 @@ export interface DatabaseProvisionModulePatch { updatedAt?: string; completedAt?: string; } -export interface UpdateNamespaceModuleInput { +export interface UpdateConfigSecretsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `NamespaceModule` being updated. */ - namespaceModulePatch: NamespaceModulePatch; + /** An object where the defined keys will be set on the `ConfigSecretsModule` being updated. */ + configSecretsModulePatch: ConfigSecretsModulePatch; } -/** Represents an update to a `NamespaceModule`. Fields that are set will be updated. */ -export interface NamespaceModulePatch { +/** Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. */ +export interface ConfigSecretsModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -7100,6 +7358,33 @@ export interface NamespaceModulePatch { entityTableId?: string; policies?: unknown; provisions?: unknown; + hasConfig?: boolean; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `RateLimitMetersModule` being updated. */ + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +/** Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. */ +export interface RateLimitMetersModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; } export interface UpdateRealtimeModuleInput { clientMutationId?: string; @@ -7149,32 +7434,113 @@ export interface WebauthnAuthModulePatch { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface UpdateGraphModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `GraphModule` being updated. */ - graphModulePatch: GraphModulePatch; + /** An object where the defined keys will be set on the `FunctionInvocationModule` being updated. */ + functionInvocationModulePatch: FunctionInvocationModulePatch; } -/** Represents an update to a `GraphModule`. Fields that are set will be updated. */ -export interface GraphModulePatch { +/** Represents an update to a `FunctionInvocationModule`. Fields that are set will be updated. */ +export interface FunctionInvocationModulePatch { id?: string; databaseId?: string; - publicSchemaId?: string; + schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + apiName?: string; + privateApiName?: string; scope?: string; prefix?: string; - merkleStoreModuleId?: string; - graphsTableId?: string; - executionsTableId?: string; - outputsTableId?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; +} +export interface UpdateFunctionModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `FunctionModule` being updated. */ + functionModulePatch: FunctionModulePatch; +} +/** Represents an update to a `FunctionModule`. Fields that are set will be updated. */ +export interface FunctionModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; entityTableId?: string; policies?: unknown; provisions?: unknown; - createdAt?: string; + defaultPermissions?: string[]; +} +export interface UpdateInvitesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `InvitesModule` being updated. */ + invitesModulePatch: InvitesModulePatch; +} +/** Represents an update to a `InvitesModule`. Fields that are set will be updated. */ +export interface InvitesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `NamespaceModule` being updated. */ + namespaceModulePatch: NamespaceModulePatch; +} +/** Represents an update to a `NamespaceModule`. Fields that are set will be updated. */ +export interface NamespaceModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; } export interface UpdateComputeLogModuleInput { clientMutationId?: string; @@ -7188,6 +7554,8 @@ export interface ComputeLogModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; computeLogTableId?: string; computeLogTableName?: string; usageDailyTableId?: string; @@ -7202,6 +7570,34 @@ export interface ComputeLogModulePatch { apiName?: string; privateApiName?: string; } +export interface UpdateGraphModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `GraphModule` being updated. */ + graphModulePatch: GraphModulePatch; +} +/** Represents an update to a `GraphModule`. Fields that are set will be updated. */ +export interface GraphModulePatch { + id?: string; + databaseId?: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId?: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: unknown; + provisions?: unknown; + defaultPermissions?: string[]; + createdAt?: string; +} export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; @@ -7214,6 +7610,8 @@ export interface InferenceLogModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; inferenceLogTableId?: string; inferenceLogTableName?: string; usageDailyTableId?: string; @@ -7240,6 +7638,8 @@ export interface StorageLogModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; storageLogTableId?: string; storageLogTableName?: string; usageDailyTableId?: string; @@ -7266,16 +7666,79 @@ export interface TransferLogModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: 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; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +export interface UpdateBillingProviderModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `BillingProviderModule` being updated. */ + billingProviderModulePatch: BillingProviderModulePatch; +} +/** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ +export interface BillingProviderModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; prefix?: string; apiName?: string; privateApiName?: string; @@ -7292,6 +7755,8 @@ export interface DbUsageModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableStatsLogTableId?: string; tableStatsLogTableName?: string; tableStatsDailyTableId?: string; @@ -7305,62 +7770,7 @@ export interface DbUsageModulePatch { premake?: number; scope?: string; prefix?: string; - apiName?: string; - privateApiName?: 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; - apiName?: string; - privateApiName?: 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; - planPricingTableId?: string; - planOverridesTableId?: string; - planMeterLimitsTableId?: string; - planCapsTableId?: string; - applyPlanFunction?: string; - applyPlanAggregateFunction?: string; - applyBillingPlanFunction?: string; - applyPlanCapsFunction?: string; - prefix?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -7392,67 +7802,68 @@ export interface HierarchyModulePatch { getSubordinatesFunction?: string; getManagersFunction?: string; isManagerOfFunction?: string; + defaultPermissions?: string[]; createdAt?: string; } -export interface UpdateBillingModuleInput { +export interface UpdatePermissionsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `BillingModule` being updated. */ - billingModulePatch: BillingModulePatch; + /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ + permissionsModulePatch: PermissionsModulePatch; } -/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ -export interface BillingModulePatch { +/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ +export interface PermissionsModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; apiName?: string; privateApiName?: string; } -export interface UpdateBillingProviderModuleInput { +export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `BillingProviderModule` being updated. */ - billingProviderModulePatch: BillingProviderModulePatch; + /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ + notificationsModulePatch: NotificationsModulePatch; } -/** Represents an update to a `BillingProviderModule`. Fields that are set will be updated. */ -export interface BillingProviderModulePatch { +/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ +export interface NotificationsModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - provider?: string; - productsTableId?: string; - pricesTableId?: string; - subscriptionsTableId?: string; - billingCustomersTableId?: string; - billingCustomersTableName?: string; - billingProductsTableId?: string; - billingProductsTableName?: string; - billingPricesTableId?: string; - billingPricesTableName?: string; - billingSubscriptionsTableId?: string; - billingSubscriptionsTableName?: string; - billingWebhookEventsTableId?: string; - billingWebhookEventsTableName?: string; - processBillingEventFunction?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -7468,6 +7879,8 @@ export interface ProfilesModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; profilePermissionsTableId?: string; @@ -7487,31 +7900,37 @@ export interface ProfilesModulePatch { apiName?: string; privateApiName?: string; } -export interface UpdatePermissionsModuleInput { +export interface UpdateBillingModuleInput { 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 `BillingModule` being updated. */ + billingModulePatch: BillingModulePatch; } -/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ -export interface PermissionsModulePatch { +/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ +export interface BillingModulePatch { id?: string; databaseId?: string; schemaId?: string; privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - scope?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; prefix?: string; - entityTableId?: string; - actorTableId?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; } @@ -7675,61 +8094,26 @@ export interface BlueprintTemplatePatch { tags?: string[]; /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ definition?: unknown; - /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ - definitionSchemaVersion?: string; - /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ - source?: string; - /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ - complexity?: string; - /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ - copyCount?: number; - /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ - forkCount?: number; - /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ - forkedFromId?: string; - /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ - definitionHash?: string; - /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ - tableHashes?: unknown; - /** Timestamp when this template was created. */ - createdAt?: string; - /** Timestamp when this template was last modified. */ - updatedAt?: string; -} -export interface UpdateFunctionModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `FunctionModule` being updated. */ - functionModulePatch: FunctionModulePatch; -} -/** Represents an update to a `FunctionModule`. Fields that are set will be updated. */ -export interface FunctionModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - publicSchemaName?: string; - privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - policies?: unknown; - provisions?: unknown; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: unknown; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; } export interface UpdateUserAuthModuleInput { clientMutationId?: string; @@ -7780,6 +8164,8 @@ export interface AgentModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; threadTableId?: string; messageTableId?: string; taskTableId?: string; @@ -7799,6 +8185,7 @@ export interface AgentModulePatch { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: string; privateApiName?: string; scope?: string; @@ -7807,6 +8194,7 @@ export interface AgentModulePatch { policies?: unknown; resources?: unknown; provisions?: unknown; + defaultPermissions?: string[]; } export interface UpdateLimitsModuleInput { clientMutationId?: string; @@ -7820,6 +8208,8 @@ export interface LimitsModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -7863,6 +8253,8 @@ export interface MembershipsModulePatch { databaseId?: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; membershipsTableId?: string; membershipsTableName?: string; membersTableId?: string; @@ -7894,101 +8286,8 @@ export interface MembershipsModulePatch { entityIdsByPerm?: string; entityIdsFunction?: string; memberProfilesTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface UpdateStorageModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `StorageModule` being updated. */ - storageModulePatch: StorageModulePatch; -} -/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ -export interface StorageModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - bucketsTableId?: string; - filesTableId?: string; - bucketsTableName?: string; - filesTableName?: string; - scope?: string; - prefix?: string; - policies?: unknown; - provisions?: unknown; - entityTableId?: string; - endpoint?: string; - publicUrlPrefix?: string; - provider?: string; - allowedOrigins?: string[]; - restrictReads?: boolean; - hasPathShares?: boolean; - pathSharesTableId?: string; - uploadUrlExpirySeconds?: number; - downloadUrlExpirySeconds?: number; - defaultMaxFileSize?: string; - maxFilenameLength?: number; - cacheTtlSeconds?: number; - maxBulkFiles?: number; - maxBulkTotalSize?: string; - hasVersioning?: boolean; - hasContentHash?: boolean; - hasCustomKeys?: boolean; - hasAuditLog?: boolean; - hasConfirmUpload?: boolean; - confirmUploadDelay?: IntervalInput; - fileEventsTableId?: string; - apiName?: string; - privateApiName?: string; -} -export interface UpdateEventsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `EventsModule` being updated. */ - eventsModulePatch: EventsModulePatch; -} -/** Represents an update to a `EventsModule`. Fields that are set will be updated. */ -export interface EventsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - eventsTableId?: string; - eventsTableName?: string; - eventAggregatesTableId?: string; - eventAggregatesTableName?: string; - eventTypesTableId?: string; - eventTypesTableName?: string; - levelsTableId?: string; - levelsTableName?: string; - levelRequirementsTableId?: string; - levelRequirementsTableName?: string; - levelGrantsTableId?: string; - levelGrantsTableName?: string; - achievementRewardsTableId?: string; - achievementRewardsTableName?: string; - recordEvent?: string; - removeEvent?: string; - tgEvent?: string; - tgEventToggle?: string; - tgEventToggleBool?: string; - tgEventBool?: string; - upsertAggregate?: string; - tgUpdateAggregates?: string; - pruneEvents?: string; - stepsRequired?: string; - levelAchieved?: string; - tgCheckAchievements?: string; - grantAchievement?: string; - tgAchievementReward?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - prefix?: string; - entityTableId?: string; - actorTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; } @@ -8248,12 +8547,111 @@ export interface EntityTypeProvisionPatch { outInvocationsTableId?: string; outExecutionLogsTableId?: string; outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; outGraphModuleId?: string; outGraphsTableId?: string; outAgentModuleId?: string; } +export interface UpdateStorageModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `StorageModule` being updated. */ + storageModulePatch: StorageModulePatch; +} +/** Represents an update to a `StorageModule`. Fields that are set will be updated. */ +export interface StorageModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: unknown; + provisions?: unknown; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +export interface UpdateEventsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `EventsModule` being updated. */ + eventsModulePatch: EventsModulePatch; +} +/** Represents an update to a `EventsModule`. Fields that are set will be updated. */ +export interface EventsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + pruneEvents?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} export interface DeleteDefaultIdsModuleInput { clientMutationId?: string; id: string; @@ -8322,11 +8720,11 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteIdentityProvidersModuleInput { +export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface DeleteDenormalizedTableFieldInput { +export interface DeleteIdentityProvidersModuleInput { clientMutationId?: string; id: string; } @@ -8343,10 +8741,6 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteBlueprintConstructionInput { clientMutationId?: string; /** Unique identifier for this construction attempt. */ @@ -8356,40 +8750,48 @@ export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } export interface DeleteMerkleStoreModuleInput { clientMutationId?: string; id: string; } -export interface DeleteSecureTableProvisionInput { +export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; } -export interface DeleteInvitesModuleInput { +export interface DeleteConfigSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteDatabaseProvisionModuleInput { +export interface DeleteRateLimitMetersModuleInput { clientMutationId?: string; id: string; } -export interface DeleteNamespaceModuleInput { +export interface DeleteRealtimeModuleInput { clientMutationId?: string; id: string; } -export interface DeleteRealtimeModuleInput { +export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface DeleteWebauthnAuthModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface DeleteGraphModuleInput { +export interface DeleteFunctionModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteInvitesModuleInput { + clientMutationId?: string; + id: string; +} +export interface DeleteNamespaceModuleInput { clientMutationId?: string; id: string; } @@ -8397,6 +8799,10 @@ export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } +export interface DeleteGraphModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; @@ -8409,15 +8815,15 @@ export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } -export interface DeleteDbUsageModuleInput { +export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface DeleteNotificationsModuleInput { +export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface DeletePlansModuleInput { +export interface DeleteDbUsageModuleInput { clientMutationId?: string; id: string; } @@ -8425,11 +8831,11 @@ export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBillingModuleInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBillingProviderModuleInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } @@ -8437,7 +8843,7 @@ export interface DeleteProfilesModuleInput { clientMutationId?: string; id: string; } -export interface DeletePermissionsModuleInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -8451,10 +8857,6 @@ export interface DeleteBlueprintTemplateInput { /** Unique identifier for this template. */ id: string; } -export interface DeleteFunctionModuleInput { - clientMutationId?: string; - id: string; -} export interface DeleteUserAuthModuleInput { clientMutationId?: string; id: string; @@ -8471,17 +8873,17 @@ export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteStorageModuleInput { +export interface DeleteEntityTypeProvisionInput { clientMutationId?: string; + /** Unique identifier for this provision row. */ id: string; } -export interface DeleteEventsModuleInput { +export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } -export interface DeleteEntityTypeProvisionInput { +export interface DeleteEventsModuleInput { clientMutationId?: string; - /** Unique identifier for this provision row. */ id: string; } export interface ProvisionBucketInput { @@ -8612,13 +9014,6 @@ export interface CryptoAddressesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `IdentityProvidersModule` values. */ -export interface IdentityProvidersModuleConnection { - nodes: IdentityProvidersModule[]; - edges: IdentityProvidersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DenormalizedTableField` values. */ export interface DenormalizedTableFieldConnection { nodes: DenormalizedTableField[]; @@ -8626,6 +9021,13 @@ export interface DenormalizedTableFieldConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `IdentityProvidersModule` values. */ +export interface IdentityProvidersModuleConnection { + nodes: IdentityProvidersModule[]; + edges: IdentityProvidersModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RlsModule` values. */ export interface RlsModuleConnection { nodes: RlsModule[]; @@ -8647,13 +9049,6 @@ export interface CryptoAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RateLimitMetersModule` values. */ -export interface RateLimitMetersModuleConnection { - nodes: RateLimitMetersModule[]; - edges: RateLimitMetersModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `BlueprintConstruction` values. */ export interface BlueprintConstructionConnection { nodes: BlueprintConstruction[]; @@ -8668,20 +9063,6 @@ export interface SessionsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ConfigSecretsModule` values. */ -export interface ConfigSecretsModuleConnection { - nodes: ConfigSecretsModule[]; - edges: ConfigSecretsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MerkleStoreModule` values. */ -export interface MerkleStoreModuleConnection { - nodes: MerkleStoreModule[]; - edges: MerkleStoreModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `SecureTableProvision` values. */ export interface SecureTableProvisionConnection { nodes: SecureTableProvision[]; @@ -8689,10 +9070,10 @@ export interface SecureTableProvisionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `InvitesModule` values. */ -export interface InvitesModuleConnection { - nodes: InvitesModule[]; - edges: InvitesModuleEdge[]; +/** A connection to a list of `MerkleStoreModule` values. */ +export interface MerkleStoreModuleConnection { + nodes: MerkleStoreModule[]; + edges: MerkleStoreModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8703,10 +9084,17 @@ export interface DatabaseProvisionModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `NamespaceModule` values. */ -export interface NamespaceModuleConnection { - nodes: NamespaceModule[]; - edges: NamespaceModuleEdge[]; +/** A connection to a list of `ConfigSecretsModule` values. */ +export interface ConfigSecretsModuleConnection { + nodes: ConfigSecretsModule[]; + edges: ConfigSecretsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `RateLimitMetersModule` values. */ +export interface RateLimitMetersModuleConnection { + nodes: RateLimitMetersModule[]; + edges: RateLimitMetersModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8724,10 +9112,31 @@ export interface WebauthnAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `GraphModule` values. */ -export interface GraphModuleConnection { - nodes: GraphModule[]; - edges: GraphModuleEdge[]; +/** A connection to a list of `FunctionInvocationModule` values. */ +export interface FunctionInvocationModuleConnection { + nodes: FunctionInvocationModule[]; + edges: FunctionInvocationModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `FunctionModule` values. */ +export interface FunctionModuleConnection { + nodes: FunctionModule[]; + edges: FunctionModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `InvitesModule` values. */ +export interface InvitesModuleConnection { + nodes: InvitesModule[]; + edges: InvitesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `NamespaceModule` values. */ +export interface NamespaceModuleConnection { + nodes: NamespaceModule[]; + edges: NamespaceModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8738,6 +9147,13 @@ export interface ComputeLogModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `GraphModule` values. */ +export interface GraphModuleConnection { + nodes: GraphModule[]; + edges: GraphModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `InferenceLogModule` values. */ export interface InferenceLogModuleConnection { nodes: InferenceLogModule[]; @@ -8759,24 +9175,24 @@ export interface TransferLogModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `DbUsageModule` values. */ -export interface DbUsageModuleConnection { - nodes: DbUsageModule[]; - edges: DbUsageModuleEdge[]; +/** 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 `NotificationsModule` values. */ -export interface NotificationsModuleConnection { - nodes: NotificationsModule[]; - edges: NotificationsModuleEdge[]; +/** A connection to a list of `BillingProviderModule` values. */ +export interface BillingProviderModuleConnection { + nodes: BillingProviderModule[]; + edges: BillingProviderModuleEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PlansModule` values. */ -export interface PlansModuleConnection { - nodes: PlansModule[]; - edges: PlansModuleEdge[]; +/** A connection to a list of `DbUsageModule` values. */ +export interface DbUsageModuleConnection { + nodes: DbUsageModule[]; + edges: DbUsageModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8787,17 +9203,17 @@ export interface HierarchyModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `BillingModule` values. */ -export interface BillingModuleConnection { - nodes: BillingModule[]; - edges: BillingModuleEdge[]; +/** 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 `BillingProviderModule` values. */ -export interface BillingProviderModuleConnection { - nodes: BillingProviderModule[]; - edges: BillingProviderModuleEdge[]; +/** A connection to a list of `NotificationsModule` values. */ +export interface NotificationsModuleConnection { + nodes: NotificationsModule[]; + edges: NotificationsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8808,10 +9224,10 @@ export interface ProfilesModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; +/** A connection to a list of `BillingModule` values. */ +export interface BillingModuleConnection { + nodes: BillingModule[]; + edges: BillingModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -8829,13 +9245,6 @@ export interface BlueprintTemplateConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `FunctionModule` values. */ -export interface FunctionModuleConnection { - nodes: FunctionModule[]; - edges: FunctionModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `UserAuthModule` values. */ export interface UserAuthModuleConnection { nodes: UserAuthModule[]; @@ -8864,6 +9273,13 @@ export interface MembershipsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `EntityTypeProvision` values. */ +export interface EntityTypeProvisionConnection { + nodes: EntityTypeProvision[]; + edges: EntityTypeProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `StorageModule` values. */ export interface StorageModuleConnection { nodes: StorageModule[]; @@ -8878,13 +9294,6 @@ export interface EventsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `EntityTypeProvision` values. */ -export interface EntityTypeProvisionConnection { - nodes: EntityTypeProvision[]; - edges: EntityTypeProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** Root meta schema type */ export interface MetaSchema { tables: MetaTable[]; @@ -9025,18 +9434,18 @@ export interface CreateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface CreateDenormalizedTableFieldPayload { clientMutationId?: string | null; /** The `DenormalizedTableField` that was created by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -9055,12 +9464,6 @@ export interface CreateCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was created by this mutation. */ @@ -9073,29 +9476,17 @@ export interface CreateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface CreateConfigSecretsModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; -} -export interface CreateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was created by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was created by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface CreateInvitesModulePayload { +export interface CreateMerkleStoreModulePayload { clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; + /** The `MerkleStoreModule` that was created by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; } export interface CreateDatabaseProvisionModulePayload { clientMutationId?: string | null; @@ -9103,11 +9494,17 @@ export interface CreateDatabaseProvisionModulePayload { databaseProvisionModule?: DatabaseProvisionModule | null; databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export interface CreateNamespaceModulePayload { +export interface CreateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface CreateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } export interface CreateRealtimeModulePayload { clientMutationId?: string | null; @@ -9121,11 +9518,29 @@ export interface CreateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface CreateGraphModulePayload { +export interface CreateFunctionInvocationModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was created by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionInvocationModule` that was created by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export interface CreateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface CreateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } export interface CreateComputeLogModulePayload { clientMutationId?: string | null; @@ -9133,6 +9548,12 @@ export interface CreateComputeLogModulePayload { computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } +export interface CreateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was created by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} export interface CreateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was created by this mutation. */ @@ -9151,41 +9572,41 @@ export interface CreateTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface CreateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface CreatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was created by this mutation. */ plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } +export interface CreateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface CreateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface CreateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was created by this mutation. */ hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface CreateBillingModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface CreateBillingProviderModulePayload { +export interface CreateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } export interface CreateProfilesModulePayload { clientMutationId?: string | null; @@ -9193,11 +9614,11 @@ export interface CreateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface CreatePermissionsModulePayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } export interface CreateRelationProvisionPayload { clientMutationId?: string | null; @@ -9211,12 +9632,6 @@ export interface CreateBlueprintTemplatePayload { blueprintTemplate?: BlueprintTemplate | null; blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} export interface CreateUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was created by this mutation. */ @@ -9241,6 +9656,12 @@ export interface CreateMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} export interface CreateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was created by this mutation. */ @@ -9253,12 +9674,6 @@ export interface CreateEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} export interface UpdateDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was updated by this mutation. */ @@ -9361,18 +9776,18 @@ export interface UpdateCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface UpdateDenormalizedTableFieldPayload { clientMutationId?: string | null; /** The `DenormalizedTableField` that was updated by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} export interface UpdateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was updated by this mutation. */ @@ -9391,12 +9806,6 @@ export interface UpdateCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was updated by this mutation. */ @@ -9409,29 +9818,17 @@ export interface UpdateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface UpdateConfigSecretsModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; -} -export interface UpdateMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was updated by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was updated by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface UpdateInvitesModulePayload { +export interface UpdateMerkleStoreModulePayload { clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; + /** The `MerkleStoreModule` that was updated by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; } export interface UpdateDatabaseProvisionModulePayload { clientMutationId?: string | null; @@ -9439,11 +9836,17 @@ export interface UpdateDatabaseProvisionModulePayload { databaseProvisionModule?: DatabaseProvisionModule | null; databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export interface UpdateNamespaceModulePayload { +export interface UpdateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface UpdateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } export interface UpdateRealtimeModulePayload { clientMutationId?: string | null; @@ -9457,11 +9860,29 @@ export interface UpdateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface UpdateGraphModulePayload { +export interface UpdateFunctionInvocationModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was updated by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionInvocationModule` that was updated by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export interface UpdateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface UpdateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } export interface UpdateComputeLogModulePayload { clientMutationId?: string | null; @@ -9469,6 +9890,12 @@ export interface UpdateComputeLogModulePayload { computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } +export interface UpdateGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was updated by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} export interface UpdateInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was updated by this mutation. */ @@ -9487,41 +9914,41 @@ export interface UpdateTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface UpdateDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface UpdatePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was updated by this mutation. */ plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } +export interface UpdateBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface UpdateDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface UpdateHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was updated by this mutation. */ hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface UpdateBillingModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface UpdateBillingProviderModulePayload { +export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } export interface UpdateProfilesModulePayload { clientMutationId?: string | null; @@ -9529,11 +9956,11 @@ export interface UpdateProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface UpdatePermissionsModulePayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } export interface UpdateRelationProvisionPayload { clientMutationId?: string | null; @@ -9547,12 +9974,6 @@ export interface UpdateBlueprintTemplatePayload { blueprintTemplate?: BlueprintTemplate | null; blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} export interface UpdateUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was updated by this mutation. */ @@ -9577,6 +9998,12 @@ export interface UpdateMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} export interface UpdateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was updated by this mutation. */ @@ -9589,12 +10016,6 @@ export interface UpdateEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} export interface DeleteDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was deleted by this mutation. */ @@ -9697,18 +10118,18 @@ export interface DeleteCryptoAddressesModulePayload { cryptoAddressesModule?: CryptoAddressesModule | null; cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export interface DeleteIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; /** The `DenormalizedTableField` that was deleted by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} export interface DeleteRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was deleted by this mutation. */ @@ -9727,12 +10148,6 @@ export interface DeleteCryptoAuthModulePayload { cryptoAuthModule?: CryptoAuthModule | null; cryptoAuthModuleEdge?: CryptoAuthModuleEdge | null; } -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; /** The `BlueprintConstruction` that was deleted by this mutation. */ @@ -9745,29 +10160,17 @@ export interface DeleteSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface DeleteConfigSecretsModulePayload { - clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; -} -export interface DeleteMerkleStoreModulePayload { - clientMutationId?: string | null; - /** The `MerkleStoreModule` that was deleted by this mutation. */ - merkleStoreModule?: MerkleStoreModule | null; - merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; -} export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; /** The `SecureTableProvision` that was deleted by this mutation. */ secureTableProvision?: SecureTableProvision | null; secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export interface DeleteInvitesModulePayload { +export interface DeleteMerkleStoreModulePayload { clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; + /** The `MerkleStoreModule` that was deleted by this mutation. */ + merkleStoreModule?: MerkleStoreModule | null; + merkleStoreModuleEdge?: MerkleStoreModuleEdge | null; } export interface DeleteDatabaseProvisionModulePayload { clientMutationId?: string | null; @@ -9775,11 +10178,17 @@ export interface DeleteDatabaseProvisionModulePayload { databaseProvisionModule?: DatabaseProvisionModule | null; databaseProvisionModuleEdge?: DatabaseProvisionModuleEdge | null; } -export interface DeleteNamespaceModulePayload { +export interface DeleteConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; +} +export interface DeleteRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; } export interface DeleteRealtimeModulePayload { clientMutationId?: string | null; @@ -9793,11 +10202,29 @@ export interface DeleteWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } -export interface DeleteGraphModulePayload { +export interface DeleteFunctionInvocationModulePayload { clientMutationId?: string | null; - /** The `GraphModule` that was deleted by this mutation. */ - graphModule?: GraphModule | null; - graphModuleEdge?: GraphModuleEdge | null; + /** The `FunctionInvocationModule` that was deleted by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export interface DeleteFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export interface DeleteNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } export interface DeleteComputeLogModulePayload { clientMutationId?: string | null; @@ -9805,6 +10232,12 @@ export interface DeleteComputeLogModulePayload { computeLogModule?: ComputeLogModule | null; computeLogModuleEdge?: ComputeLogModuleEdge | null; } +export interface DeleteGraphModulePayload { + clientMutationId?: string | null; + /** The `GraphModule` that was deleted by this mutation. */ + graphModule?: GraphModule | null; + graphModuleEdge?: GraphModuleEdge | null; +} export interface DeleteInferenceLogModulePayload { clientMutationId?: string | null; /** The `InferenceLogModule` that was deleted by this mutation. */ @@ -9823,41 +10256,41 @@ export interface DeleteTransferLogModulePayload { transferLogModule?: TransferLogModule | null; transferLogModuleEdge?: TransferLogModuleEdge | null; } -export interface DeleteDbUsageModulePayload { - clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; -} -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} export interface DeletePlansModulePayload { clientMutationId?: string | null; /** The `PlansModule` that was deleted by this mutation. */ plansModule?: PlansModule | null; plansModuleEdge?: PlansModuleEdge | null; } +export interface DeleteBillingProviderModulePayload { + clientMutationId?: string | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; +} +export interface DeleteDbUsageModulePayload { + clientMutationId?: string | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; +} export interface DeleteHierarchyModulePayload { clientMutationId?: string | null; /** The `HierarchyModule` that was deleted by this mutation. */ hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } -export interface DeleteBillingModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export interface DeleteBillingProviderModulePayload { +export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } export interface DeleteProfilesModulePayload { clientMutationId?: string | null; @@ -9865,11 +10298,11 @@ export interface DeleteProfilesModulePayload { profilesModule?: ProfilesModule | null; profilesModuleEdge?: ProfilesModuleEdge | null; } -export interface DeletePermissionsModulePayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } export interface DeleteRelationProvisionPayload { clientMutationId?: string | null; @@ -9883,12 +10316,6 @@ export interface DeleteBlueprintTemplatePayload { blueprintTemplate?: BlueprintTemplate | null; blueprintTemplateEdge?: BlueprintTemplateEdge | null; } -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} export interface DeleteUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was deleted by this mutation. */ @@ -9913,6 +10340,12 @@ export interface DeleteMembershipsModulePayload { membershipsModule?: MembershipsModule | null; membershipsModuleEdge?: MembershipsModuleEdge | null; } +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} export interface DeleteStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was deleted by this mutation. */ @@ -9925,12 +10358,6 @@ export interface DeleteEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ success: boolean; @@ -10058,18 +10485,18 @@ export interface CryptoAddressesModuleEdge { /** The `CryptoAddressesModule` at the end of the edge. */ node?: CryptoAddressesModule | null; } -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { cursor?: string | null; /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -10088,12 +10515,6 @@ export interface CryptoAuthModuleEdge { /** The `CryptoAuthModule` at the end of the edge. */ node?: CryptoAuthModule | null; } -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} /** A `BlueprintConstruction` edge in the connection. */ export interface BlueprintConstructionEdge { cursor?: string | null; @@ -10106,29 +10527,17 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { - cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; -} -/** A `MerkleStoreModule` edge in the connection. */ -export interface MerkleStoreModuleEdge { - cursor?: string | null; - /** The `MerkleStoreModule` at the end of the edge. */ - node?: MerkleStoreModule | 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 `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { +/** A `MerkleStoreModule` edge in the connection. */ +export interface MerkleStoreModuleEdge { cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; + /** The `MerkleStoreModule` at the end of the edge. */ + node?: MerkleStoreModule | null; } /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { @@ -10136,11 +10545,17 @@ export interface DatabaseProvisionModuleEdge { /** The `DatabaseProvisionModule` at the end of the edge. */ node?: DatabaseProvisionModule | null; } -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { +/** A `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; +} +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; } /** A `RealtimeModule` edge in the connection. */ export interface RealtimeModuleEdge { @@ -10154,11 +10569,29 @@ export interface WebauthnAuthModuleEdge { /** The `WebauthnAuthModule` at the end of the edge. */ node?: WebauthnAuthModule | null; } -/** A `GraphModule` edge in the connection. */ -export interface GraphModuleEdge { +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { cursor?: string | null; - /** The `GraphModule` at the end of the edge. */ - node?: GraphModule | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; +} +/** A `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; } /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { @@ -10166,6 +10599,12 @@ export interface ComputeLogModuleEdge { /** The `ComputeLogModule` at the end of the edge. */ node?: ComputeLogModule | null; } +/** A `GraphModule` edge in the connection. */ +export interface GraphModuleEdge { + cursor?: string | null; + /** The `GraphModule` at the end of the edge. */ + node?: GraphModule | null; +} /** A `InferenceLogModule` edge in the connection. */ export interface InferenceLogModuleEdge { cursor?: string | null; @@ -10184,41 +10623,41 @@ export interface TransferLogModuleEdge { /** The `TransferLogModule` at the end of the edge. */ node?: TransferLogModule | null; } -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { - cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | 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 `PlansModule` edge in the connection. */ export interface PlansModuleEdge { cursor?: string | null; /** The `PlansModule` at the end of the edge. */ node?: PlansModule | null; } +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { + cursor?: string | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; +} +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { + cursor?: string | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; +} /** A `HierarchyModule` edge in the connection. */ export interface HierarchyModuleEdge { cursor?: string | null; /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; } -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; } -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; } /** A `ProfilesModule` edge in the connection. */ export interface ProfilesModuleEdge { @@ -10226,11 +10665,11 @@ export interface ProfilesModuleEdge { /** The `ProfilesModule` at the end of the edge. */ node?: ProfilesModule | null; } -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } /** A `RelationProvision` edge in the connection. */ export interface RelationProvisionEdge { @@ -10244,12 +10683,6 @@ export interface BlueprintTemplateEdge { /** The `BlueprintTemplate` at the end of the edge. */ node?: BlueprintTemplate | null; } -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { cursor?: string | null; @@ -10274,6 +10707,12 @@ export interface MembershipsModuleEdge { /** The `MembershipsModule` at the end of the edge. */ node?: MembershipsModule | null; } +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} /** A `StorageModule` edge in the connection. */ export interface StorageModuleEdge { cursor?: string | null; @@ -10286,12 +10725,6 @@ export interface EventsModuleEdge { /** The `EventsModule` at the end of the edge. */ node?: EventsModule | null; } -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} /** Information about a database table */ export interface MetaTable { name: string; diff --git a/sdk/constructive-react/src/modules/types.ts b/sdk/constructive-react/src/modules/types.ts index b9537cfe34..e4db9150f0 100644 --- a/sdk/constructive-react/src/modules/types.ts +++ b/sdk/constructive-react/src/modules/types.ts @@ -162,19 +162,6 @@ export interface CryptoAddressesModule { apiName: string | null; privateApiName: string | null; } -export interface IdentityProvidersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - tableId: string | null; - tableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; -} export interface DenormalizedTableField { id: string | null; databaseId: string | null; @@ -189,6 +176,21 @@ export interface DenormalizedTableField { funcName: string | null; funcOrder: number | null; } +export interface IdentityProvidersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableId: string | null; + tableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; +} export interface RlsModule { id: string | null; databaseId: string | null; @@ -269,22 +271,6 @@ export interface CryptoAuthModule { signUpWithKey: string | null; signInWithChallenge: string | null; } -export interface RateLimitMetersModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - rateLimitStateTableId: string | null; - rateLimitStateTableName: string | null; - rateLimitOverridesTableId: string | null; - rateLimitOverridesTableName: string | null; - rateWindowLimitsTableId: string | null; - rateWindowLimitsTableName: string | null; - checkRateLimitFunction: string | null; - prefix: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface SessionsModule { id: string | null; databaseId: string | null; @@ -298,22 +284,18 @@ export interface SessionsModule { sessionCredentialsTable: string | null; authSettingsTable: string | null; } -export interface ConfigSecretsModule { +export interface SecureTableProvision { id: string | null; databaseId: string | null; schemaId: string | null; - privateSchemaId: string | null; tableId: string | null; - configDefinitionsTableId: string | null; tableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; + nodes: unknown | null; + useRls: boolean | null; + fields: unknown[] | null; + grants: unknown | null; policies: unknown | null; - provisions: unknown | null; - hasConfig: boolean | null; + outFields: string[] | null; } export interface MerkleStoreModule { id: string | null; @@ -330,6 +312,7 @@ export interface MerkleStoreModule { apiName: string | null; privateApiName: string | null; scope: string | null; + functionPrefix: string | null; createdAt: string | null; } export interface GraphModule { @@ -350,39 +333,9 @@ export interface GraphModule { entityTableId: string | null; policies: unknown | null; provisions: unknown | null; + defaultPermissions: string[] | null; createdAt: string | null; } -export interface SecureTableProvision { - id: string | null; - databaseId: string | null; - schemaId: string | null; - tableId: string | null; - tableName: string | null; - nodes: unknown | null; - useRls: boolean | null; - fields: unknown[] | null; - grants: unknown | null; - policies: unknown | null; - outFields: string[] | null; -} -export interface InvitesModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - emailsTableId: string | null; - usersTableId: string | null; - invitesTableId: string | null; - claimedInvitesTableId: string | null; - invitesTableName: string | null; - claimedInvitesTableName: string | null; - submitInviteCodeFunction: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - apiName: string | null; - privateApiName: string | null; -} export interface DatabaseProvisionModule { id: string | null; databaseName: string | null; @@ -399,17 +352,16 @@ export interface DatabaseProvisionModule { updatedAt: string | null; completedAt: string | null; } -export interface NamespaceModule { +export interface ConfigSecretsModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; publicSchemaName: string | null; privateSchemaName: string | null; - namespacesTableId: string | null; - namespaceEventsTableId: string | null; - namespacesTableName: string | null; - namespaceEventsTableName: string | null; + tableId: string | null; + configDefinitionsTableId: string | null; + tableName: string | null; apiName: string | null; privateApiName: string | null; scope: string | null; @@ -417,6 +369,26 @@ export interface NamespaceModule { entityTableId: string | null; policies: unknown | null; provisions: unknown | null; + hasConfig: boolean | null; +} +export interface RateLimitMetersModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + rateLimitStateTableId: string | null; + rateLimitStateTableName: string | null; + rateLimitOverridesTableId: string | null; + rateLimitOverridesTableName: string | null; + rateWindowLimitsTableId: string | null; + rateWindowLimitsTableName: string | null; + checkRateLimitFunction: string | null; + prefix: string | null; + defaultPermissions: string[] | null; + apiName: string | null; + privateApiName: string | null; } export interface RealtimeModule { id: string | null; @@ -452,11 +424,93 @@ export interface WebauthnAuthModule { residentKey: string | null; challengeExpiry: string | null; } +export interface FunctionInvocationModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + invocationsTableId: string | null; + executionLogsTableId: string | null; + invocationsTableName: string | null; + executionLogsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + defaultPermissions: string[] | null; +} +export interface FunctionModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + definitionsTableId: string | null; + secretDefinitionsTableId: string | null; + definitionsTableName: string | null; + secretDefinitionsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + defaultPermissions: string[] | null; +} +export interface InvitesModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + emailsTableId: string | null; + usersTableId: string | null; + invitesTableId: string | null; + claimedInvitesTableId: string | null; + invitesTableName: string | null; + claimedInvitesTableName: string | null; + submitInviteCodeFunction: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + apiName: string | null; + privateApiName: string | null; +} +export interface NamespaceModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + namespacesTableId: string | null; + namespaceEventsTableId: string | null; + namespacesTableName: string | null; + namespaceEventsTableName: string | null; + apiName: string | null; + privateApiName: string | null; + scope: string | null; + prefix: string | null; + entityTableId: string | null; + policies: unknown | null; + provisions: unknown | null; + defaultPermissions: string[] | null; +} export interface ComputeLogModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; computeLogTableId: string | null; computeLogTableName: string | null; usageDailyTableId: string | null; @@ -476,6 +530,8 @@ export interface InferenceLogModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; inferenceLogTableId: string | null; inferenceLogTableName: string | null; usageDailyTableId: string | null; @@ -495,6 +551,8 @@ export interface StorageLogModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; storageLogTableId: string | null; storageLogTableName: string | null; usageDailyTableId: string | null; @@ -514,6 +572,8 @@ export interface TransferLogModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; transferLogTableId: string | null; transferLogTableName: string | null; usageDailyTableId: string | null; @@ -528,66 +588,74 @@ export interface TransferLogModule { apiName: string | null; privateApiName: string | null; } -export interface DbUsageModule { +export interface PlansModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; - tableStatsLogTableId: string | null; - tableStatsLogTableName: string | null; - tableStatsDailyTableId: string | null; - tableStatsDailyTableName: string | null; - queryStatsLogTableId: string | null; - queryStatsLogTableName: string | null; - queryStatsDailyTableId: string | null; - queryStatsDailyTableName: string | null; - interval: string | null; - retention: string | null; - premake: number | null; - scope: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + plansTableId: string | null; + plansTableName: string | null; + planLimitsTableId: string | null; + planLimitsTableName: string | null; + planPricingTableId: string | null; + planOverridesTableId: string | null; + planMeterLimitsTableId: string | null; + planCapsTableId: string | null; + applyPlanFunction: string | null; + applyPlanAggregateFunction: string | null; + applyBillingPlanFunction: string | null; + applyPlanCapsFunction: string | null; prefix: string | null; apiName: string | null; privateApiName: string | null; } -export interface NotificationsModule { +export interface BillingProviderModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; - notificationsTableId: string | null; - readStateTableId: string | null; - preferencesTableId: string | null; - channelsTableId: string | null; - deliveryLogTableId: string | null; - ownerTableId: string | null; - userSettingsTableId: string | null; - organizationSettingsTableId: string | null; - hasChannels: boolean | null; - hasPreferences: boolean | null; - hasSettingsExtension: boolean | null; - hasDigestMetadata: boolean | null; - hasSubscriptions: boolean | null; + provider: string | null; + productsTableId: string | null; + pricesTableId: string | null; + subscriptionsTableId: string | null; + billingCustomersTableId: string | null; + billingCustomersTableName: string | null; + billingProductsTableId: string | null; + billingProductsTableName: string | null; + billingPricesTableId: string | null; + billingPricesTableName: string | null; + billingSubscriptionsTableId: string | null; + billingSubscriptionsTableName: string | null; + billingWebhookEventsTableId: string | null; + billingWebhookEventsTableName: string | null; + processBillingEventFunction: string | null; + prefix: string | null; apiName: string | null; privateApiName: string | null; } -export interface PlansModule { +export interface DbUsageModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; - plansTableId: string | null; - plansTableName: string | null; - planLimitsTableId: string | null; - planLimitsTableName: string | null; - planPricingTableId: string | null; - planOverridesTableId: string | null; - planMeterLimitsTableId: string | null; - planCapsTableId: string | null; - applyPlanFunction: string | null; - applyPlanAggregateFunction: string | null; - applyBillingPlanFunction: string | null; - applyPlanCapsFunction: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableStatsLogTableId: string | null; + tableStatsLogTableName: string | null; + tableStatsDailyTableId: string | null; + tableStatsDailyTableName: string | null; + queryStatsLogTableId: string | null; + queryStatsLogTableName: string | null; + queryStatsDailyTableId: string | null; + queryStatsDailyTableName: string | null; + interval: string | null; + retention: string | null; + premake: number | null; + scope: string | null; prefix: string | null; + defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } @@ -612,53 +680,54 @@ export interface HierarchyModule { getSubordinatesFunction: string | null; getManagersFunction: string | null; isManagerOfFunction: string | null; + defaultPermissions: string[] | null; createdAt: string | null; } -export interface BillingModule { +export interface PermissionsModule { 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; - meterCreditsTableId: string | null; - meterCreditsTableName: string | null; - meterSourcesTableId: string | null; - meterSourcesTableName: string | null; - meterDefaultsTableId: string | null; - meterDefaultsTableName: string | null; - recordUsageFunction: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + tableId: string | null; + tableName: string | null; + defaultTableId: string | null; + defaultTableName: string | null; + bitlen: number | null; + scope: string | null; prefix: string | null; + entityTableId: string | null; + actorTableId: string | null; + getPaddedMask: string | null; + getMask: string | null; + getByMask: string | null; + getMaskByName: string | null; apiName: string | null; privateApiName: string | null; } -export interface BillingProviderModule { +export interface NotificationsModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; - provider: string | null; - productsTableId: string | null; - pricesTableId: string | null; - subscriptionsTableId: string | null; - billingCustomersTableId: string | null; - billingCustomersTableName: string | null; - billingProductsTableId: string | null; - billingProductsTableName: string | null; - billingPricesTableId: string | null; - billingPricesTableName: string | null; - billingSubscriptionsTableId: string | null; - billingSubscriptionsTableName: string | null; - billingWebhookEventsTableId: string | null; - billingWebhookEventsTableName: string | null; - processBillingEventFunction: string | null; - prefix: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; + notificationsTableId: string | null; + readStateTableId: string | null; + preferencesTableId: string | null; + channelsTableId: string | null; + deliveryLogTableId: string | null; + suppressionsTableId: string | null; + ownerTableId: string | null; + userSettingsTableId: string | null; + organizationSettingsTableId: string | null; + hasChannels: boolean | null; + hasPreferences: boolean | null; + hasSettingsExtension: boolean | null; + hasDigestMetadata: boolean | null; + hasSubscriptions: boolean | null; + defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } @@ -667,6 +736,8 @@ export interface ProfilesModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; tableId: string | null; tableName: string | null; profilePermissionsTableId: string | null; @@ -686,24 +757,30 @@ export interface ProfilesModule { apiName: string | null; privateApiName: string | null; } -export interface PermissionsModule { +export interface BillingModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; - tableId: string | null; - tableName: string | null; - defaultTableId: string | null; - defaultTableName: string | null; - bitlen: number | null; - scope: string | null; + publicSchemaName: string | null; + privateSchemaName: 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; + meterCreditsTableId: string | null; + meterCreditsTableName: string | null; + meterSourcesTableId: string | null; + meterSourcesTableName: string | null; + meterDefaultsTableId: string | null; + meterDefaultsTableName: string | null; + recordUsageFunction: string | null; prefix: string | null; - entityTableId: string | null; - actorTableId: string | null; - getPaddedMask: string | null; - getMask: string | null; - getByMask: string | null; - getMaskByName: string | null; + defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } @@ -733,34 +810,6 @@ export interface RelationProvision { outSourceFieldId: string | null; outTargetFieldId: string | null; } -export interface FunctionModule { - id: string | null; - databaseId: string | null; - schemaId: string | null; - privateSchemaId: string | null; - publicSchemaName: string | null; - privateSchemaName: string | null; - definitionsTableId: string | null; - invocationsTableId: string | null; - executionLogsTableId: string | null; - secretDefinitionsTableId: string | null; - requirementsTableId: string | null; - configDefinitionsTableId: string | null; - configRequirementsTableId: string | null; - definitionsTableName: string | null; - invocationsTableName: string | null; - executionLogsTableName: string | null; - secretDefinitionsTableName: string | null; - requirementsTableName: string | null; - configRequirementsTableName: string | null; - apiName: string | null; - privateApiName: string | null; - scope: string | null; - prefix: string | null; - entityTableId: string | null; - policies: unknown | null; - provisions: unknown | null; -} export interface UserAuthModule { id: string | null; databaseId: string | null; @@ -796,6 +845,8 @@ export interface AgentModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; threadTableId: string | null; messageTableId: string | null; taskTableId: string | null; @@ -815,6 +866,7 @@ export interface AgentModule { hasPlans: boolean | null; hasResources: boolean | null; hasAgents: boolean | null; + shared: boolean | null; apiName: string | null; privateApiName: string | null; scope: string | null; @@ -823,12 +875,15 @@ export interface AgentModule { policies: unknown | null; resources: unknown | null; provisions: unknown | null; + defaultPermissions: string[] | null; } export interface LimitsModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; tableId: string | null; tableName: string | null; defaultTableId: string | null; @@ -865,6 +920,8 @@ export interface MembershipsModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; membershipsTableId: string | null; membershipsTableName: string | null; membersTableId: string | null; @@ -896,14 +953,60 @@ export interface MembershipsModule { entityIdsByPerm: string | null; entityIdsFunction: string | null; memberProfilesTableId: string | null; + permissionDefaultPermissionsTableId: string | null; + permissionDefaultGrantsTableId: string | null; apiName: string | null; privateApiName: string | null; } +export interface EntityTypeProvision { + id: string | null; + databaseId: string | null; + name: string | null; + prefix: string | null; + description: string | null; + parentEntity: string | null; + tableName: string | null; + isVisible: boolean | null; + hasLimits: boolean | null; + hasProfiles: boolean | null; + hasLevels: boolean | null; + hasInvites: boolean | null; + hasInviteAchievements: boolean | null; + storage: unknown | null; + namespaces: unknown | null; + functions: unknown | null; + graphs: unknown | null; + agents: unknown | null; + skipEntityPolicies: boolean | null; + tableProvision: unknown | null; + outMembershipType: number | null; + outEntityTableId: string | null; + outEntityTableName: string | null; + outInstalledModules: string[] | null; + outStorageModuleId: string | null; + outBucketsTableId: string | null; + outFilesTableId: string | null; + outPathSharesTableId: string | null; + outInvitesModuleId: string | null; + outNamespaceModuleId: string | null; + outNamespacesTableId: string | null; + outNamespaceEventsTableId: string | null; + outFunctionModuleId: string | null; + outDefinitionsTableId: string | null; + outInvocationsTableId: string | null; + outExecutionLogsTableId: string | null; + outSecretDefinitionsTableId: string | null; + outGraphModuleId: string | null; + outGraphsTableId: string | null; + outAgentModuleId: string | null; +} export interface StorageModule { id: string | null; databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; bucketsTableId: string | null; filesTableId: string | null; bucketsTableName: string | null; @@ -934,6 +1037,7 @@ export interface StorageModule { hasConfirmUpload: boolean | null; confirmUploadDelay: string | null; fileEventsTableId: string | null; + defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } @@ -942,6 +1046,8 @@ export interface EventsModule { databaseId: string | null; schemaId: string | null; privateSchemaId: string | null; + publicSchemaName: string | null; + privateSchemaName: string | null; eventsTableId: string | null; eventsTableName: string | null; eventAggregatesTableId: string | null; @@ -977,53 +1083,10 @@ export interface EventsModule { prefix: string | null; entityTableId: string | null; actorTableId: string | null; + defaultPermissions: string[] | null; apiName: string | null; privateApiName: string | null; } -export interface EntityTypeProvision { - id: string | null; - databaseId: string | null; - name: string | null; - prefix: string | null; - description: string | null; - parentEntity: string | null; - tableName: string | null; - isVisible: boolean | null; - hasLimits: boolean | null; - hasProfiles: boolean | null; - hasLevels: boolean | null; - hasInvites: boolean | null; - hasInviteAchievements: boolean | null; - storage: unknown | null; - namespaces: unknown | null; - functions: unknown | null; - graphs: unknown | null; - agents: unknown | null; - skipEntityPolicies: boolean | null; - tableProvision: unknown | null; - outMembershipType: number | null; - outEntityTableId: string | null; - outEntityTableName: string | null; - outInstalledModules: string[] | null; - outStorageModuleId: string | null; - outBucketsTableId: string | null; - outFilesTableId: string | null; - outPathSharesTableId: string | null; - outInvitesModuleId: string | null; - outNamespaceModuleId: string | null; - outNamespacesTableId: string | null; - outNamespaceEventsTableId: string | null; - outFunctionModuleId: string | null; - outDefinitionsTableId: string | null; - outInvocationsTableId: string | null; - outExecutionLogsTableId: string | null; - outSecretDefinitionsTableId: string | null; - outRequirementsTableId: string | null; - outConfigRequirementsTableId: string | null; - outGraphModuleId: string | null; - outGraphsTableId: string | null; - outAgentModuleId: string | null; -} export interface StringFilter { isNull?: boolean; equalTo?: string; diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index c68287aede..5b07f40d3b 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -680,6 +680,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `Ref` */ +export interface RefInput { + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this ref belongs to */ + storeId: string; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `Store` */ +export interface StoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `Commit` */ +export interface CommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} // ============ Payload/Return Types (for custom operations) ============ export interface InitEmptyRepoPayload { clientMutationId?: string | null; diff --git a/sdk/constructive-react/src/usage/orm/input-types.ts b/sdk/constructive-react/src/usage/orm/input-types.ts index 8c8382f866..095012a4be 100644 --- a/sdk/constructive-react/src/usage/orm/input-types.ts +++ b/sdk/constructive-react/src/usage/orm/input-types.ts @@ -2194,6 +2194,320 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCapsDefault` */ +export interface OrgLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** 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; +} +/** An input for mutations affecting `AppLimitCredit` */ +export interface AppLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +/** An input for mutations affecting `AppLimitCreditRedemption` */ +export interface AppLimitCreditRedemptionInput { + id?: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId: string; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; +} +/** 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; +} +/** An input for mutations affecting `OrgLimitCredit` */ +export interface OrgLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** 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?: 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -2290,25 +2604,6 @@ export interface AppLimitCreditRedemptionFilter { /** Filter by the object’s `creditCode` relation. */ creditCode?: AppLimitCreditCodeFilter; } -/** 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 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). */ diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index b2a8bba9ab..97f515ddad 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -169,6 +169,68 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection + """ + Reads and enables pagination through a set of `AppPermissionDefaultPermission`. + """ + appPermissionDefaultPermissions( + """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: AppPermissionDefaultPermissionFilter + + """The method to use when ordering `AppPermissionDefaultPermission`.""" + orderBy: [AppPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultPermissionConnection + + """ + Reads and enables pagination through a set of `OrgPermissionDefaultPermission`. + """ + orgPermissionDefaultPermissions( + """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: OrgPermissionDefaultPermissionFilter + + """The method to use when ordering `OrgPermissionDefaultPermission`.""" + orderBy: [OrgPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultPermissionConnection + """Reads and enables pagination through a set of `AppAdminGrant`.""" appAdminGrants( """Only read the first `n` values of the set.""" @@ -227,6 +289,37 @@ type Query { orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): AppOwnerGrantConnection + """ + Reads and enables pagination through a set of `AppPermissionDefaultGrant`. + """ + appPermissionDefaultGrants( + """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: AppPermissionDefaultGrantFilter + + """The method to use when ordering `AppPermissionDefaultGrant`.""" + orderBy: [AppPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultGrantConnection + """Reads and enables pagination through a set of `OrgAdminGrant`.""" orgAdminGrants( """Only read the first `n` values of the set.""" @@ -285,6 +378,37 @@ type Query { orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgOwnerGrantConnection + """ + Reads and enables pagination through a set of `OrgPermissionDefaultGrant`. + """ + orgPermissionDefaultGrants( + """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: OrgPermissionDefaultGrantFilter + + """The method to use when ordering `OrgPermissionDefaultGrant`.""" + orderBy: [OrgPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultGrantConnection + """Reads and enables pagination through a set of `AppPermission`.""" appPermissions( """Only read the first `n` values of the set.""" @@ -662,8 +786,8 @@ type Query { orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] ): AppMembershipConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -685,14 +809,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: OrgMembershipFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( + """Reads and enables pagination through a set of `OrgMemberProfile`.""" + orgMemberProfiles( """Only read the first `n` values of the set.""" first: Int @@ -714,14 +838,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipFilter + where: OrgMemberProfileFilter - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMemberProfileConnection - """Reads and enables pagination through a set of `OrgMemberProfile`.""" - orgMemberProfiles( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -743,11 +867,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMemberProfileFilter + where: AppInviteFilter - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMemberProfileConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection """Reads and enables pagination through a set of `OrgInvite`.""" orgInvites( @@ -914,132 +1038,152 @@ type AppPermission { """Human-readable description of what this permission allows""" description: String -} - -"""A `AppPermission` edge in the connection.""" -type AppPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppPermission` at the end of the edge.""" - node: AppPermission -} -"""A connection to a list of `OrgPermission` values.""" -type OrgPermissionConnection { - """A list of `OrgPermission` objects.""" - nodes: [OrgPermission]! + """ + Reads a single `AppPermissionDefaultPermission` that is related to this `AppPermission`. + """ + appPermissionDefaultPermissionByPermissionId: AppPermissionDefaultPermission """ - A list of edges which contains the `OrgPermission` and cursor to aid in pagination. + Reads and enables pagination through a set of `AppPermissionDefaultGrant`. """ - edges: [OrgPermissionEdge]! + appPermissionDefaultGrantsByPermissionId( + """Only read the first `n` values of the set.""" + first: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Only read the last `n` values of the set.""" + last: Int - """The count of *all* `OrgPermission` you could get from the connection.""" - totalCount: 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: AppPermissionDefaultGrantFilter + + """The method to use when ordering `AppPermissionDefaultGrant`.""" + orderBy: [AppPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultGrantConnection! } """ -Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask """ -type OrgPermission { +type AppPermissionDefaultPermission { 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 + """References the permission included in the defaults bundle""" + permissionId: UUID! + createdAt: Datetime + updatedAt: Datetime """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + Reads a single `AppPermission` that is related to this `AppPermissionDefaultPermission`. """ - bitstr: BitString! - - """Human-readable description of what this permission allows""" - description: String + permission: AppPermission } -"""A `OrgPermission` edge in the connection.""" -type OrgPermissionEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgPermission` at the end of the edge.""" - node: OrgPermission -} +""" +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 connection to a list of `OrgMember` values.""" -type OrgMemberConnection { - """A list of `OrgMember` objects.""" - nodes: [OrgMember]! +"""A connection to a list of `AppPermissionDefaultGrant` values.""" +type AppPermissionDefaultGrantConnection { + """A list of `AppPermissionDefaultGrant` objects.""" + nodes: [AppPermissionDefaultGrant]! """ - A list of edges which contains the `OrgMember` and cursor to aid in pagination. + A list of edges which contains the `AppPermissionDefaultGrant` and cursor to aid in pagination. """ - edges: [OrgMemberEdge]! + edges: [AppPermissionDefaultGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgMember` you could get from the connection.""" + """ + The count of *all* `AppPermissionDefaultGrant` you could get from the connection. + """ totalCount: Int! } """ -Simplified view of active members in an entity, used for listing who belongs to an org or group +Audit log of permission additions and removals from the defaults bitmask """ -type OrgMember { +type AppPermissionDefaultGrant { id: UUID! - """Whether this member has admin privileges""" - isAdmin: Boolean! + """References the permission being added to or removed from defaults""" + permissionId: UUID! - """References the user who is a member""" - actorId: UUID! + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime - """References the entity (org or group) this member belongs to""" - entityId: UUID! + """ + Reads a single `AppPermission` that is related to this `AppPermissionDefaultGrant`. + """ + permission: AppPermission } -"""A `OrgMember` edge in the connection.""" -type OrgMemberEdge { +"""A `AppPermissionDefaultGrant` edge in the connection.""" +type AppPermissionDefaultGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMember` at the end of the edge.""" - node: OrgMember + """The `AppPermissionDefaultGrant` at the end of the edge.""" + node: AppPermissionDefaultGrant } """ -A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberFilter { +input AppPermissionDefaultGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """Filter by the object’s `permissionId` field.""" + permissionId: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """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: [OrgMemberFilter!] + and: [AppPermissionDefaultGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgMemberFilter!] + or: [AppPermissionDefaultGrantFilter!] """Negates the expression.""" - not: OrgMemberFilter + not: AppPermissionDefaultGrantFilter + + """Filter by the object’s `permission` relation.""" + permission: AppPermissionFilter } """ @@ -1126,406 +1270,318 @@ input BooleanFilter { greaterThanOrEqualTo: Boolean } -"""Methods to use when ordering `OrgMember`.""" -enum OrgMemberOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `AppPermissionDefault` values.""" -type AppPermissionDefaultConnection { - """A list of `AppPermissionDefault` objects.""" - nodes: [AppPermissionDefault]! - +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { """ - A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + Is null (if `true` is specified) or is not null (if `false` is specified). """ - edges: [AppPermissionDefaultEdge]! + isNull: Boolean - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime """ - The count of *all* `AppPermissionDefault` you could get from the connection. + Not equal to the specified value, treating null like an ordinary value. """ - totalCount: Int! -} + distinctFrom: Datetime -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type AppPermissionDefault { - id: UUID! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime - """Default permission bitmask applied to new members""" - permissions: BitString! -} + """Included in the specified list.""" + in: [Datetime!] -"""A `AppPermissionDefault` edge in the connection.""" -type AppPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Not included in the specified list.""" + notIn: [Datetime!] - """The `AppPermissionDefault` at the end of the edge.""" - node: AppPermissionDefault + """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 } """ -A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppPermissionDefaultFilter { +input AppPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """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: [AppPermissionDefaultFilter!] + and: [AppPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionDefaultFilter!] + or: [AppPermissionFilter!] """Negates the expression.""" - not: AppPermissionDefaultFilter + not: AppPermissionFilter + + """ + Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. + """ + appPermissionDefaultPermissionByPermissionId: AppPermissionDefaultPermissionFilter + + """A related `appPermissionDefaultPermissionByPermissionId` exists.""" + appPermissionDefaultPermissionByPermissionIdExists: Boolean + + """ + Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. + """ + appPermissionDefaultGrantsByPermissionId: AppPermissionToManyAppPermissionDefaultGrantFilter + + """`appPermissionDefaultGrantsByPermissionId` exist.""" + appPermissionDefaultGrantsByPermissionIdExist: Boolean } """ -A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +A filter to be used against String fields. All fields are combined with a logical ‘and.’ """ -input BitStringFilter { +input StringFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: BitString + equalTo: String """Not equal to the specified value.""" - notEqualTo: BitString + notEqualTo: String """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: BitString + distinctFrom: String """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BitString + notDistinctFrom: String """Included in the specified list.""" - in: [BitString!] + in: [String!] """Not included in the specified list.""" - notIn: [BitString!] + notIn: [String!] """Less than the specified value.""" - lessThan: BitString + lessThan: String """Less than or equal to the specified value.""" - lessThanOrEqualTo: BitString + lessThanOrEqualTo: String """Greater than the specified value.""" - greaterThan: BitString + greaterThan: String """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BitString -} + greaterThanOrEqualTo: String -"""Methods to use when ordering `AppPermissionDefault`.""" -enum AppPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC -} + """Contains the specified string (case-sensitive).""" + includes: String -"""A connection to a list of `OrgPermissionDefault` values.""" -type OrgPermissionDefaultConnection { - """A list of `OrgPermissionDefault` objects.""" - nodes: [OrgPermissionDefault]! + """Does not contain the specified string (case-sensitive).""" + notIncludes: String - """ - A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. - """ - edges: [OrgPermissionDefaultEdge]! + """Contains the specified string (case-insensitive).""" + includesInsensitive: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String - """ - The count of *all* `OrgPermissionDefault` you could get from the connection. - """ - totalCount: Int! -} + """Starts with the specified string (case-sensitive).""" + startsWith: String -""" -Stores the default permission bitmask assigned to new members upon joining -""" -type OrgPermissionDefault { - id: UUID! + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String - """Default permission bitmask applied to new members""" - permissions: BitString! + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String - """References the entity these default permissions apply to""" - entityId: UUID! -} + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String -"""A `OrgPermissionDefault` edge in the connection.""" -type OrgPermissionDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Ends with the specified string (case-sensitive).""" + endsWith: String - """The `OrgPermissionDefault` at the end of the edge.""" - node: OrgPermissionDefault -} + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String -""" -A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """ + 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 - """Checks for all expressions in this list.""" - and: [OrgPermissionDefaultFilter!] + """ + 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 - """Checks for any expressions in this list.""" - or: [OrgPermissionDefaultFilter!] + """ + 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 - """Negates the expression.""" - not: OrgPermissionDefaultFilter -} + """ + 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 -"""Methods to use when ordering `OrgPermissionDefault`.""" -enum OrgPermissionDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + Not equal to the specified value, treating null like an ordinary value (case-insensitive). """ - edges: [AppAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! + distinctFromInsensitive: String - """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 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 `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 + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String - """Checks for all expressions in this list.""" - and: [AppAdminGrantFilter!] + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String - """Checks for any expressions in this list.""" - or: [AppAdminGrantFilter!] + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String - """Negates the expression.""" - not: AppAdminGrantFilter + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String } """ -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ """ -input DatetimeFilter { +input IntFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: Datetime + equalTo: Int """Not equal to the specified value.""" - notEqualTo: Datetime + notEqualTo: Int """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: Datetime + distinctFrom: Int """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + notDistinctFrom: Int """Included in the specified list.""" - in: [Datetime!] + in: [Int!] """Not included in the specified list.""" - notIn: [Datetime!] + notIn: [Int!] """Less than the specified value.""" - lessThan: Datetime + lessThan: Int """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + lessThanOrEqualTo: Int """Greater than the specified value.""" - greaterThan: Datetime + greaterThan: Int """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + greaterThanOrEqualTo: Int } -"""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 filter to be used against BitString fields. All fields are combined with a logical ‘and.’ +""" +input BitStringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! + """Equal to the specified value.""" + equalTo: BitString + + """Not equal to the specified value.""" + notEqualTo: BitString """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + Not equal to the specified value, treating null like an ordinary value. """ - edges: [AppOwnerGrantEdge]! + distinctFrom: BitString - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BitString - """The count of *all* `AppOwnerGrant` you could get from the connection.""" - totalCount: Int! -} + """Included in the specified list.""" + in: [BitString!] -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { - id: UUID! + """Not included in the specified list.""" + notIn: [BitString!] - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! + """Less than the specified value.""" + lessThan: BitString - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BitString -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Greater than the specified value.""" + greaterThan: BitString - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BitString } """ -A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppOwnerGrantFilter { +input AppPermissionDefaultPermissionFilter { """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 `permissionId` field.""" + permissionId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -1534,26 +1590,43 @@ input AppOwnerGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppOwnerGrantFilter!] + and: [AppPermissionDefaultPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppOwnerGrantFilter!] + or: [AppPermissionDefaultPermissionFilter!] """Negates the expression.""" - not: AppOwnerGrantFilter + not: AppPermissionDefaultPermissionFilter + + """Filter by the object’s `permission` relation.""" + permission: AppPermissionFilter } -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { +""" +A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionToManyAppPermissionDefaultGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: AppPermissionDefaultGrantFilter + + """Filters to entities where every related entity matches.""" + every: AppPermissionDefaultGrantFilter + + """Filters to entities where no related entity matches.""" + none: AppPermissionDefaultGrantFilter +} + +"""Methods to use when ordering `AppPermissionDefaultGrant`.""" +enum AppPermissionDefaultGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + PERMISSION_ID_ASC + PERMISSION_ID_DESC IS_GRANT_ASC IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -1562,167 +1635,178 @@ enum AppOwnerGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `OrgAdminGrant` values.""" -type OrgAdminGrantConnection { - """A list of `OrgAdminGrant` objects.""" - nodes: [OrgAdminGrant]! +"""A `AppPermission` edge in the connection.""" +type AppPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppPermission` at the end of the edge.""" + node: AppPermission +} + +"""A connection to a list of `OrgPermission` values.""" +type OrgPermissionConnection { + """A list of `OrgPermission` objects.""" + nodes: [OrgPermission]! """ - A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgPermission` and cursor to aid in pagination. """ - edges: [OrgAdminGrantEdge]! + edges: [OrgPermissionEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgAdminGrant` you could get from the connection.""" + """The count of *all* `OrgPermission` you could get from the connection.""" totalCount: Int! } -"""Records of admin role grants and revocations between members""" -type OrgAdminGrant { +""" +Defines available permissions as named bits within a bitmask, used by the RBAC system for access control +""" +type OrgPermission { id: UUID! - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! + """Human-readable permission name (e.g. read, write, manage)""" + name: String - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int -"""A `OrgAdminGrant` edge in the connection.""" -type OrgAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString! - """The `OrgAdminGrant` at the end of the edge.""" - node: OrgAdminGrant -} + """Human-readable description of what this permission allows""" + description: String -""" -A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgAdminGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """ + Reads and enables pagination through a set of `OrgPermissionDefaultPermission`. + """ + orgPermissionDefaultPermissionsByPermissionId( + """Only read the first `n` values of the set.""" + first: Int - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Only read the last `n` values of the set.""" + last: Int - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Read all values in the set before (above) this cursor.""" + before: Cursor - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Read all values in the set after (below) this cursor.""" + after: Cursor - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgPermissionDefaultPermissionFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """The method to use when ordering `OrgPermissionDefaultPermission`.""" + orderBy: [OrgPermissionDefaultPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultPermissionConnection! - """Checks for all expressions in this list.""" - and: [OrgAdminGrantFilter!] + """ + Reads and enables pagination through a set of `OrgPermissionDefaultGrant`. + """ + orgPermissionDefaultGrantsByPermissionId( + """Only read the first `n` values of the set.""" + first: Int - """Checks for any expressions in this list.""" - or: [OrgAdminGrantFilter!] + """Only read the last `n` values of the set.""" + last: Int - """Negates the expression.""" - not: OrgAdminGrantFilter -} + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int -"""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 + """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: OrgPermissionDefaultGrantFilter + + """The method to use when ordering `OrgPermissionDefaultGrant`.""" + orderBy: [OrgPermissionDefaultGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultGrantConnection! } -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! +"""A connection to a list of `OrgPermissionDefaultPermission` values.""" +type OrgPermissionDefaultPermissionConnection { + """A list of `OrgPermissionDefaultPermission` objects.""" + nodes: [OrgPermissionDefaultPermission]! """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgPermissionDefaultPermission` and cursor to aid in pagination. """ - edges: [OrgOwnerGrantEdge]! + edges: [OrgPermissionDefaultPermissionEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + """ + The count of *all* `OrgPermissionDefaultPermission` you could get from the connection. + """ totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { +""" +Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask +""" +type OrgPermissionDefaultPermission { id: UUID! - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - - """The member receiving or losing the ownership grant""" - actorId: UUID! + """References the permission included in the defaults bundle""" + permissionId: UUID! - """The entity (org or group) this ownership grant applies to""" + """Scopes this default permission to a specific entity""" entityId: UUID! - grantorId: UUID createdAt: Datetime updatedAt: Datetime + + """ + Reads a single `OrgPermission` that is related to this `OrgPermissionDefaultPermission`. + """ + permission: OrgPermission } -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { +"""A `OrgPermissionDefaultPermission` edge in the connection.""" +type OrgPermissionDefaultPermissionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant + """The `OrgPermissionDefaultPermission` at the end of the edge.""" + node: OrgPermissionDefaultPermission } """ -A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ """ -input OrgOwnerGrantFilter { +input OrgPermissionDefaultPermissionFilter { """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 `permissionId` field.""" + permissionId: 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 @@ -1730,40 +1814,22 @@ input OrgOwnerGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] + and: [OrgPermissionDefaultPermissionFilter!] """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] + or: [OrgPermissionDefaultPermissionFilter!] """Negates the expression.""" - not: OrgOwnerGrantFilter -} + not: OrgPermissionDefaultPermissionFilter -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { - 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 + """Filter by the object’s `permission` relation.""" + permission: OrgPermissionFilter } """ -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ """ -input AppPermissionFilter { +input OrgPermissionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1780,641 +1846,517 @@ input AppPermissionFilter { description: StringFilter """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] + and: [OrgPermissionFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + or: [OrgPermissionFilter!] """Negates the expression.""" - not: AppPermissionFilter -} + not: OrgPermissionFilter -""" -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). + Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String + orgPermissionDefaultPermissionsByPermissionId: OrgPermissionToManyOrgPermissionDefaultPermissionFilter - """Not equal to the specified value.""" - notEqualTo: String + """`orgPermissionDefaultPermissionsByPermissionId` exist.""" + orgPermissionDefaultPermissionsByPermissionIdExist: Boolean """ - Not equal to the specified value, treating null like an ordinary value. + Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. """ - distinctFrom: String + orgPermissionDefaultGrantsByPermissionId: OrgPermissionToManyOrgPermissionDefaultGrantFilter - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String + """`orgPermissionDefaultGrantsByPermissionId` exist.""" + orgPermissionDefaultGrantsByPermissionIdExist: Boolean +} - """Included in the specified list.""" - in: [String!] +""" +A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionToManyOrgPermissionDefaultPermissionFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgPermissionDefaultPermissionFilter - """Not included in the specified list.""" - notIn: [String!] + """Filters to entities where every related entity matches.""" + every: OrgPermissionDefaultPermissionFilter - """Less than the specified value.""" - lessThan: String + """Filters to entities where no related entity matches.""" + none: OrgPermissionDefaultPermissionFilter +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String +""" +A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionToManyOrgPermissionDefaultGrantFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgPermissionDefaultGrantFilter - """Greater than the specified value.""" - greaterThan: String + """Filters to entities where every related entity matches.""" + every: OrgPermissionDefaultGrantFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String + """Filters to entities where no related entity matches.""" + none: OrgPermissionDefaultGrantFilter +} - """Contains the specified string (case-sensitive).""" - includes: String +""" +A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionDefaultGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Does not contain the specified string (case-sensitive).""" - notIncludes: String + """Filter by the object’s `permissionId` field.""" + permissionId: UUIDFilter - """Contains the specified string (case-insensitive).""" - includesInsensitive: String + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: String + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Starts with the specified string (case-sensitive).""" - startsWith: String + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: String + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: String + """Checks for all expressions in this list.""" + and: [OrgPermissionDefaultGrantFilter!] - """Ends with the specified string (case-sensitive).""" - endsWith: String + """Checks for any expressions in this list.""" + or: [OrgPermissionDefaultGrantFilter!] - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """Negates the expression.""" + not: OrgPermissionDefaultGrantFilter - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: String + """Filter by the object’s `permission` relation.""" + permission: OrgPermissionFilter +} - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: String +"""Methods to use when ordering `OrgPermissionDefaultPermission`.""" +enum OrgPermissionDefaultPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSION_ID_ASC + PERMISSION_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} - """ - 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 +"""A connection to a list of `OrgPermissionDefaultGrant` values.""" +type OrgPermissionDefaultGrantConnection { + """A list of `OrgPermissionDefaultGrant` objects.""" + nodes: [OrgPermissionDefaultGrant]! """ - 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. + A list of edges which contains the `OrgPermissionDefaultGrant` and cursor to aid in pagination. """ - notLike: String + edges: [OrgPermissionDefaultGrantEdge]! - """ - 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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - 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. + The count of *all* `OrgPermissionDefaultGrant` you could get from the connection. """ - notLikeInsensitive: String + totalCount: Int! +} - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String +""" +Audit log of permission additions and removals from the defaults bitmask +""" +type OrgPermissionDefaultGrant { + id: UUID! - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String + """References the permission being added to or removed from defaults""" + permissionId: UUID! - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: String + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean! + grantorId: UUID + + """Scopes this audit entry to a specific entity""" + entityId: UUID! + createdAt: Datetime + updatedAt: Datetime """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). + Reads a single `OrgPermission` that is related to this `OrgPermissionDefaultGrant`. """ - 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 + permission: OrgPermission +} - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String +"""A `OrgPermissionDefaultGrant` edge in the connection.""" +type OrgPermissionDefaultGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String + """The `OrgPermissionDefaultGrant` at the end of the edge.""" + node: OrgPermissionDefaultGrant +} - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String +"""Methods to use when ordering `OrgPermissionDefaultGrant`.""" +enum OrgPermissionDefaultGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSION_ID_ASC + PERMISSION_ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -""" -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 +"""A `OrgPermission` edge in the connection.""" +type OrgPermissionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Equal to the specified value.""" - equalTo: Int + """The `OrgPermission` at the end of the edge.""" + node: OrgPermission +} - """Not equal to the specified value.""" - notEqualTo: Int +"""A connection to a list of `OrgMember` values.""" +type OrgMemberConnection { + """A list of `OrgMember` objects.""" + nodes: [OrgMember]! """ - Not equal to the specified value, treating null like an ordinary value. + A list of edges which contains the `OrgMember` and cursor to aid in pagination. """ - distinctFrom: Int - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + edges: [OrgMemberEdge]! - """Included in the specified list.""" - in: [Int!] + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Not included in the specified list.""" - notIn: [Int!] + """The count of *all* `OrgMember` you could get from the connection.""" + totalCount: Int! +} - """Less than the specified value.""" - lessThan: Int +""" +Simplified view of active members in an entity, used for listing who belongs to an org or group +""" +type OrgMember { + id: UUID! - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + """Whether this member has admin privileges""" + isAdmin: Boolean! - """Greater than the specified value.""" - greaterThan: Int + """References the user who is a member""" + actorId: UUID! - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int + """References the entity (org or group) this member belongs to""" + entityId: UUID! } -"""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 `OrgMember` edge in the connection.""" +type OrgMemberEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMember` at the end of the edge.""" + node: OrgMember } """ -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMember` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionFilter { +input OrgMemberFilter { """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 `isAdmin` field.""" + isAdmin: BooleanFilter - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + and: [OrgMemberFilter!] """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + or: [OrgMemberFilter!] """Negates the expression.""" - not: OrgPermissionFilter + not: OrgMemberFilter } -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""Methods to use when ordering `OrgMember`.""" +enum OrgMemberOrderBy { 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 + IS_ADMIN_ASC + IS_ADMIN_DESC + ACTOR_ID_ASC + ACTOR_ID_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 `AppPermissionDefault` values.""" +type AppPermissionDefaultConnection { + """A list of `AppPermissionDefault` objects.""" + nodes: [AppPermissionDefault]! """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. """ - edges: [OrgChartEdgeGrantEdge]! + edges: [AppPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. + The count of *all* `AppPermissionDefault` you could get from the connection. """ totalCount: Int! } """ -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +Stores the default permission bitmask assigned to new members upon joining """ -type OrgChartEdgeGrant { +type AppPermissionDefault { 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! + """Default permission bitmask applied to new members""" + permissions: BitString! } -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { +"""A `AppPermissionDefault` edge in the connection.""" +type AppPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant + """The `AppPermissionDefault` at the end of the edge.""" + node: AppPermissionDefault } """ -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ """ -input OrgChartEdgeGrantFilter { +input AppPermissionDefaultFilter { """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 `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Checks for all expressions in this list.""" + and: [AppPermissionDefaultFilter!] - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Checks for any expressions in this list.""" + or: [AppPermissionDefaultFilter!] - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter + """Negates the expression.""" + not: AppPermissionDefaultFilter +} - """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 { +"""Methods to use when ordering `AppPermissionDefault`.""" +enum AppPermissionDefaultOrderBy { 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 + PERMISSIONS_ASC + PERMISSIONS_DESC } -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! +"""A connection to a list of `OrgPermissionDefault` values.""" +type OrgPermissionDefaultConnection { + """A list of `OrgPermissionDefault` objects.""" + nodes: [OrgPermissionDefault]! """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgPermissionDefault` and cursor to aid in pagination. """ - edges: [AppClaimedInviteEdge]! + edges: [OrgPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppClaimedInvite` you could get from the connection. + The count of *all* `OrgPermissionDefault` you could get from the connection. """ totalCount: Int! } """ -Records of successfully claimed invitations, linking senders to receivers +Stores the default permission bitmask assigned to new members upon joining """ -type AppClaimedInvite { +type OrgPermissionDefault { id: UUID! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID + """Default permission bitmask applied to new members""" + permissions: BitString! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """References the entity these default permissions apply to""" + 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 `OrgPermissionDefault` edge in the connection.""" +type OrgPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite + """The `OrgPermissionDefault` at the end of the edge.""" + node: OrgPermissionDefault } """ -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgPermissionDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppClaimedInviteFilter { +input OrgPermissionDefaultFilter { """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 `permissions` field.""" + permissions: BitStringFilter - """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: [OrgPermissionDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] + or: [OrgPermissionDefaultFilter!] """Negates the expression.""" - not: AppClaimedInviteFilter + not: OrgPermissionDefaultFilter } -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { +"""Methods to use when ordering `OrgPermissionDefault`.""" +enum OrgPermissionDefaultOrderBy { 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 + PERMISSIONS_ASC + PERMISSIONS_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `AppPermissionDefaultPermission` values.""" +type AppPermissionDefaultPermissionConnection { + """A list of `AppPermissionDefaultPermission` objects.""" + nodes: [AppPermissionDefaultPermission]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `AppPermissionDefaultPermission` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [AppPermissionDefaultPermissionEdge]! """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! - - """ - Scope identifier for this membership type, used to resolve scope on module config tables - """ - scope: 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 + The count of *all* `AppPermissionDefaultPermission` you could get from the connection. """ - hasUsersTableEntry: Boolean! + totalCount: Int! } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `AppPermissionDefaultPermission` edge in the connection.""" +type AppPermissionDefaultPermissionEdge { """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 `scope` field.""" - scope: 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 + """The `AppPermissionDefaultPermission` at the end of the edge.""" + node: AppPermissionDefaultPermission } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `AppPermissionDefaultPermission`.""" +enum AppPermissionDefaultPermissionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - SCOPE_ASC - SCOPE_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC + PERMISSION_ID_ASC + PERMISSION_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 connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. """ - edges: [AppGrantEdge]! + edges: [AppAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppGrant` you could get from the connection.""" + """The count of *all* `AppAdminGrant` you could get from the connection.""" totalCount: Int! } -""" -Records of individual permission grants and revocations for members via bitmask -""" -type AppGrant { +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { id: UUID! - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" + """True to grant admin, false to revoke admin""" isGrant: Boolean! - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ + actorId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppGrant` at the end of the edge.""" - node: AppGrant + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant } """ -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppGrantFilter { +input AppAdminGrantFilter { """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 @@ -2431,24 +2373,22 @@ input AppGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppGrantFilter!] + and: [AppAdminGrantFilter!] """Checks for any expressions in this list.""" - or: [AppGrantFilter!] + or: [AppAdminGrantFilter!] """Negates the expression.""" - not: AppGrantFilter + not: AppAdminGrantFilter } -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { +"""Methods to use when ordering `AppAdminGrant`.""" +enum AppAdminGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC IS_GRANT_ASC IS_GRANT_DESC ACTOR_ID_ASC @@ -2461,366 +2401,252 @@ enum AppGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. """ - edges: [AppMembershipDefaultEdge]! + edges: [AppOwnerGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ + """The count of *all* `AppOwnerGrant` you could get from the connection.""" totalCount: Int! } -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type AppMembershipDefault { +"""Records of ownership transfers and grants between members""" +type AppOwnerGrant { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant } """ -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppMembershipDefaultFilter { +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 - """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: [AppOwnerGrantFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] + or: [AppOwnerGrantFilter!] """Negates the expression.""" - not: AppMembershipDefaultFilter + not: AppOwnerGrantFilter } -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { +"""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 - 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 `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [OrgAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ + """The count of *all* `OrgAdminGrant` you could get from the connection.""" totalCount: Int! } -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type OrgMembershipDefault { +"""Records of admin role grants and revocations between members""" +type OrgAdminGrant { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! + """True to grant admin, false to revoke admin""" + isGrant: Boolean! - """References the entity these membership defaults apply to""" + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ + actorId: UUID + + """The entity (org or group) this admin grant applies to""" entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant } """ -A filter to be used against `OrgMembershipDefault` 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 OrgMembershipDefaultFilter { +input OrgAdminGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """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 `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] + and: [OrgAdminGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] + or: [OrgAdminGrantFilter!] """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgAdminGrantFilter } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""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 - 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 `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. """ - edges: [OrgClaimedInviteEdge]! + edges: [OrgOwnerGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgClaimedInvite` you could get from the connection. - """ + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" totalCount: Int! } -""" -Records of successfully claimed invitations, linking senders to receivers -""" -type OrgClaimedInvite { +"""Records of ownership transfers and grants between members""" +type OrgOwnerGrant { id: UUID! - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! - """User ID of the original invitation sender""" - senderId: UUID + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID createdAt: Datetime updatedAt: Datetime - entityId: UUID! } -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant } """ -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ -""" -input OrgClaimedInviteFilter { - """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 `entityId` field.""" - entityId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] - - """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] - - """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! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type OrgGrant { - 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! - - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant -} - -""" -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgGrantFilter { +input OrgOwnerGrantFilter { """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 @@ -2840,24 +2666,22 @@ input OrgGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] + and: [OrgOwnerGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + or: [OrgOwnerGrantFilter!] """Negates the expression.""" - not: OrgGrantFilter + not: OrgOwnerGrantFilter } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum OrgOwnerGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC IS_GRANT_ASC IS_GRANT_DESC ACTOR_ID_ASC @@ -2872,71 +2696,108 @@ enum OrgGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! +"""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 +} + +"""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 `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [OrgChartEdgeEdge]! + edges: [OrgChartEdgeGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgChartEdge` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table """ -type OrgChartEdge { +type OrgChartEdgeGrant { id: UUID! - createdAt: Datetime - updatedAt: Datetime - """Organization this hierarchy edge belongs to""" + """Organization this grant applies to""" entityId: UUID! - """User ID of the subordinate (employee) in this reporting relationship""" + """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 manager; NULL indicates a top-level position with no direct report + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted """ - parentId: UUID + grantorId: UUID - """Job title or role name for this position in the org chart""" + """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 for this position (higher = more senior)""" + """Numeric seniority level being assigned in this grant""" positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! } -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `OrgChartEdge` 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 OrgChartEdgeFilter { +input OrgChartEdgeGrantFilter { """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 @@ -2946,493 +2807,328 @@ input OrgChartEdgeFilter { """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: [OrgChartEdgeFilter!] + and: [OrgChartEdgeGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] + or: [OrgChartEdgeGrantFilter!] """Negates the expression.""" - not: OrgChartEdgeFilter + not: OrgChartEdgeGrantFilter } -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { 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 + 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 `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgMembershipSettingEdge]! + edges: [AppClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `OrgMembershipSetting` you could get from the connection. + The count of *all* `AppClaimedInvite` you could get from the connection. """ totalCount: Int! } -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type AppClaimedInvite { 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! + """Optional JSON payload captured at the time the invite was claimed""" + 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! + """User ID of the original invitation sender""" + senderId: UUID - """ - Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) - """ - limitAllocationMode: String! + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { +""" +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 `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite } """ -A filter to be used against `OrgMembershipSetting` 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 OrgMembershipSettingFilter { +input 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 `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!] + and: [AppClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] + or: [AppClaimedInviteFilter!] """Negates the expression.""" - not: OrgMembershipSettingFilter + not: AppClaimedInviteFilter } -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { +"""Methods to use when ordering `AppClaimedInvite`.""" +enum 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 - 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.""" - nodes: [AppMembership]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `AppMembership` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [AppMembershipEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppMembership` you could get from the connection.""" + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } """ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) """ -type AppMembership { - 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! - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean! - +type MembershipType { """ - Computed field indicating the membership is approved, verified, not banned, and not disabled + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - isActive: Boolean! + id: Int! - """Whether the actor is the owner of this entity""" - isOwner: Boolean! + """Human-readable name of the membership type""" + name: String! - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! + """Description of what this membership type represents""" + description: String! """ - Aggregated permission bitmask combining profile-based and directly granted permissions + Scope identifier for this membership type, used to resolve scope on module config tables """ - permissions: BitString! + scope: String! """ - Bitmask of permissions directly granted to this member (not from profiles) + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - granted: BitString! + parentMembershipType: Int - """References the user who holds this membership""" - actorId: UUID! - profileId: 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! } -"""A `AppMembership` edge in the connection.""" -type AppMembershipEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppMembership` at the end of the edge.""" - node: AppMembership + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `AppMembership` 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 AppMembershipFilter { +input MembershipTypeFilter { """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + id: IntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `isBanned` field.""" - isBanned: BooleanFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter - - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter - - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter - - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter - - """Filter by the object’s `granted` field.""" - granted: BitStringFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [AppMembershipFilter!] + """Checks for all expressions in this list.""" + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [AppMembershipFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: AppMembershipFilter + not: MembershipTypeFilter } -"""Methods to use when ordering `AppMembership`.""" -enum AppMembershipOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { 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_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SCOPE_ASC + SCOPE_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 `AppInvite` values.""" -type AppInviteConnection { - """A list of `AppInvite` objects.""" - nodes: [AppInvite]! +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! """ - A list of edges which contains the `AppInvite` and cursor to aid in pagination. + A list of edges which contains the `AppGrant` and cursor to aid in pagination. """ - edges: [AppInviteEdge]! + edges: [AppGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppInvite` you could get from the connection.""" + """The count of *all* `AppGrant` you could get from the connection.""" totalCount: Int! } """ -Invitation records sent to prospective members via email, with token-based redemption and expiration +Records of individual permission grants and revocations for members via bitmask """ -type AppInvite { +type AppGrant { 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! + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """Optional JSON payload of additional invite metadata""" - data: JSON + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! """ - Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + The member receiving or losing the permission grant; NULL if user was deleted """ - profileId: UUID - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime! + actorId: UUID + grantorId: UUID createdAt: Datetime updatedAt: Datetime } -scalar ConstructiveInternalTypeEmail - -"""A `AppInvite` edge in the connection.""" -type AppInviteEdge { +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppInvite` at the end of the edge.""" - node: AppInvite + """The `AppGrant` at the end of the edge.""" + node: AppGrant } """ -A filter to be used against `AppInvite` 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 AppInviteFilter { +input AppGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `email` field.""" - email: ConstructiveInternalTypeEmailFilter - - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter - - """Filter by the object’s `inviteToken` field.""" - inviteToken: StringFilter - - """Filter by the object’s `inviteValid` field.""" - inviteValid: BooleanFilter - - """Filter by the object’s `inviteLimit` field.""" - inviteLimit: IntFilter - - """Filter by the object’s `inviteCount` field.""" - inviteCount: IntFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter - """Filter by the object’s `multiple` field.""" - multiple: BooleanFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `expiresAt` field.""" - expiresAt: DatetimeFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -3441,313 +3137,505 @@ input AppInviteFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppInviteFilter!] + and: [AppGrantFilter!] """Checks for any expressions in this list.""" - or: [AppInviteFilter!] + or: [AppGrantFilter!] """Negates the expression.""" - not: AppInviteFilter + not: AppGrantFilter } -""" -A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ -""" -input ConstructiveInternalTypeEmailFilter { +"""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 `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String + edges: [AppMembershipDefaultEdge]! - """Not equal to the specified value.""" - notEqualTo: String + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Not equal to the specified value, treating null like an ordinary value. + The count of *all* `AppMembershipDefault` you could get from the connection. """ - distinctFrom: String - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String + totalCount: Int! +} - """Included in the specified list.""" - in: [String!] +""" +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 - """Not included in the specified list.""" - notIn: [String!] + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """Less than the specified value.""" - lessThan: String + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! +} - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Greater than the specified value.""" - greaterThan: String + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault +} - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String - - """Contains the specified string (case-sensitive).""" - includes: String +""" +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 - """Does not contain the specified string (case-sensitive).""" - notIncludes: String + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Contains the specified string (case-insensitive).""" - includesInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Starts with the specified string (case-sensitive).""" - startsWith: String + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: ConstructiveInternalTypeEmail + """Checks for all expressions in this list.""" + and: [AppMembershipDefaultFilter!] - """Ends with the specified string (case-sensitive).""" - endsWith: String + """Checks for any expressions in this list.""" + or: [AppMembershipDefaultFilter!] - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String + """Negates the expression.""" + not: AppMembershipDefaultFilter +} - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: ConstructiveInternalTypeEmail +"""Methods to use when ordering `AppMembershipDefault`.""" +enum 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 +} - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: ConstructiveInternalTypeEmail +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - like: String + edges: [OrgMembershipDefaultEdge]! - """ - 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 + """Information to aid in pagination.""" + pageInfo: PageInfo! """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + The count of *all* `OrgMembershipDefault` you could get from the connection. """ - likeInsensitive: ConstructiveInternalTypeEmail + totalCount: Int! +} - """ - 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 +""" +Default membership settings per entity, controlling initial approval and verification state for new members +""" +type OrgMembershipDefault { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail + """References the entity these membership defaults apply to""" + entityId: UUID! +} - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault +} - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] +""" +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMembershipDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """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 } -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { 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 + 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 `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - edges: [OrgMembershipEdge]! + edges: [OrgClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgMembership` you could get from the connection.""" + """ + The count of *all* `OrgClaimedInvite` you could get from the connection. + """ totalCount: Int! } """ -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +Records of successfully claimed invitations, linking senders to receivers """ -type OrgMembership { +type OrgClaimedInvite { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether this membership has been approved by an admin""" - isApproved: Boolean! + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Whether this member has been banned from the entity""" - isBanned: Boolean! + """User ID of the original invitation sender""" + senderId: UUID - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite +} - """Whether the actor is the owner of this entity""" - isOwner: Boolean! +""" +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +""" +input OrgClaimedInviteFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """References the user who holds this membership""" - actorId: UUID! + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter - """References the entity (org or group) this membership belongs to""" - entityId: UUID! + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean! - profileId: UUID + """Checks for all expressions in this list.""" + and: [OrgClaimedInviteFilter!] + + """Checks for any expressions in this list.""" + or: [OrgClaimedInviteFilter!] + + """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]! """ - Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - orgMemberProfileByMembershipId: OrgMemberProfile + edges: [OrgGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgGrant` you could get from the connection.""" + totalCount: Int! } """ -Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +Records of individual permission grants and revocations for members via bitmask """ -type OrgMemberProfile { +type OrgGrant { 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; NULL if user was deleted + """ + actorId: UUID + + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID createdAt: Datetime updatedAt: Datetime +} - """References the membership this profile belongs to (1:1)""" - membershipId: UUID! +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID! + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant +} - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID! +""" +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 - """Display name shown to other entity members""" - displayName: String + """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 `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: [OrgGrantFilter!] + + """Checks for any expressions in this list.""" + or: [OrgGrantFilter!] + + """Negates the expression.""" + not: OrgGrantFilter +} + +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { + 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 + 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 `OrgChartEdge` values.""" +type OrgChartEdgeConnection { + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """ - Email address visible to other entity members (auto-populated from verified primary email) + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - email: String + edges: [OrgChartEdgeEdge]! - """Job title or role description visible to other entity members""" - title: String + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Short biography visible to other entity members""" - bio: String + """The count of *all* `OrgChartEdge` you could get from the connection.""" + totalCount: Int! +} - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage +""" +Organizational chart edges defining parent-child reporting relationships between members within an entity +""" +type OrgChartEdge { + 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! """ - Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. + User ID of the manager; NULL indicates a top-level position with no direct report """ - membership: OrgMembership -} + parentId: UUID -scalar ConstructiveInternalTypeImage + """Job title or role name for this position in the org chart""" + positionTitle: String -"""A `OrgMembership` edge in the connection.""" -type OrgMembershipEdge { + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembership` at the end of the edge.""" - node: OrgMembership + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } """ -A filter to be used against `OrgMembership` 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 OrgMembershipFilter { +input OrgChartEdgeFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -3757,272 +3645,1110 @@ input OrgMembershipFilter { """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 `isBanned` field.""" - isBanned: BooleanFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter - """Filter by the object’s `isDisabled` field.""" - isDisabled: BooleanFilter + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter - """Filter by the object’s `isActive` field.""" - isActive: BooleanFilter + """Checks for all expressions in this list.""" + and: [OrgChartEdgeFilter!] - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter + """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 +} + +"""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 + + """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 +} + +"""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.""" + nodes: [AppMembership]! + + """ + A list of edges which contains the `AppMembership` and cursor to aid in pagination. + """ + edges: [AppMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppMembership` you could get from the connection.""" + totalCount: Int! +} + +""" +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +""" +type AppMembership { + 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! + + """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 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 +} + +"""A `AppMembership` edge in the connection.""" +type AppMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppMembership` at the end of the edge.""" + node: AppMembership +} + +""" +A filter to be used against `AppMembership` object types. All fields are combined with a logical ‘and.’ +""" +input AppMembershipFilter { + """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 `isBanned` field.""" + isBanned: BooleanFilter + + """Filter by the object’s `isDisabled` field.""" + isDisabled: BooleanFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + + """Filter by the object’s `isActive` field.""" + isActive: BooleanFilter + + """Filter by the object’s `isOwner` field.""" + isOwner: BooleanFilter + + """Filter by the object’s `isAdmin` field.""" + isAdmin: BooleanFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [AppMembershipFilter!] + + """Checks for any expressions in this list.""" + or: [AppMembershipFilter!] + + """Negates the expression.""" + not: AppMembershipFilter +} + +"""Methods to use when ordering `AppMembership`.""" +enum AppMembershipOrderBy { + 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_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + PROFILE_ID_ASC + PROFILE_ID_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 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 + + """ + Reads a single `OrgMemberProfile` that is related to this `OrgMembership`. + """ + orgMemberProfileByMembershipId: OrgMemberProfile +} + +""" +Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) +""" +type OrgMemberProfile { + id: UUID! + 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 + + """ + Reads a single `OrgMembership` that is related to this `OrgMemberProfile`. + """ + membership: OrgMembership +} + +scalar ConstructiveInternalTypeImage + +"""A `OrgMembership` edge in the connection.""" +type OrgMembershipEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembership` at the end of the edge.""" + node: OrgMembership +} + +""" +A filter to be used against `OrgMembership` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMembershipFilter { + """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 `isBanned` field.""" + isBanned: BooleanFilter + + """Filter by the object’s `isDisabled` field.""" + isDisabled: 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.""" + isAdmin: BooleanFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `granted` field.""" + granted: BitStringFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `isReadOnly` field.""" + isReadOnly: BooleanFilter + + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [OrgMembershipFilter!] + + """Checks for any expressions in this list.""" + or: [OrgMembershipFilter!] + + """Negates the expression.""" + not: OrgMembershipFilter + + """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" + orgMemberProfileByMembershipId: OrgMemberProfileFilter + + """A related `orgMemberProfileByMembershipId` exists.""" + orgMemberProfileByMembershipIdExists: Boolean +} + +""" +A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMemberProfileFilter { + """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 `membershipId` field.""" + membershipId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `email` field.""" + email: StringFilter + + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `bio` field.""" + bio: StringFilter + + """Filter by the object’s `profilePicture` field.""" + profilePicture: ConstructiveInternalTypeImageFilter + + """Checks for all expressions in this list.""" + and: [OrgMemberProfileFilter!] + + """Checks for any expressions in this list.""" + or: [OrgMemberProfileFilter!] + + """Negates the expression.""" + not: OrgMemberProfileFilter + + """Filter by the object’s `membership` relation.""" + membership: OrgMembershipFilter +} + +""" +A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +""" +input ConstructiveInternalTypeImageFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: ConstructiveInternalTypeImage + + """Not equal to the specified value.""" + notEqualTo: ConstructiveInternalTypeImage + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: ConstructiveInternalTypeImage + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: ConstructiveInternalTypeImage + + """Included in the specified list.""" + in: [ConstructiveInternalTypeImage!] + + """Not included in the specified list.""" + notIn: [ConstructiveInternalTypeImage!] + + """Less than the specified value.""" + lessThan: ConstructiveInternalTypeImage + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: ConstructiveInternalTypeImage + + """Greater than the specified value.""" + greaterThan: ConstructiveInternalTypeImage + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: ConstructiveInternalTypeImage + + """Contains the specified JSON.""" + contains: ConstructiveInternalTypeImage + + """Contains the specified key.""" + containsKey: String + + """Contains all of the specified keys.""" + containsAllKeys: [String!] + + """Contains any of the specified keys.""" + containsAnyKeys: [String!] + + """Contained by the specified JSON.""" + containedBy: ConstructiveInternalTypeImage +} + +"""Methods to use when ordering `OrgMembership`.""" +enum OrgMembershipOrderBy { + 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_BANNED_ASC + IS_BANNED_DESC + IS_DISABLED_ASC + IS_DISABLED_DESC + IS_ACTIVE_ASC + IS_ACTIVE_DESC + IS_EXTERNAL_ASC + IS_EXTERNAL_DESC + IS_OWNER_ASC + IS_OWNER_DESC + IS_ADMIN_ASC + IS_ADMIN_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + GRANTED_ASC + GRANTED_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + IS_READ_ONLY_ASC + IS_READ_ONLY_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC +} + +"""A connection to a list of `OrgMemberProfile` values.""" +type OrgMemberProfileConnection { + """A list of `OrgMemberProfile` objects.""" + nodes: [OrgMemberProfile]! + + """ + A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + """ + edges: [OrgMemberProfileEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMemberProfile` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMemberProfile` edge in the connection.""" +type OrgMemberProfileEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMemberProfile` at the end of the edge.""" + node: OrgMemberProfile +} + +"""Methods to use when ordering `OrgMemberProfile`.""" +enum OrgMemberProfileOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + MEMBERSHIP_ID_ASC + MEMBERSHIP_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + EMAIL_ASC + EMAIL_DESC + TITLE_ASC + TITLE_DESC + BIO_ASC + BIO_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC +} + +"""A connection to a list of `AppInvite` values.""" +type AppInviteConnection { + """A list of `AppInvite` objects.""" + nodes: [AppInvite]! + + """ + A list of edges which contains the `AppInvite` and cursor to aid in pagination. + """ + edges: [AppInviteEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppInvite` you could get from the connection.""" + totalCount: Int! +} + +""" +Invitation records sent to prospective members via email, with token-based redemption and expiration +""" +type AppInvite { + id: UUID! + + """Delivery channel for this invitation: email, sms, or link""" + channel: String! - """Filter by the object’s `isOwner` field.""" - isOwner: BooleanFilter + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail - """Filter by the object’s `isAdmin` field.""" - isAdmin: BooleanFilter + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """User ID of the member who sent this invitation""" + senderId: UUID! - """Filter by the object’s `granted` field.""" - granted: BitStringFilter + """Unique random hex token used to redeem this invitation""" + inviteToken: String! - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean! - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int! - """Filter by the object’s `isReadOnly` field.""" - isReadOnly: BooleanFilter + """Running count of how many times this invite has been claimed""" + inviteCount: Int! - """Filter by the object’s `profileId` field.""" - profileId: UUIDFilter + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean! - """Checks for all expressions in this list.""" - and: [OrgMembershipFilter!] + """Optional JSON payload of additional invite metadata""" + data: JSON - """Checks for any expressions in this list.""" - or: [OrgMembershipFilter!] + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID - """Negates the expression.""" - not: OrgMembershipFilter + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime! + createdAt: Datetime + updatedAt: Datetime +} - """Filter by the object’s `orgMemberProfileByMembershipId` relation.""" - orgMemberProfileByMembershipId: OrgMemberProfileFilter +scalar ConstructiveInternalTypeEmail - """A related `orgMemberProfileByMembershipId` exists.""" - orgMemberProfileByMembershipIdExists: Boolean +"""A `AppInvite` edge in the connection.""" +type AppInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppInvite` at the end of the edge.""" + node: AppInvite } """ -A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgMemberProfileFilter { +input AppInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `channel` field.""" + channel: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `email` field.""" + email: ConstructiveInternalTypeEmailFilter - """Filter by the object’s `membershipId` field.""" - membershipId: UUIDFilter + """Filter by the object’s `phone` field.""" + phone: StringFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `inviteToken` field.""" + inviteToken: StringFilter - """Filter by the object’s `displayName` field.""" - displayName: StringFilter + """Filter by the object’s `inviteValid` field.""" + inviteValid: BooleanFilter - """Filter by the object’s `email` field.""" - email: StringFilter + """Filter by the object’s `inviteLimit` field.""" + inviteLimit: IntFilter - """Filter by the object’s `title` field.""" - title: StringFilter + """Filter by the object’s `inviteCount` field.""" + inviteCount: IntFilter - """Filter by the object’s `bio` field.""" - bio: StringFilter + """Filter by the object’s `multiple` field.""" + multiple: BooleanFilter - """Filter by the object’s `profilePicture` field.""" - profilePicture: ConstructiveInternalTypeImageFilter + """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.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgMemberProfileFilter!] + and: [AppInviteFilter!] """Checks for any expressions in this list.""" - or: [OrgMemberProfileFilter!] + or: [AppInviteFilter!] """Negates the expression.""" - not: OrgMemberProfileFilter - - """Filter by the object’s `membership` relation.""" - membership: OrgMembershipFilter + not: AppInviteFilter } """ -A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ +A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ """ -input ConstructiveInternalTypeImageFilter { +input ConstructiveInternalTypeEmailFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: ConstructiveInternalTypeImage + equalTo: String """Not equal to the specified value.""" - notEqualTo: ConstructiveInternalTypeImage + notEqualTo: String """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: ConstructiveInternalTypeImage + distinctFrom: String """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: ConstructiveInternalTypeImage + notDistinctFrom: String """Included in the specified list.""" - in: [ConstructiveInternalTypeImage!] + in: [String!] """Not included in the specified list.""" - notIn: [ConstructiveInternalTypeImage!] + notIn: [String!] """Less than the specified value.""" - lessThan: ConstructiveInternalTypeImage + lessThan: String """Less than or equal to the specified value.""" - lessThanOrEqualTo: ConstructiveInternalTypeImage + lessThanOrEqualTo: String """Greater than the specified value.""" - greaterThan: ConstructiveInternalTypeImage + greaterThan: String """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: ConstructiveInternalTypeImage + greaterThanOrEqualTo: String - """Contains the specified JSON.""" - contains: ConstructiveInternalTypeImage + """Contains the specified string (case-sensitive).""" + includes: String - """Contains the specified key.""" - containsKey: String + """Does not contain the specified string (case-sensitive).""" + notIncludes: String - """Contains all of the specified keys.""" - containsAllKeys: [String!] + """Contains the specified string (case-insensitive).""" + includesInsensitive: ConstructiveInternalTypeEmail - """Contains any of the specified keys.""" - containsAnyKeys: [String!] + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: ConstructiveInternalTypeEmail - """Contained by the specified JSON.""" - containedBy: ConstructiveInternalTypeImage -} + """Starts with the specified string (case-sensitive).""" + startsWith: String -"""Methods to use when ordering `OrgMembership`.""" -enum OrgMembershipOrderBy { - 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_BANNED_ASC - IS_BANNED_DESC - IS_DISABLED_ASC - IS_DISABLED_DESC - IS_ACTIVE_ASC - IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC - IS_OWNER_ASC - IS_OWNER_DESC - IS_ADMIN_ASC - IS_ADMIN_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - GRANTED_ASC - GRANTED_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - IS_READ_ONLY_ASC - IS_READ_ONLY_DESC - PROFILE_ID_ASC - PROFILE_ID_DESC -} + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String -"""A connection to a list of `OrgMemberProfile` values.""" -type OrgMemberProfileConnection { - """A list of `OrgMemberProfile` objects.""" - nodes: [OrgMemberProfile]! + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: ConstructiveInternalTypeEmail + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: ConstructiveInternalTypeEmail + + """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: ConstructiveInternalTypeEmail + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: ConstructiveInternalTypeEmail """ - A list of edges which contains the `OrgMemberProfile` and cursor to aid in pagination. + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. """ - edges: [OrgMemberProfileEdge]! + like: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """ + 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: 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 """ - The count of *all* `OrgMemberProfile` you could get from the connection. + Equal to the specified value, treating null like an ordinary value (case-insensitive). """ - totalCount: Int! -} + notDistinctFromInsensitive: ConstructiveInternalTypeEmail -"""A `OrgMemberProfile` edge in the connection.""" -type OrgMemberProfileEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Included in the specified list (case-insensitive).""" + inInsensitive: [ConstructiveInternalTypeEmail!] - """The `OrgMemberProfile` at the end of the edge.""" - node: OrgMemberProfile + """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 `OrgMemberProfile`.""" -enum OrgMemberProfileOrderBy { +"""Methods to use when ordering `AppInvite`.""" +enum AppInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + CHANNEL_ASC + CHANNEL_DESC + EMAIL_ASC + EMAIL_DESC + PHONE_ASC + PHONE_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 - MEMBERSHIP_ID_ASC - MEMBERSHIP_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - EMAIL_ASC - EMAIL_DESC - TITLE_ASC - TITLE_DESC - BIO_ASC - BIO_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC } """A connection to a list of `OrgInvite` values.""" @@ -4048,9 +4774,17 @@ Invitation records sent to prospective members via email, with token-based redem type OrgInvite { id: UUID! - """Email address of the invited recipient""" + """Delivery channel for this invitation: email, sms, or link""" + channel: String! + + """Email address of the invited recipient (required when channel=email)""" email: ConstructiveInternalTypeEmail + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String + """User ID of the member who sent this invitation""" senderId: UUID! @@ -4108,9 +4842,15 @@ input OrgInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `channel` field.""" + channel: StringFilter + """Filter by the object’s `email` field.""" email: ConstructiveInternalTypeEmailFilter + """Filter by the object’s `phone` field.""" + phone: StringFilter + """Filter by the object’s `senderId` field.""" senderId: UUIDFilter @@ -4167,8 +4907,12 @@ enum OrgInviteOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + CHANNEL_ASC + CHANNEL_DESC EMAIL_ASC EMAIL_DESC + PHONE_ASC + PHONE_DESC SENDER_ID_ASC SENDER_ID_DESC RECEIVER_ID_ASC @@ -4390,6 +5134,22 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload + """Creates a single `AppPermissionDefaultPermission`.""" + createAppPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionDefaultPermissionInput! + ): CreateAppPermissionDefaultPermissionPayload + + """Creates a single `OrgPermissionDefaultPermission`.""" + createOrgPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionDefaultPermissionInput! + ): CreateOrgPermissionDefaultPermissionPayload + """Creates a single `AppAdminGrant`.""" createAppAdminGrant( """ @@ -4406,6 +5166,14 @@ type Mutation { input: CreateAppOwnerGrantInput! ): CreateAppOwnerGrantPayload + """Creates a single `AppPermissionDefaultGrant`.""" + createAppPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionDefaultGrantInput! + ): CreateAppPermissionDefaultGrantPayload + """Creates a single `OrgAdminGrant`.""" createOrgAdminGrant( """ @@ -4422,6 +5190,14 @@ type Mutation { input: CreateOrgOwnerGrantInput! ): CreateOrgOwnerGrantPayload + """Creates a single `OrgPermissionDefaultGrant`.""" + createOrgPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionDefaultGrantInput! + ): CreateOrgPermissionDefaultGrantPayload + """Creates a single `AppPermission`.""" createAppPermission( """ @@ -4526,14 +5302,6 @@ type Mutation { input: CreateAppMembershipInput! ): CreateAppMembershipPayload - """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 `OrgMembership`.""" createOrgMembership( """ @@ -4550,6 +5318,14 @@ type Mutation { input: CreateOrgMemberProfileInput! ): CreateOrgMemberProfilePayload + """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 `OrgInvite`.""" createOrgInvite( """ @@ -4586,6 +5362,26 @@ type Mutation { input: UpdateOrgPermissionDefaultInput! ): UpdateOrgPermissionDefaultPayload + """ + Updates a single `AppPermissionDefaultPermission` using a unique key and a patch. + """ + updateAppPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionDefaultPermissionInput! + ): UpdateAppPermissionDefaultPermissionPayload + + """ + Updates a single `OrgPermissionDefaultPermission` using a unique key and a patch. + """ + updateOrgPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultPermissionInput! + ): UpdateOrgPermissionDefaultPermissionPayload + """Updates a single `AppAdminGrant` using a unique key and a patch.""" updateAppAdminGrant( """ @@ -4602,6 +5398,16 @@ type Mutation { input: UpdateAppOwnerGrantInput! ): UpdateAppOwnerGrantPayload + """ + Updates a single `AppPermissionDefaultGrant` using a unique key and a patch. + """ + updateAppPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionDefaultGrantInput! + ): UpdateAppPermissionDefaultGrantPayload + """Updates a single `OrgAdminGrant` using a unique key and a patch.""" updateOrgAdminGrant( """ @@ -4618,6 +5424,16 @@ type Mutation { input: UpdateOrgOwnerGrantInput! ): UpdateOrgOwnerGrantPayload + """ + Updates a single `OrgPermissionDefaultGrant` using a unique key and a patch. + """ + updateOrgPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultGrantInput! + ): UpdateOrgPermissionDefaultGrantPayload + """Updates a single `AppPermission` using a unique key and a patch.""" updateAppPermission( """ @@ -4728,14 +5544,6 @@ type Mutation { input: UpdateAppMembershipInput! ): UpdateAppMembershipPayload - """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 `OrgMembership` using a unique key and a patch.""" updateOrgMembership( """ @@ -4752,6 +5560,14 @@ type Mutation { input: UpdateOrgMemberProfileInput! ): UpdateOrgMemberProfilePayload + """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 `OrgInvite` using a unique key and a patch.""" updateOrgInvite( """ @@ -4784,6 +5600,22 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload + """Deletes a single `AppPermissionDefaultPermission` using a unique key.""" + deleteAppPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionDefaultPermissionInput! + ): DeleteAppPermissionDefaultPermissionPayload + + """Deletes a single `OrgPermissionDefaultPermission` using a unique key.""" + deleteOrgPermissionDefaultPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultPermissionInput! + ): DeleteOrgPermissionDefaultPermissionPayload + """Deletes a single `AppAdminGrant` using a unique key.""" deleteAppAdminGrant( """ @@ -4800,6 +5632,14 @@ type Mutation { input: DeleteAppOwnerGrantInput! ): DeleteAppOwnerGrantPayload + """Deletes a single `AppPermissionDefaultGrant` using a unique key.""" + deleteAppPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionDefaultGrantInput! + ): DeleteAppPermissionDefaultGrantPayload + """Deletes a single `OrgAdminGrant` using a unique key.""" deleteOrgAdminGrant( """ @@ -4816,6 +5656,14 @@ type Mutation { input: DeleteOrgOwnerGrantInput! ): DeleteOrgOwnerGrantPayload + """Deletes a single `OrgPermissionDefaultGrant` using a unique key.""" + deleteOrgPermissionDefaultGrant( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultGrantInput! + ): DeleteOrgPermissionDefaultGrantPayload + """Deletes a single `AppPermission` using a unique key.""" deleteAppPermission( """ @@ -4920,14 +5768,6 @@ type Mutation { input: DeleteAppMembershipInput! ): DeleteAppMembershipPayload - """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 `OrgMembership` using a unique key.""" deleteOrgMembership( """ @@ -4944,6 +5784,14 @@ type Mutation { input: DeleteOrgMemberProfileInput! ): DeleteOrgMemberProfilePayload + """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 `OrgInvite` using a unique key.""" deleteOrgInvite( """ @@ -5116,42 +5964,143 @@ type CreateOrgPermissionDefaultPayload { """ clientMutationId: String - """The `OrgPermissionDefault` that was created by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """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 `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 `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 `OrgPermissionDefault` to be created by this mutation.""" + orgPermissionDefault: OrgPermissionDefaultInput! +} + +"""An input for mutations affecting `OrgPermissionDefault`""" +input OrgPermissionDefaultInput { + 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 create `AppPermissionDefaultPermission` mutation.""" +type CreateAppPermissionDefaultPermissionPayload { + """ + The 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 `AppPermissionDefaultPermission` that was created by this mutation. + """ + appPermissionDefaultPermission: AppPermissionDefaultPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. + """ + appPermissionDefaultPermissionEdge( + """The method to use when ordering `AppPermissionDefaultPermission`.""" + orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultPermissionEdge +} + +"""All input for the create `AppPermissionDefaultPermission` mutation.""" +input CreateAppPermissionDefaultPermissionInput { + """ + 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 `AppPermissionDefaultPermission` to be created by this mutation.""" + appPermissionDefaultPermission: AppPermissionDefaultPermissionInput! +} + +"""An input for mutations affecting `AppPermissionDefaultPermission`""" +input AppPermissionDefaultPermissionInput { + id: UUID + + """References the permission included in the defaults bundle""" + permissionId: UUID! + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgPermissionDefaultPermission` mutation.""" +type CreateOrgPermissionDefaultPermissionPayload { + """ + The 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 `OrgPermissionDefaultPermission` that was created by this mutation. + """ + orgPermissionDefaultPermission: OrgPermissionDefaultPermission """ 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 `OrgPermissionDefaultPermission`. May be used by Relay 1. + """ + orgPermissionDefaultPermissionEdge( + """The method to use when ordering `OrgPermissionDefaultPermission`.""" + orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultPermissionEdge } -"""All input for the create `OrgPermissionDefault` mutation.""" -input CreateOrgPermissionDefaultInput { +"""All input for the create `OrgPermissionDefaultPermission` mutation.""" +input CreateOrgPermissionDefaultPermissionInput { """ 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 `OrgPermissionDefaultPermission` to be created by this mutation.""" + orgPermissionDefaultPermission: OrgPermissionDefaultPermissionInput! } -"""An input for mutations affecting `OrgPermissionDefault`""" -input OrgPermissionDefaultInput { +"""An input for mutations affecting `OrgPermissionDefaultPermission`""" +input OrgPermissionDefaultPermissionInput { id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """References the permission included in the defaults bundle""" + permissionId: UUID! - """References the entity these default permissions apply to""" + """Scopes this default permission to a specific entity""" entityId: UUID! + createdAt: Datetime + updatedAt: Datetime } """The output of our create `AppAdminGrant` mutation.""" @@ -5196,8 +6145,10 @@ input AppAdminGrantInput { """True to grant admin, false to revoke admin""" isGrant: Boolean - """The member receiving or losing the admin grant""" - actorId: UUID! + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ + actorId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -5245,8 +6196,59 @@ input AppOwnerGrantInput { """True to grant ownership, false to revoke ownership""" isGrant: Boolean - """The member receiving or losing the ownership grant""" - actorId: UUID! + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `AppPermissionDefaultGrant` mutation.""" +type CreateAppPermissionDefaultGrantPayload { + """ + The 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 `AppPermissionDefaultGrant` that was created by this mutation.""" + appPermissionDefaultGrant: AppPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" + appPermissionDefaultGrantEdge( + """The method to use when ordering `AppPermissionDefaultGrant`.""" + orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultGrantEdge +} + +"""All input for the create `AppPermissionDefaultGrant` mutation.""" +input CreateAppPermissionDefaultGrantInput { + """ + 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 `AppPermissionDefaultGrant` to be created by this mutation.""" + appPermissionDefaultGrant: AppPermissionDefaultGrantInput! +} + +"""An input for mutations affecting `AppPermissionDefaultGrant`""" +input AppPermissionDefaultGrantInput { + id: UUID + + """References the permission being added to or removed from defaults""" + permissionId: UUID! + + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -5294,8 +6296,10 @@ input OrgAdminGrantInput { """True to grant admin, false to revoke admin""" isGrant: Boolean - """The member receiving or losing the admin grant""" - actorId: UUID! + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ + actorId: UUID """The entity (org or group) this admin grant applies to""" entityId: UUID! @@ -5346,8 +6350,10 @@ input OrgOwnerGrantInput { """True to grant ownership, false to revoke ownership""" isGrant: Boolean - """The member receiving or losing the ownership grant""" - actorId: UUID! + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ + actorId: UUID """The entity (org or group) this ownership grant applies to""" entityId: UUID! @@ -5356,6 +6362,58 @@ input OrgOwnerGrantInput { updatedAt: Datetime } +"""The output of our create `OrgPermissionDefaultGrant` mutation.""" +type CreateOrgPermissionDefaultGrantPayload { + """ + The 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 `OrgPermissionDefaultGrant` that was created by this mutation.""" + orgPermissionDefaultGrant: OrgPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" + orgPermissionDefaultGrantEdge( + """The method to use when ordering `OrgPermissionDefaultGrant`.""" + orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultGrantEdge +} + +"""All input for the create `OrgPermissionDefaultGrant` mutation.""" +input CreateOrgPermissionDefaultGrantInput { + """ + 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 `OrgPermissionDefaultGrant` to be created by this mutation.""" + orgPermissionDefaultGrant: OrgPermissionDefaultGrantInput! +} + +"""An input for mutations affecting `OrgPermissionDefaultGrant`""" +input OrgPermissionDefaultGrantInput { + id: UUID + + """References the permission being added to or removed from defaults""" + permissionId: UUID! + + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean + grantorId: UUID + + """Scopes this audit entry to a specific entity""" + entityId: UUID! + createdAt: Datetime + updatedAt: Datetime +} + """The output of our create `AppPermission` mutation.""" type CreateAppPermissionPayload { """ @@ -5694,8 +6752,10 @@ input AppGrantInput { """True to grant the permissions, false to revoke them""" isGrant: Boolean - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + The member receiving or losing the permission grant; NULL if user was deleted + """ + actorId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime @@ -5898,8 +6958,10 @@ input OrgGrantInput { """True to grant the permissions, false to revoke them""" isGrant: Boolean - """The member receiving or losing the permission grant""" - actorId: UUID! + """ + The member receiving or losing the permission grant; NULL if user was deleted + """ + actorId: UUID """The entity (org or group) this permission grant applies to""" entityId: UUID! @@ -6135,80 +7197,6 @@ input AppMembershipInput { profileId: UUID } -"""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 `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 `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 `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 `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! -} - -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { - 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 create `OrgMembership` mutation.""" type CreateOrgMembershipPayload { """ @@ -6359,11 +7347,93 @@ input OrgMemberProfileInput { """Job title or role description visible to other entity members""" title: String - """Short biography visible to other entity members""" - bio: String + """Short biography visible to other entity members""" + bio: String + + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage +} + +"""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 `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 `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 `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 `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! +} + +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { + id: UUID + + """Delivery channel for this invitation: email, sms, or link""" + channel: String + + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String + + """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 - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime } """The output of our create `OrgInvite` mutation.""" @@ -6405,9 +7475,17 @@ input CreateOrgInviteInput { input OrgInviteInput { id: UUID - """Email address of the invited recipient""" + """Delivery channel for this invitation: email, sms, or link""" + channel: String + + """Email address of the invited recipient (required when channel=email)""" email: ConstructiveInternalTypeEmail + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String + """User ID of the member who sent this invitation""" senderId: UUID @@ -6602,6 +7680,117 @@ input OrgPermissionDefaultPatch { entityId: UUID } +"""The output of our update `AppPermissionDefaultPermission` mutation.""" +type UpdateAppPermissionDefaultPermissionPayload { + """ + The 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 `AppPermissionDefaultPermission` that was updated by this mutation. + """ + appPermissionDefaultPermission: AppPermissionDefaultPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. + """ + appPermissionDefaultPermissionEdge( + """The method to use when ordering `AppPermissionDefaultPermission`.""" + orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultPermissionEdge +} + +"""All input for the `updateAppPermissionDefaultPermission` mutation.""" +input UpdateAppPermissionDefaultPermissionInput { + """ + 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 `AppPermissionDefaultPermission` being updated. + """ + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch! +} + +""" +Represents an update to a `AppPermissionDefaultPermission`. Fields that are set will be updated. +""" +input AppPermissionDefaultPermissionPatch { + id: UUID + + """References the permission included in the defaults bundle""" + permissionId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgPermissionDefaultPermission` mutation.""" +type UpdateOrgPermissionDefaultPermissionPayload { + """ + The 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 `OrgPermissionDefaultPermission` that was updated by this mutation. + """ + orgPermissionDefaultPermission: OrgPermissionDefaultPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + An edge for our `OrgPermissionDefaultPermission`. May be used by Relay 1. + """ + orgPermissionDefaultPermissionEdge( + """The method to use when ordering `OrgPermissionDefaultPermission`.""" + orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultPermissionEdge +} + +"""All input for the `updateOrgPermissionDefaultPermission` mutation.""" +input UpdateOrgPermissionDefaultPermissionInput { + """ + 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 `OrgPermissionDefaultPermission` being updated. + """ + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch! +} + +""" +Represents an update to a `OrgPermissionDefaultPermission`. Fields that are set will be updated. +""" +input OrgPermissionDefaultPermissionPatch { + id: UUID + + """References the permission included in the defaults bundle""" + permissionId: UUID + + """Scopes this default permission to a specific entity""" + entityId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `AppAdminGrant` mutation.""" type UpdateAppAdminGrantPayload { """ @@ -6649,7 +7838,9 @@ input AppAdminGrantPatch { """True to grant admin, false to revoke admin""" isGrant: Boolean - """The member receiving or losing the admin grant""" + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ actorId: UUID grantorId: UUID createdAt: Datetime @@ -6703,13 +7894,69 @@ input AppOwnerGrantPatch { """True to grant ownership, false to revoke ownership""" isGrant: Boolean - """The member receiving or losing the ownership grant""" + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ actorId: UUID grantorId: UUID createdAt: Datetime updatedAt: Datetime } +"""The output of our update `AppPermissionDefaultGrant` mutation.""" +type UpdateAppPermissionDefaultGrantPayload { + """ + The 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 `AppPermissionDefaultGrant` that was updated by this mutation.""" + appPermissionDefaultGrant: AppPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" + appPermissionDefaultGrantEdge( + """The method to use when ordering `AppPermissionDefaultGrant`.""" + orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultGrantEdge +} + +"""All input for the `updateAppPermissionDefaultGrant` mutation.""" +input UpdateAppPermissionDefaultGrantInput { + """ + 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 `AppPermissionDefaultGrant` being updated. + """ + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch! +} + +""" +Represents an update to a `AppPermissionDefaultGrant`. Fields that are set will be updated. +""" +input AppPermissionDefaultGrantPatch { + id: UUID + + """References the permission being added to or removed from defaults""" + permissionId: UUID + + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `OrgAdminGrant` mutation.""" type UpdateOrgAdminGrantPayload { """ @@ -6757,7 +8004,9 @@ input OrgAdminGrantPatch { """True to grant admin, false to revoke admin""" isGrant: Boolean - """The member receiving or losing the admin grant""" + """ + The member receiving or losing the admin grant; NULL if user was deleted + """ actorId: UUID """The entity (org or group) this admin grant applies to""" @@ -6814,7 +8063,9 @@ input OrgOwnerGrantPatch { """True to grant ownership, false to revoke ownership""" isGrant: Boolean - """The member receiving or losing the ownership grant""" + """ + The member receiving or losing the ownership grant; NULL if user was deleted + """ actorId: UUID """The entity (org or group) this ownership grant applies to""" @@ -6824,6 +8075,63 @@ input OrgOwnerGrantPatch { updatedAt: Datetime } +"""The output of our update `OrgPermissionDefaultGrant` mutation.""" +type UpdateOrgPermissionDefaultGrantPayload { + """ + The 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 `OrgPermissionDefaultGrant` that was updated by this mutation.""" + orgPermissionDefaultGrant: OrgPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" + orgPermissionDefaultGrantEdge( + """The method to use when ordering `OrgPermissionDefaultGrant`.""" + orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultGrantEdge +} + +"""All input for the `updateOrgPermissionDefaultGrant` mutation.""" +input UpdateOrgPermissionDefaultGrantInput { + """ + 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 `OrgPermissionDefaultGrant` being updated. + """ + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch! +} + +""" +Represents an update to a `OrgPermissionDefaultGrant`. Fields that are set will be updated. +""" +input OrgPermissionDefaultGrantPatch { + id: UUID + + """References the permission being added to or removed from defaults""" + permissionId: UUID + + """True to add the permission to defaults, false to remove it""" + isGrant: Boolean + grantorId: UUID + + """Scopes this audit entry to a specific entity""" + entityId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `AppPermission` mutation.""" type UpdateAppPermissionPayload { """ @@ -7196,7 +8504,9 @@ input AppGrantPatch { """True to grant the permissions, false to revoke them""" isGrant: Boolean - """The member receiving or losing the permission grant""" + """ + The member receiving or losing the permission grant; NULL if user was deleted + """ actorId: UUID grantorId: UUID createdAt: Datetime @@ -7420,7 +8730,9 @@ input OrgGrantPatch { """True to grant the permissions, false to revoke them""" isGrant: Boolean - """The member receiving or losing the permission grant""" + """ + The member receiving or losing the permission grant; NULL if user was deleted + """ actorId: UUID """The entity (org or group) this permission grant applies to""" @@ -7665,90 +8977,11 @@ input AppMembershipPatch { """ 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 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 + granted: BitString - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """References the user who holds this membership""" + actorId: UUID + profileId: UUID } """The output of our update `OrgMembership` mutation.""" @@ -7924,6 +9157,93 @@ input OrgMemberProfilePatch { """The `Upload` scalar type represents a file upload.""" scalar Upload +"""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 + + """Delivery channel for this invitation: email, sms, or link""" + channel: String + + """Email address of the invited recipient (required when channel=email)""" + email: ConstructiveInternalTypeEmail + + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String + + """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 `OrgInvite` mutation.""" type UpdateOrgInvitePayload { """ @@ -7968,9 +9288,17 @@ Represents an update to a `OrgInvite`. Fields that are set will be updated. input OrgInvitePatch { id: UUID - """Email address of the invited recipient""" + """Delivery channel for this invitation: email, sms, or link""" + channel: String + + """Email address of the invited recipient (required when channel=email)""" email: ConstructiveInternalTypeEmail + """ + Phone number of the invited recipient in E.164 format (required when channel=sms) + """ + phone: String + """User ID of the member who sent this invitation""" senderId: UUID @@ -8111,6 +9439,80 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } +"""The output of our delete `AppPermissionDefaultPermission` mutation.""" +type DeleteAppPermissionDefaultPermissionPayload { + """ + The 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 `AppPermissionDefaultPermission` that was deleted by this mutation. + """ + appPermissionDefaultPermission: AppPermissionDefaultPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + An edge for our `AppPermissionDefaultPermission`. May be used by Relay 1. + """ + appPermissionDefaultPermissionEdge( + """The method to use when ordering `AppPermissionDefaultPermission`.""" + orderBy: [AppPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultPermissionEdge +} + +"""All input for the `deleteAppPermissionDefaultPermission` mutation.""" +input DeleteAppPermissionDefaultPermissionInput { + """ + 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 `OrgPermissionDefaultPermission` mutation.""" +type DeleteOrgPermissionDefaultPermissionPayload { + """ + The 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 `OrgPermissionDefaultPermission` that was deleted by this mutation. + """ + orgPermissionDefaultPermission: OrgPermissionDefaultPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """ + An edge for our `OrgPermissionDefaultPermission`. May be used by Relay 1. + """ + orgPermissionDefaultPermissionEdge( + """The method to use when ordering `OrgPermissionDefaultPermission`.""" + orderBy: [OrgPermissionDefaultPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultPermissionEdge +} + +"""All input for the `deleteOrgPermissionDefaultPermission` mutation.""" +input DeleteOrgPermissionDefaultPermissionInput { + """ + 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 { """ @@ -8177,6 +9579,39 @@ input DeleteAppOwnerGrantInput { id: UUID! } +"""The output of our delete `AppPermissionDefaultGrant` mutation.""" +type DeleteAppPermissionDefaultGrantPayload { + """ + The 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 `AppPermissionDefaultGrant` that was deleted by this mutation.""" + appPermissionDefaultGrant: AppPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermissionDefaultGrant`. May be used by Relay 1.""" + appPermissionDefaultGrantEdge( + """The method to use when ordering `AppPermissionDefaultGrant`.""" + orderBy: [AppPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultGrantEdge +} + +"""All input for the `deleteAppPermissionDefaultGrant` mutation.""" +input DeleteAppPermissionDefaultGrantInput { + """ + 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 `OrgAdminGrant` mutation.""" type DeleteOrgAdminGrantPayload { """ @@ -8243,6 +9678,39 @@ input DeleteOrgOwnerGrantInput { id: UUID! } +"""The output of our delete `OrgPermissionDefaultGrant` mutation.""" +type DeleteOrgPermissionDefaultGrantPayload { + """ + The 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 `OrgPermissionDefaultGrant` that was deleted by this mutation.""" + orgPermissionDefaultGrant: OrgPermissionDefaultGrant + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefaultGrant`. May be used by Relay 1.""" + orgPermissionDefaultGrantEdge( + """The method to use when ordering `OrgPermissionDefaultGrant`.""" + orderBy: [OrgPermissionDefaultGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultGrantEdge +} + +"""All input for the `deleteOrgPermissionDefaultGrant` mutation.""" +input DeleteOrgPermissionDefaultGrantInput { + """ + 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 { """ @@ -8676,39 +10144,6 @@ input DeleteAppMembershipInput { id: UUID! } -"""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 `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 `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 `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. - """ - clientMutationId: String - id: UUID! -} - """The output of our delete `OrgMembership` mutation.""" type DeleteOrgMembershipPayload { """ @@ -8775,6 +10210,39 @@ input DeleteOrgMemberProfileInput { id: UUID! } +"""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 `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 `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 `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. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `OrgInvite` mutation.""" type DeleteOrgInvitePayload { """ diff --git a/sdk/constructive-sdk/schemas/agent.graphql b/sdk/constructive-sdk/schemas/agent.graphql index 6b631981df..198d5da9ea 100644 --- a/sdk/constructive-sdk/schemas/agent.graphql +++ b/sdk/constructive-sdk/schemas/agent.graphql @@ -558,6 +558,35 @@ type Agent { orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] ): AgentThreadConnection! + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( + """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 `Agent`.""" childAgents( """Only read the first `n` values of the set.""" @@ -762,6 +791,12 @@ input AgentFilter { """`agentThreads` exist.""" agentThreadsExist: Boolean + """Filter by the object’s `agentMessages` relation.""" + agentMessages: AgentToManyAgentMessageFilter + + """`agentMessages` exist.""" + agentMessagesExist: Boolean + """Filter by the object’s `childAgents` relation.""" childAgents: AgentToManyAgentFilter @@ -1411,8 +1446,8 @@ input AgentMessageFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Filter by the object’s `parts` field.""" parts: JSONFilter @@ -1426,6 +1461,9 @@ input AgentMessageFilter { """Filter by the object’s `model` field.""" model: StringFilter + """Filter by the object’s `agentId` field.""" + agentId: UUIDFilter + """Checks for all expressions in this list.""" and: [AgentMessageFilter!] @@ -1435,6 +1473,12 @@ input AgentMessageFilter { """Negates the expression.""" not: AgentMessageFilter + """Filter by the object’s `agent` relation.""" + agent: AgentFilter + + """A related `agent` exists.""" + agentExists: Boolean + """Filter by the object’s `thread` relation.""" thread: AgentThreadFilter } @@ -1527,8 +1571,8 @@ input AgentTaskFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter """Filter by the object’s `status` field.""" status: StringFilter @@ -1618,6 +1662,20 @@ input IntFilter { greaterThanOrEqualTo: Int } +""" +A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input AgentToManyAgentMessageFilter { + """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 `Agent` object types. All fields are combined with a logical ‘and.’ """ @@ -1724,30 +1782,6 @@ enum AgentThreadOrderBy { PARENT_THREAD_ID_DESC } -"""Shared system prompt templates for agent conversations""" -type AgentPrompt { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Unique name for lookup (e.g. default, code-review, sales-assistant)""" - name: String! - - """The system prompt template content""" - content: String! - - """What this prompt template is for""" - description: String - - """Whether this is the default prompt for the entity/app""" - isDefault: Boolean! - - """Variables, tags, category metadata""" - metadata: JSON -} - """A connection to a list of `AgentMessage` values.""" type AgentMessageConnection { """A list of `AgentMessage` objects.""" @@ -1771,8 +1805,8 @@ type AgentMessage { createdAt: Datetime updatedAt: Datetime - """User who owns this message""" - ownerId: UUID! + """User who authored this message""" + actorId: UUID! """Message content: TextPart and ToolPart array""" parts: JSON @@ -1786,6 +1820,12 @@ type AgentMessage { """LLM model that generated this response""" model: String + """Agent that authored this message (NULL for human messages)""" + agentId: UUID + + """Reads a single `Agent` that is related to this `AgentMessage`.""" + agent: Agent + """Reads a single `AgentThread` that is related to this `AgentMessage`.""" thread: AgentThread } @@ -1810,8 +1850,8 @@ enum AgentMessageOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - OWNER_ID_ASC - OWNER_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC PARTS_ASC PARTS_DESC THREAD_ID_ASC @@ -1820,6 +1860,32 @@ enum AgentMessageOrderBy { AUTHOR_ROLE_DESC MODEL_ASC MODEL_DESC + AGENT_ID_ASC + AGENT_ID_DESC +} + +"""Shared system prompt templates for agent conversations""" +type AgentPrompt { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Unique name for lookup (e.g. default, code-review, sales-assistant)""" + name: String! + + """The system prompt template content""" + content: String! + + """What this prompt template is for""" + description: String + + """Whether this is the default prompt for the entity/app""" + isDefault: Boolean! + + """Variables, tags, category metadata""" + metadata: JSON } """Methods to use when ordering `AgentPlan`.""" @@ -1868,8 +1934,8 @@ type AgentTask { createdAt: Datetime updatedAt: Datetime - """User who owns this task""" - ownerId: UUID! + """User who authored this task""" + actorId: UUID! """Current status of this task""" status: String! @@ -1930,8 +1996,8 @@ enum AgentTaskOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - OWNER_ID_ASC - OWNER_ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC STATUS_ASC STATUS_DESC PLAN_ID_ASC @@ -2061,7 +2127,7 @@ type AgentResourceChunk { embeddingVectorDistance: 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. + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ searchScore: Float } @@ -2178,7 +2244,7 @@ type AgentResource { bodyTrgmSimilarity: 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. + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ searchScore: Float } @@ -3380,8 +3446,8 @@ input AgentMessageInput { createdAt: Datetime updatedAt: Datetime - """User who owns this message""" - ownerId: UUID + """User who authored this message""" + actorId: UUID """Message content: TextPart and ToolPart array""" parts: JSON @@ -3394,6 +3460,9 @@ input AgentMessageInput { """LLM model that generated this response""" model: String + + """Agent that authored this message (NULL for human messages)""" + agentId: UUID } """The output of our create `AgentTask` mutation.""" @@ -3437,8 +3506,8 @@ input AgentTaskInput { createdAt: Datetime updatedAt: Datetime - """User who owns this task""" - ownerId: UUID + """User who authored this task""" + actorId: UUID """Current status of this task""" status: String @@ -3987,8 +4056,8 @@ input AgentMessagePatch { createdAt: Datetime updatedAt: Datetime - """User who owns this message""" - ownerId: UUID + """User who authored this message""" + actorId: UUID """Message content: TextPart and ToolPart array""" parts: JSON @@ -4001,6 +4070,9 @@ input AgentMessagePatch { """LLM model that generated this response""" model: String + + """Agent that authored this message (NULL for human messages)""" + agentId: UUID } """The output of our update `AgentTask` mutation.""" @@ -4049,8 +4121,8 @@ input AgentTaskPatch { createdAt: Datetime updatedAt: Datetime - """User who owns this task""" - ownerId: UUID + """User who authored this task""" + actorId: UUID """Current status of this task""" status: String diff --git a/sdk/constructive-sdk/schemas/api.graphql b/sdk/constructive-sdk/schemas/api.graphql index 33de4d0fca..78a8d5693c 100644 --- a/sdk/constructive-sdk/schemas/api.graphql +++ b/sdk/constructive-sdk/schemas/api.graphql @@ -31,8 +31,8 @@ type Query { orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] ): FunctionConnection - """Reads and enables pagination through a set of `ViewTable`.""" - viewTables( + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( """Only read the first `n` values of the set.""" first: Int @@ -54,14 +54,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewTableFilter + where: ApiSchemaFilter - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewTableConnection + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( """Only read the first `n` values of the set.""" first: Int @@ -83,14 +83,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSchemaFilter + where: SiteThemeFilter - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( """Only read the first `n` values of the set.""" first: Int @@ -112,11 +112,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteThemeFilter + where: ViewTableFilter - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection """Reads and enables pagination through a set of `ViewRule`.""" viewRules( @@ -669,37 +669,8 @@ type Query { orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] ): PartitionConnection - """Reads and enables pagination through a set of `SqlAction`.""" - sqlActions( - """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: SqlActionFilter - - """The method to use when ordering `SqlAction`.""" - orderBy: [SqlActionOrderBy!] = [NATURAL] - ): SqlActionConnection - - """Reads and enables pagination through a set of `DatabaseSetting`.""" - databaseSettings( + """Reads and enables pagination through a set of `CompositeType`.""" + compositeTypes( """Only read the first `n` values of the set.""" first: Int @@ -721,11 +692,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseSettingFilter + where: CompositeTypeFilter - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseSettingConnection + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): CompositeTypeConnection """Reads and enables pagination through a set of `Enum`.""" enums( @@ -756,8 +727,8 @@ type Query { orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] ): EnumConnection - """Reads and enables pagination through a set of `View`.""" - views( + """Reads and enables pagination through a set of `SqlAction`.""" + sqlActions( """Only read the first `n` values of the set.""" first: Int @@ -779,14 +750,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewFilter + where: SqlActionFilter - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection + """The method to use when ordering `SqlAction`.""" + orderBy: [SqlActionOrderBy!] = [NATURAL] + ): SqlActionConnection - """Reads and enables pagination through a set of `ApiSetting`.""" - apiSettings( + """Reads and enables pagination through a set of `View`.""" + views( """Only read the first `n` values of the set.""" first: Int @@ -808,14 +779,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSettingFilter + where: ViewFilter - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSettingConnection + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( + """Reads and enables pagination through a set of `DatabaseSetting`.""" + databaseSettings( """Only read the first `n` values of the set.""" first: Int @@ -837,14 +808,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseTransferFilter + where: DatabaseSettingFilter - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseSettingConnection - """Reads and enables pagination through a set of `App`.""" - apps( + """Reads and enables pagination through a set of `ApiSetting`.""" + apiSettings( """Only read the first `n` values of the set.""" first: Int @@ -866,14 +837,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppFilter + where: ApiSettingFilter - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSettingConnection - """Reads and enables pagination through a set of `Site`.""" - sites( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -895,11 +866,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteFilter + where: DatabaseTransferFilter - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteConnection + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" primaryKeyConstraints( @@ -1075,6 +1046,64 @@ type Query { orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] ): PolicyConnection + """Reads and enables pagination through a set of `App`.""" + apps( + """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: AppFilter + + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection + + """Reads and enables pagination through a set of `Site`.""" + sites( + """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: SiteFilter + + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection + """Reads and enables pagination through a set of `Schema`.""" schemas( """Only read the first `n` values of the set.""" @@ -1133,8 +1162,8 @@ type Query { orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] ): IndexConnection - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( """Only read the first `n` values of the set.""" first: Int @@ -1156,14 +1185,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmbeddingChunkFilter + where: ForeignKeyConstraintFilter - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -1185,11 +1214,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ForeignKeyConstraintFilter + where: EmbeddingChunkFilter - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection """Reads and enables pagination through a set of `WebauthnSetting`.""" webauthnSettings( @@ -1798,6 +1827,35 @@ type Database { orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] ): ViewConnection! + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( + """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: ViewTableFilter + + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection! + """Reads and enables pagination through a set of `ViewGrant`.""" viewGrants( """Only read the first `n` values of the set.""" @@ -2030,8 +2088,8 @@ type Database { orderBy: [PartitionOrderBy!] = [PRIMARY_KEY_ASC] ): PartitionConnection! - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( + """Reads and enables pagination through a set of `CompositeType`.""" + compositeTypes( """Only read the first `n` values of the set.""" first: Int @@ -2053,14 +2111,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseTransferFilter + where: CompositeTypeFilter - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection! + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): CompositeTypeConnection! - """Reads and enables pagination through a set of `Api`.""" - apis( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -2082,10 +2140,39 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiFilter + where: DatabaseTransferFilter - """The method to use when ordering `Api`.""" - orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection! + + """Reads and enables pagination through a set of `Api`.""" + apis( + """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: ApiFilter + + """The method to use when ordering `Api`.""" + orderBy: [ApiOrderBy!] = [PRIMARY_KEY_ASC] ): ApiConnection! """Reads and enables pagination through a set of `ApiModule`.""" @@ -2426,7 +2513,6 @@ type Schema { description: String smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! isPublic: Boolean! @@ -2610,6 +2696,35 @@ type Schema { orderBy: [FunctionOrderBy!] = [PRIMARY_KEY_ASC] ): FunctionConnection! + """Reads and enables pagination through a set of `CompositeType`.""" + compositeTypes( + """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: CompositeTypeFilter + + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): CompositeTypeConnection! + """Reads and enables pagination through a set of `ApiSchema`.""" apiSchemas( """Only read the first `n` values of the set.""" @@ -2643,6 +2758,9 @@ type Schema { enum ObjectCategory { CORE MODULE + PERMISSIONS + AUTH + MEMBERSHIPS APP } @@ -2672,7 +2790,6 @@ type Table { description: String smartTags: JSON category: ObjectCategory! - module: String scope: Int useRls: Boolean! timestamps: Boolean! @@ -2684,9 +2801,9 @@ type Table { partitionStrategy: String partitionKeyNames: [String] partitionKeyTypes: [String] - inheritsId: UUID createdAt: Datetime updatedAt: Datetime + inheritsId: UUID """Reads a single `Database` that is related to this `Table`.""" database: Database @@ -3194,7 +3311,6 @@ type CheckConstraint { expr: JSON smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -3265,9 +3381,6 @@ input CheckConstraintFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -3906,6 +4019,12 @@ input DatabaseFilter { """`views` exist.""" viewsExist: Boolean + """Filter by the object’s `viewTables` relation.""" + viewTables: DatabaseToManyViewTableFilter + + """`viewTables` exist.""" + viewTablesExist: Boolean + """Filter by the object’s `viewGrants` relation.""" viewGrants: DatabaseToManyViewGrantFilter @@ -3954,6 +4073,12 @@ input DatabaseFilter { """`partitions` exist.""" partitionsExist: Boolean + """Filter by the object’s `compositeTypes` relation.""" + compositeTypes: DatabaseToManyCompositeTypeFilter + + """`compositeTypes` exist.""" + compositeTypesExist: Boolean + """Filter by the object’s `databaseTransfers` relation.""" databaseTransfers: DatabaseToManyDatabaseTransferFilter @@ -4093,9 +4218,6 @@ input SchemaFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4159,6 +4281,12 @@ input SchemaFilter { """`functions` exist.""" functionsExist: Boolean + """Filter by the object’s `compositeTypes` relation.""" + compositeTypes: SchemaToManyCompositeTypeFilter + + """`compositeTypes` exist.""" + compositeTypesExist: Boolean + """Filter by the object’s `apiSchemas` relation.""" apiSchemas: SchemaToManyApiSchemaFilter @@ -4250,9 +4378,6 @@ input TableFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4286,15 +4411,15 @@ input TableFilter { """Filter by the object’s `partitionKeyTypes` field.""" partitionKeyTypes: StringListFilter - """Filter by the object’s `inheritsId` field.""" - inheritsId: UUIDFilter - """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `inheritsId` field.""" + inheritsId: UUIDFilter + """Checks for all expressions in this list.""" and: [TableFilter!] @@ -4508,9 +4633,6 @@ input FieldFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4638,9 +4760,6 @@ input SpatialRelationFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4735,9 +4854,6 @@ input ForeignKeyConstraintFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4893,9 +5009,6 @@ input IndexFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -4978,9 +5091,6 @@ input PolicyFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5051,9 +5161,6 @@ input PrimaryKeyConstraintFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5185,9 +5292,6 @@ input TriggerFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5261,9 +5365,6 @@ input UniqueConstraintFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5349,9 +5450,6 @@ input ViewFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5419,6 +5517,9 @@ input ViewTableFilter { """Filter by the object’s `id` field.""" id: UUIDFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + """Filter by the object’s `viewId` field.""" viewId: UUIDFilter @@ -5437,6 +5538,9 @@ input ViewTableFilter { """Negates the expression.""" not: ViewTableFilter + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + """Filter by the object’s `table` relation.""" table: TableFilter @@ -5922,9 +6026,6 @@ input EnumFilter { """Filter by the object’s `category` field.""" category: ObjectCategoryFilter - """Filter by the object’s `module` field.""" - module: StringFilter - """Filter by the object’s `scope` field.""" scope: IntFilter @@ -5993,6 +6094,73 @@ input FunctionFilter { schema: SchemaFilter } +""" +A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ +""" +input SchemaToManyCompositeTypeFilter { + """Filters to entities where at least one related entity matches.""" + some: CompositeTypeFilter + + """Filters to entities where every related entity matches.""" + every: CompositeTypeFilter + + """Filters to entities where no related entity matches.""" + none: CompositeTypeFilter +} + +""" +A filter to be used against `CompositeType` object types. All fields are combined with a logical ‘and.’ +""" +input CompositeTypeFilter { + """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 `name` field.""" + name: StringFilter + + """Filter by the object’s `label` field.""" + label: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `attributes` field.""" + attributes: JSONFilter + + """Filter by the object’s `smartTags` field.""" + smartTags: JSONFilter + + """Filter by the object’s `category` field.""" + category: ObjectCategoryFilter + + """Filter by the object’s `scope` field.""" + scope: IntFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [CompositeTypeFilter!] + + """Checks for any expressions in this list.""" + or: [CompositeTypeFilter!] + + """Negates the expression.""" + not: CompositeTypeFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + """ A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ """ @@ -7319,6 +7487,20 @@ input DatabaseToManyViewFilter { none: ViewFilter } +""" +A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyViewTableFilter { + """Filters to entities where at least one related entity matches.""" + some: ViewTableFilter + + """Filters to entities where every related entity matches.""" + every: ViewTableFilter + + """Filters to entities where no related entity matches.""" + none: ViewTableFilter +} + """ A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ """ @@ -7431,6 +7613,20 @@ input DatabaseToManyPartitionFilter { none: PartitionFilter } +""" +A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ +""" +input DatabaseToManyCompositeTypeFilter { + """Filters to entities where at least one related entity matches.""" + some: CompositeTypeFilter + + """Filters to entities where every related entity matches.""" + every: CompositeTypeFilter + + """Filters to entities where no related entity matches.""" + none: CompositeTypeFilter +} + """ A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ """ @@ -8086,8 +8282,6 @@ enum CheckConstraintOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8135,7 +8329,6 @@ type Field { max: Float tags: [String]! category: ObjectCategory! - module: String scope: Int createdAt: Datetime updatedAt: Datetime @@ -8235,7 +8428,6 @@ type SpatialRelation { operator: String! paramName: String category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8291,8 +8483,6 @@ enum SpatialRelationOrderBy { PARAM_NAME_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8355,8 +8545,6 @@ enum FieldOrderBy { TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC CREATED_AT_ASC @@ -8398,7 +8586,6 @@ type ForeignKeyConstraint { deleteAction: String updateAction: String category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8456,8 +8643,6 @@ enum ForeignKeyConstraintOrderBy { UPDATE_ACTION_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8572,7 +8757,6 @@ type Index { opClasses: [String] smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8627,8 +8811,6 @@ enum IndexOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8669,7 +8851,6 @@ type Policy { data: JSON smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8720,8 +8901,6 @@ enum PolicyOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8760,7 +8939,6 @@ type PrimaryKeyConstraint { fieldIds: [UUID]! smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8805,8 +8983,6 @@ enum PrimaryKeyConstraintOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8912,7 +9088,6 @@ type Trigger { functionName: String smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -8955,8 +9130,6 @@ enum TriggerOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -8996,7 +9169,6 @@ type UniqueConstraint { type: String fieldIds: [UUID]! category: ObjectCategory! - module: String scope: Int tags: [String]! createdAt: Datetime @@ -9041,8 +9213,6 @@ enum UniqueConstraintOrderBy { FIELD_IDS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -9084,7 +9254,6 @@ type View { isReadOnly: Boolean smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! @@ -9207,10 +9376,14 @@ Junction table linking views to their joined tables for referential integrity """ type ViewTable { id: UUID! + databaseId: UUID! viewId: UUID! tableId: UUID! joinOrder: Int! + """Reads a single `Database` that is related to this `ViewTable`.""" + database: Database + """Reads a single `Table` that is related to this `ViewTable`.""" table: Table @@ -9234,6 +9407,8 @@ enum ViewTableOrderBy { PRIMARY_KEY_DESC ID_ASC ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC VIEW_ID_ASC VIEW_ID_DESC TABLE_ID_ASC @@ -9410,8 +9585,6 @@ enum ViewOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -9587,8 +9760,6 @@ enum TableOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC USE_RLS_ASC @@ -9611,12 +9782,12 @@ enum TableOrderBy { PARTITION_KEY_NAMES_DESC PARTITION_KEY_TYPES_ASC PARTITION_KEY_TYPES_DESC - INHERITS_ID_ASC - INHERITS_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + INHERITS_ID_ASC + INHERITS_ID_DESC } """A connection to a list of `SchemaGrant` values.""" @@ -9771,7 +9942,6 @@ type Enum { values: [String]! smartTags: JSON category: ObjectCategory! - module: String scope: Int tags: [String]! @@ -9814,8 +9984,6 @@ enum EnumOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -9837,6 +10005,81 @@ enum FunctionOrderBy { NAME_DESC } +"""A connection to a list of `CompositeType` values.""" +type CompositeTypeConnection { + """A list of `CompositeType` objects.""" + nodes: [CompositeType]! + + """ + A list of edges which contains the `CompositeType` and cursor to aid in pagination. + """ + edges: [CompositeTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `CompositeType` you could get from the connection.""" + totalCount: Int! +} + +type CompositeType { + id: UUID! + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + attributes: JSON! + smartTags: JSON + category: ObjectCategory! + scope: Int + tags: [String]! + + """Reads a single `Database` that is related to this `CompositeType`.""" + database: Database + + """Reads a single `Schema` that is related to this `CompositeType`.""" + schema: Schema +} + +"""A `CompositeType` edge in the connection.""" +type CompositeTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `CompositeType` at the end of the edge.""" + node: CompositeType +} + +"""Methods to use when ordering `CompositeType`.""" +enum CompositeTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + NAME_ASC + NAME_DESC + LABEL_ASC + LABEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + ATTRIBUTES_ASC + ATTRIBUTES_DESC + SMART_TAGS_ASC + SMART_TAGS_DESC + CATEGORY_ASC + CATEGORY_DESC + SCOPE_ASC + SCOPE_DESC + TAGS_ASC + TAGS_DESC +} + """A connection to a list of `ApiSchema` values.""" type ApiSchemaConnection { """A list of `ApiSchema` objects.""" @@ -10780,8 +11023,6 @@ enum SchemaOrderBy { SMART_TAGS_DESC CATEGORY_ASC CATEGORY_DESC - MODULE_ASC - MODULE_DESC SCOPE_ASC SCOPE_DESC TAGS_ASC @@ -12488,14 +12729,6 @@ type Mutation { input: CreateFunctionInput! ): CreateFunctionPayload - """Creates a single `ViewTable`.""" - createViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateViewTableInput! - ): CreateViewTablePayload - """Creates a single `ApiSchema`.""" createApiSchema( """ @@ -12512,6 +12745,14 @@ type Mutation { input: CreateSiteThemeInput! ): CreateSiteThemePayload + """Creates a single `ViewTable`.""" + createViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateViewTableInput! + ): CreateViewTablePayload + """Creates a single `ViewRule`.""" createViewRule( """ @@ -12664,29 +12905,29 @@ type Mutation { input: CreatePartitionInput! ): CreatePartitionPayload - """Creates a single `SqlAction`.""" - createSqlAction( + """Creates a single `CompositeType`.""" + createCompositeType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateSqlActionInput! - ): CreateSqlActionPayload + input: CreateCompositeTypeInput! + ): CreateCompositeTypePayload - """Creates a single `DatabaseSetting`.""" - createDatabaseSetting( + """Creates a single `Enum`.""" + createEnum( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateDatabaseSettingInput! - ): CreateDatabaseSettingPayload + input: CreateEnumInput! + ): CreateEnumPayload - """Creates a single `Enum`.""" - createEnum( + """Creates a single `SqlAction`.""" + createSqlAction( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateEnumInput! - ): CreateEnumPayload + input: CreateSqlActionInput! + ): CreateSqlActionPayload """Creates a single `View`.""" createView( @@ -12696,6 +12937,14 @@ type Mutation { input: CreateViewInput! ): CreateViewPayload + """Creates a single `DatabaseSetting`.""" + createDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateDatabaseSettingInput! + ): CreateDatabaseSettingPayload + """Creates a single `ApiSetting`.""" createApiSetting( """ @@ -12712,22 +12961,6 @@ type Mutation { input: CreateDatabaseTransferInput! ): CreateDatabaseTransferPayload - """Creates a single `App`.""" - createApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInput! - ): CreateAppPayload - - """Creates a single `Site`.""" - createSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteInput! - ): CreateSitePayload - """Creates a single `PrimaryKeyConstraint`.""" createPrimaryKeyConstraint( """ @@ -12776,6 +13009,22 @@ type Mutation { input: CreatePolicyInput! ): CreatePolicyPayload + """Creates a single `App`.""" + createApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInput! + ): CreateAppPayload + + """Creates a single `Site`.""" + createSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteInput! + ): CreateSitePayload + """Creates a single `Schema`.""" createSchema( """ @@ -12792,14 +13041,6 @@ type Mutation { input: CreateIndexInput! ): CreateIndexPayload - """Creates a single `EmbeddingChunk`.""" - createEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmbeddingChunkInput! - ): CreateEmbeddingChunkPayload - """Creates a single `ForeignKeyConstraint`.""" createForeignKeyConstraint( """ @@ -12808,6 +13049,14 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload + """Creates a single `EmbeddingChunk`.""" + createEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmbeddingChunkInput! + ): CreateEmbeddingChunkPayload + """Creates a single `WebauthnSetting`.""" createWebauthnSetting( """ @@ -12848,14 +13097,6 @@ type Mutation { input: UpdateFunctionInput! ): UpdateFunctionPayload - """Updates a single `ViewTable` using a unique key and a patch.""" - updateViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateViewTableInput! - ): UpdateViewTablePayload - """Updates a single `ApiSchema` using a unique key and a patch.""" updateApiSchema( """ @@ -12872,6 +13113,14 @@ type Mutation { input: UpdateSiteThemeInput! ): UpdateSiteThemePayload + """Updates a single `ViewTable` using a unique key and a patch.""" + updateViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateViewTableInput! + ): UpdateViewTablePayload + """Updates a single `ViewRule` using a unique key and a patch.""" updateViewRule( """ @@ -13016,13 +13265,13 @@ type Mutation { input: UpdatePartitionInput! ): UpdatePartitionPayload - """Updates a single `DatabaseSetting` using a unique key and a patch.""" - updateDatabaseSetting( + """Updates a single `CompositeType` using a unique key and a patch.""" + updateCompositeType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDatabaseSettingInput! - ): UpdateDatabaseSettingPayload + input: UpdateCompositeTypeInput! + ): UpdateCompositeTypePayload """Updates a single `Enum` using a unique key and a patch.""" updateEnum( @@ -13040,6 +13289,14 @@ type Mutation { input: UpdateViewInput! ): UpdateViewPayload + """Updates a single `DatabaseSetting` using a unique key and a patch.""" + updateDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateDatabaseSettingInput! + ): UpdateDatabaseSettingPayload + """Updates a single `ApiSetting` using a unique key and a patch.""" updateApiSetting( """ @@ -13056,22 +13313,6 @@ type Mutation { input: UpdateDatabaseTransferInput! ): UpdateDatabaseTransferPayload - """Updates a single `App` using a unique key and a patch.""" - updateApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInput! - ): UpdateAppPayload - - """Updates a single `Site` using a unique key and a patch.""" - updateSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteInput! - ): UpdateSitePayload - """ Updates a single `PrimaryKeyConstraint` using a unique key and a patch. """ @@ -13122,6 +13363,22 @@ type Mutation { input: UpdatePolicyInput! ): UpdatePolicyPayload + """Updates a single `App` using a unique key and a patch.""" + updateApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInput! + ): UpdateAppPayload + + """Updates a single `Site` using a unique key and a patch.""" + updateSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteInput! + ): UpdateSitePayload + """Updates a single `Schema` using a unique key and a patch.""" updateSchema( """ @@ -13138,14 +13395,6 @@ type Mutation { input: UpdateIndexInput! ): UpdateIndexPayload - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" - updateEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmbeddingChunkInput! - ): UpdateEmbeddingChunkPayload - """ Updates a single `ForeignKeyConstraint` using a unique key and a patch. """ @@ -13156,6 +13405,14 @@ type Mutation { input: UpdateForeignKeyConstraintInput! ): UpdateForeignKeyConstraintPayload + """Updates a single `EmbeddingChunk` using a unique key and a patch.""" + updateEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmbeddingChunkInput! + ): UpdateEmbeddingChunkPayload + """Updates a single `WebauthnSetting` using a unique key and a patch.""" updateWebauthnSetting( """ @@ -13188,14 +13445,6 @@ type Mutation { input: DeleteFunctionInput! ): DeleteFunctionPayload - """Deletes a single `ViewTable` using a unique key.""" - deleteViewTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteViewTableInput! - ): DeleteViewTablePayload - """Deletes a single `ApiSchema` using a unique key.""" deleteApiSchema( """ @@ -13212,6 +13461,14 @@ type Mutation { input: DeleteSiteThemeInput! ): DeleteSiteThemePayload + """Deletes a single `ViewTable` using a unique key.""" + deleteViewTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteViewTableInput! + ): DeleteViewTablePayload + """Deletes a single `ViewRule` using a unique key.""" deleteViewRule( """ @@ -13356,13 +13613,13 @@ type Mutation { input: DeletePartitionInput! ): DeletePartitionPayload - """Deletes a single `DatabaseSetting` using a unique key.""" - deleteDatabaseSetting( + """Deletes a single `CompositeType` using a unique key.""" + deleteCompositeType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteDatabaseSettingInput! - ): DeleteDatabaseSettingPayload + input: DeleteCompositeTypeInput! + ): DeleteCompositeTypePayload """Deletes a single `Enum` using a unique key.""" deleteEnum( @@ -13380,6 +13637,14 @@ type Mutation { input: DeleteViewInput! ): DeleteViewPayload + """Deletes a single `DatabaseSetting` using a unique key.""" + deleteDatabaseSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteDatabaseSettingInput! + ): DeleteDatabaseSettingPayload + """Deletes a single `ApiSetting` using a unique key.""" deleteApiSetting( """ @@ -13396,22 +13661,6 @@ type Mutation { input: DeleteDatabaseTransferInput! ): DeleteDatabaseTransferPayload - """Deletes a single `App` using a unique key.""" - deleteApp( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInput! - ): DeleteAppPayload - - """Deletes a single `Site` using a unique key.""" - deleteSite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteInput! - ): DeleteSitePayload - """Deletes a single `PrimaryKeyConstraint` using a unique key.""" deletePrimaryKeyConstraint( """ @@ -13460,6 +13709,22 @@ type Mutation { input: DeletePolicyInput! ): DeletePolicyPayload + """Deletes a single `App` using a unique key.""" + deleteApp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInput! + ): DeleteAppPayload + + """Deletes a single `Site` using a unique key.""" + deleteSite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteInput! + ): DeleteSitePayload + """Deletes a single `Schema` using a unique key.""" deleteSchema( """ @@ -13476,14 +13741,6 @@ type Mutation { input: DeleteIndexInput! ): DeleteIndexPayload - """Deletes a single `EmbeddingChunk` using a unique key.""" - deleteEmbeddingChunk( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmbeddingChunkInput! - ): DeleteEmbeddingChunkPayload - """Deletes a single `ForeignKeyConstraint` using a unique key.""" deleteForeignKeyConstraint( """ @@ -13492,6 +13749,14 @@ type Mutation { input: DeleteForeignKeyConstraintInput! ): DeleteForeignKeyConstraintPayload + """Deletes a single `EmbeddingChunk` using a unique key.""" + deleteEmbeddingChunk( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmbeddingChunkInput! + ): DeleteEmbeddingChunkPayload + """Deletes a single `WebauthnSetting` using a unique key.""" deleteWebauthnSetting( """ @@ -13836,87 +14101,44 @@ input FunctionInput { name: String! } -"""The output of our create `ViewTable` mutation.""" -type CreateViewTablePayload { +"""The output of our create `ApiSchema` mutation.""" +type CreateApiSchemaPayload { """ The 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 `ViewTable` that was created by this mutation.""" - viewTable: ViewTable + """The `ApiSchema` that was created by this mutation.""" + apiSchema: ApiSchema """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge } -"""All input for the create `ViewTable` mutation.""" -input CreateViewTableInput { +"""All input for the create `ApiSchema` mutation.""" +input CreateApiSchemaInput { """ 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 `ViewTable` to be created by this mutation.""" - viewTable: ViewTableInput! + """The `ApiSchema` to be created by this mutation.""" + apiSchema: ApiSchemaInput! } -"""An input for mutations affecting `ViewTable`""" -input ViewTableInput { - id: UUID - viewId: UUID! - tableId: UUID! - joinOrder: Int -} - -"""The output of our create `ApiSchema` mutation.""" -type CreateApiSchemaPayload { - """ - The 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 `ApiSchema` that was created by this mutation.""" - apiSchema: ApiSchema - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge -} - -"""All input for the create `ApiSchema` mutation.""" -input CreateApiSchemaInput { - """ - 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 `ApiSchema` to be created by this mutation.""" - apiSchema: ApiSchemaInput! -} - -"""An input for mutations affecting `ApiSchema`""" -input ApiSchemaInput { - """Unique identifier for this API-schema mapping""" +"""An input for mutations affecting `ApiSchema`""" +input ApiSchemaInput { + """Unique identifier for this API-schema mapping""" id: UUID """Reference to the metaschema database""" @@ -13981,6 +14203,50 @@ input SiteThemeInput { theme: JSON! } +"""The output of our create `ViewTable` mutation.""" +type CreateViewTablePayload { + """ + The 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 `ViewTable` that was created by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the create `ViewTable` mutation.""" +input CreateViewTableInput { + """ + 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 `ViewTable` to be created by this mutation.""" + viewTable: ViewTableInput! +} + +"""An input for mutations affecting `ViewTable`""" +input ViewTableInput { + id: UUID + databaseId: UUID + viewId: UUID! + tableId: UUID! + joinOrder: Int +} + """The output of our create `ViewRule` mutation.""" type CreateViewRulePayload { """ @@ -14976,6 +15242,106 @@ input PartitionInput { updatedAt: Datetime } +"""The output of our create `CompositeType` mutation.""" +type CreateCompositeTypePayload { + """ + The 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 `CompositeType` that was created by this mutation.""" + compositeType: CompositeType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `CompositeType`. May be used by Relay 1.""" + compositeTypeEdge( + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): CompositeTypeEdge +} + +"""All input for the create `CompositeType` mutation.""" +input CreateCompositeTypeInput { + """ + 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 `CompositeType` to be created by this mutation.""" + compositeType: CompositeTypeInput! +} + +"""An input for mutations affecting `CompositeType`""" +input CompositeTypeInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + attributes: JSON + smartTags: JSON + category: ObjectCategory + scope: Int + tags: [String] +} + +"""The output of our create `Enum` mutation.""" +type CreateEnumPayload { + """ + The 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 `Enum` that was created by this mutation.""" + enum: Enum + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Enum`. May be used by Relay 1.""" + enumEdge( + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] + ): EnumEdge +} + +"""All input for the create `Enum` mutation.""" +input CreateEnumInput { + """ + 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 `Enum` to be created by this mutation.""" + enum: EnumInput! +} + +"""An input for mutations affecting `Enum`""" +input EnumInput { + id: UUID + databaseId: UUID! + schemaId: UUID! + name: String! + label: String + description: String + values: [String] + smartTags: JSON + category: ObjectCategory + scope: Int + tags: [String] +} + """The output of our create `SqlAction` mutation.""" type CreateSqlActionPayload { """ @@ -15022,6 +15388,60 @@ input SqlActionInput { actorId: UUID } +"""The output of our create `View` mutation.""" +type CreateViewPayload { + """ + The 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 `View` that was created by this mutation.""" + view: View + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `View`. May be used by Relay 1.""" + viewEdge( + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewEdge +} + +"""All input for the create `View` mutation.""" +input CreateViewInput { + """ + 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 `View` to be created by this mutation.""" + view: ViewInput! +} + +"""An input for mutations affecting `View`""" +input ViewInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + tableId: UUID + viewType: String! + data: JSON + filterType: String + filterData: JSON + securityInvoker: Boolean + isReadOnly: Boolean + smartTags: JSON + category: ObjectCategory + scope: Int + tags: [String] +} + """The output of our create `DatabaseSetting` mutation.""" type CreateDatabaseSettingPayload { """ @@ -15115,153 +15535,47 @@ input DatabaseSettingInput { options: JSON } -"""The output of our create `Enum` mutation.""" -type CreateEnumPayload { +"""The output of our create `ApiSetting` mutation.""" +type CreateApiSettingPayload { """ The 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 `Enum` that was created by this mutation.""" - enum: Enum + """The `ApiSetting` that was created by this mutation.""" + apiSetting: ApiSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Enum`. May be used by Relay 1.""" - enumEdge( - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!]! = [PRIMARY_KEY_ASC] - ): EnumEdge + """An edge for our `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge } -"""All input for the create `Enum` mutation.""" -input CreateEnumInput { +"""All input for the create `ApiSetting` mutation.""" +input CreateApiSettingInput { """ 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 `Enum` to be created by this mutation.""" - enum: EnumInput! + """The `ApiSetting` to be created by this mutation.""" + apiSetting: ApiSettingInput! } -"""An input for mutations affecting `Enum`""" -input EnumInput { +"""An input for mutations affecting `ApiSetting`""" +input ApiSettingInput { + """Unique identifier for this API settings record""" id: UUID - databaseId: UUID! - schemaId: UUID! - name: String! - label: String - description: String - values: [String] - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] -} - -"""The output of our create `View` mutation.""" -type CreateViewPayload { - """ - The 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 `View` that was created by this mutation.""" - view: View - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `View`. May be used by Relay 1.""" - viewEdge( - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewEdge -} - -"""All input for the create `View` mutation.""" -input CreateViewInput { - """ - 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 `View` to be created by this mutation.""" - view: ViewInput! -} - -"""An input for mutations affecting `View`""" -input ViewInput { - id: UUID - databaseId: UUID - schemaId: UUID! - name: String! - tableId: UUID - viewType: String! - data: JSON - filterType: String - filterData: JSON - securityInvoker: Boolean - isReadOnly: Boolean - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] -} - -"""The output of our create `ApiSetting` mutation.""" -type CreateApiSettingPayload { - """ - The 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 `ApiSetting` that was created by this mutation.""" - apiSetting: ApiSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge -} - -"""All input for the create `ApiSetting` mutation.""" -input CreateApiSettingInput { - """ - 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 `ApiSetting` to be created by this mutation.""" - apiSetting: ApiSettingInput! -} - -"""An input for mutations affecting `ApiSetting`""" -input ApiSettingInput { - """Unique identifier for this API settings record""" - id: UUID - - """Reference to the metaschema database""" + + """Reference to the metaschema database""" databaseId: UUID! """API these settings override for""" @@ -15386,138 +15700,6 @@ input DatabaseTransferInput { completedAt: Datetime } -"""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 `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 `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 `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 `App` to be created by this mutation.""" - app: AppInput! -} - -"""An input for mutations affecting `App`""" -input AppInput { - """Unique identifier for this app""" - id: UUID - - """Reference to the metaschema database this app belongs to""" - databaseId: UUID! - - """Site this app is associated with (one app per site)""" - siteId: UUID! - - """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 -} - -"""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 `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 `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 `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 `Site` to be created by this mutation.""" - site: SiteInput! -} - -"""An input for mutations affecting `Site`""" -input SiteInput { - """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 -} - """The output of our create `PrimaryKeyConstraint` mutation.""" type CreatePrimaryKeyConstraintPayload { """ @@ -15563,7 +15745,6 @@ input PrimaryKeyConstraintInput { fieldIds: [UUID]! smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -15615,7 +15796,6 @@ input TriggerInput { functionName: String smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -15668,7 +15848,6 @@ input CheckConstraintInput { expr: JSON smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -15721,7 +15900,6 @@ input UniqueConstraintInput { type: String fieldIds: [UUID]! category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -15775,7 +15953,6 @@ input SpatialRelationInput { operator: String! paramName: String category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -15831,37 +16008,168 @@ input PolicyInput { data: JSON 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 `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 `Schema` that was created by this mutation.""" - schema: Schema + """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 `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 `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 `Schema` mutation.""" +"""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 `App` to be created by this mutation.""" + app: AppInput! +} + +"""An input for mutations affecting `App`""" +input AppInput { + """Unique identifier for this app""" + id: UUID + + """Reference to the metaschema database this app belongs to""" + databaseId: UUID! + + """Site this app is associated with (one app per site)""" + siteId: UUID! + + """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 +} + +"""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 `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 `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 `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 `Site` to be created by this mutation.""" + site: SiteInput! +} + +"""An input for mutations affecting `Site`""" +input SiteInput { + """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 +} + +"""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 + + """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 @@ -15883,7 +16191,6 @@ input SchemaInput { description: String smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] isPublic: Boolean @@ -15942,7 +16249,62 @@ input IndexInput { opClasses: [String] smartTags: JSON category: ObjectCategory - module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""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 `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 `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 `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 `ForeignKeyConstraint` to be created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraintInput! +} + +"""An input for mutations affecting `ForeignKeyConstraint`""" +input ForeignKeyConstraintInput { + 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 scope: Int tags: [String] createdAt: Datetime @@ -16009,63 +16371,6 @@ input EmbeddingChunkInput { updatedAt: Datetime } -"""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 `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 `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 `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 `ForeignKeyConstraint` to be created by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraintInput! -} - -"""An input for mutations affecting `ForeignKeyConstraint`""" -input ForeignKeyConstraintInput { - 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 -} - """The output of our create `WebauthnSetting` mutation.""" type CreateWebauthnSettingPayload { """ @@ -16270,7 +16575,6 @@ input FieldInput { max: Float tags: [String] category: ObjectCategory - module: String scope: Int createdAt: Datetime updatedAt: Datetime @@ -16321,7 +16625,6 @@ input TableInput { description: String smartTags: JSON category: ObjectCategory - module: String scope: Int useRls: Boolean timestamps: Boolean @@ -16333,9 +16636,9 @@ input TableInput { partitionStrategy: String partitionKeyNames: [String] partitionKeyTypes: [String] - inheritsId: UUID createdAt: Datetime updatedAt: Datetime + inheritsId: UUID } """The output of our update `Function` mutation.""" @@ -16386,64 +16689,16 @@ input FunctionPatch { name: String } -"""The output of our update `ViewTable` mutation.""" -type UpdateViewTablePayload { +"""The output of our update `ApiSchema` mutation.""" +type UpdateApiSchemaPayload { """ The 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 `ViewTable` that was updated by this mutation.""" - viewTable: ViewTable - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge -} - -"""All input for the `updateViewTable` mutation.""" -input UpdateViewTableInput { - """ - 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 `ViewTable` being updated. - """ - viewTablePatch: ViewTablePatch! -} - -""" -Represents an update to a `ViewTable`. Fields that are set will be updated. -""" -input ViewTablePatch { - id: UUID - viewId: UUID - tableId: UUID - joinOrder: Int -} - -"""The output of our update `ApiSchema` mutation.""" -type UpdateApiSchemaPayload { - """ - The 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 `ApiSchema` that was updated by this mutation.""" - apiSchema: ApiSchema + """The `ApiSchema` that was updated by this mutation.""" + apiSchema: ApiSchema """ Our root query field type. Allows us to run any query from our mutation payload. @@ -16550,6 +16805,55 @@ input SiteThemePatch { theme: JSON } +"""The output of our update `ViewTable` mutation.""" +type UpdateViewTablePayload { + """ + The 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 `ViewTable` that was updated by this mutation.""" + viewTable: ViewTable + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge +} + +"""All input for the `updateViewTable` mutation.""" +input UpdateViewTableInput { + """ + 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 `ViewTable` being updated. + """ + viewTablePatch: ViewTablePatch! +} + +""" +Represents an update to a `ViewTable`. Fields that are set will be updated. +""" +input ViewTablePatch { + id: UUID + databaseId: UUID + viewId: UUID + tableId: UUID + joinOrder: Int +} + """The output of our update `ViewRule` mutation.""" type UpdateViewRulePayload { """ @@ -17619,104 +17923,59 @@ input PartitionPatch { updatedAt: Datetime } -"""The output of our update `DatabaseSetting` mutation.""" -type UpdateDatabaseSettingPayload { +"""The output of our update `CompositeType` mutation.""" +type UpdateCompositeTypePayload { """ The 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 `DatabaseSetting` that was updated by this mutation.""" - databaseSetting: DatabaseSetting + """The `CompositeType` that was updated by this mutation.""" + compositeType: CompositeType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge + """An edge for our `CompositeType`. May be used by Relay 1.""" + compositeTypeEdge( + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): CompositeTypeEdge } -"""All input for the `updateDatabaseSetting` mutation.""" -input UpdateDatabaseSettingInput { +"""All input for the `updateCompositeType` mutation.""" +input UpdateCompositeTypeInput { """ 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 settings record""" id: UUID! """ - An object where the defined keys will be set on the `DatabaseSetting` being updated. + An object where the defined keys will be set on the `CompositeType` being updated. """ - databaseSettingPatch: DatabaseSettingPatch! + compositeTypePatch: CompositeTypePatch! } """ -Represents an update to a `DatabaseSetting`. Fields that are set will be updated. +Represents an update to a `CompositeType`. Fields that are set will be updated. """ -input DatabaseSettingPatch { - """Unique identifier for this settings record""" +input CompositeTypePatch { id: UUID - - """Reference to the metaschema database these settings apply to""" databaseId: UUID - - """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" - enableAggregates: Boolean - - """Enable PostGIS spatial types and operators in the GraphQL API""" - enablePostgis: Boolean - - """ - Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API - """ - enableSearch: Boolean - - """Enable direct (multipart) file upload mutations in the GraphQL API""" - enableDirectUploads: Boolean - - """Enable presigned URL upload flow for S3/MinIO storage""" - enablePresignedUploads: Boolean - - """Enable many-to-many relationship queries in the GraphQL API""" - enableManyToMany: Boolean - - """Enable connection filter (where argument) in the GraphQL API""" - enableConnectionFilter: Boolean - - """Enable ltree hierarchical data type support in the GraphQL API""" - enableLtree: Boolean - - """Enable LLM/AI integration features in the GraphQL API""" - enableLlm: Boolean - - """ - Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API - """ - enableRealtime: Boolean - - """ - Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API - """ - enableBulk: Boolean - - """ - Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API - """ - enableI18N: Boolean - - """ - Extensible JSON for additional settings that do not have dedicated columns - """ - options: JSON + schemaId: UUID + name: String + label: String + description: String + attributes: JSON + smartTags: JSON + category: ObjectCategory + scope: Int + tags: [String] } """The output of our update `Enum` mutation.""" @@ -17768,7 +18027,6 @@ input EnumPatch { values: [String] smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] } @@ -17826,343 +18084,285 @@ input ViewPatch { isReadOnly: Boolean smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] } -"""The output of our update `ApiSetting` mutation.""" -type UpdateApiSettingPayload { +"""The output of our update `DatabaseSetting` mutation.""" +type UpdateDatabaseSettingPayload { """ The 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 `ApiSetting` that was updated by this mutation.""" - apiSetting: ApiSetting + """The `DatabaseSetting` that was updated by this mutation.""" + databaseSetting: DatabaseSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge } -"""All input for the `updateApiSetting` mutation.""" -input UpdateApiSettingInput { +"""All input for the `updateDatabaseSetting` mutation.""" +input UpdateDatabaseSettingInput { """ 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 settings record""" + """Unique identifier for this settings record""" id: UUID! """ - An object where the defined keys will be set on the `ApiSetting` being updated. + An object where the defined keys will be set on the `DatabaseSetting` being updated. """ - apiSettingPatch: ApiSettingPatch! + databaseSettingPatch: DatabaseSettingPatch! } """ -Represents an update to a `ApiSetting`. Fields that are set will be updated. +Represents an update to a `DatabaseSetting`. Fields that are set will be updated. """ -input ApiSettingPatch { - """Unique identifier for this API settings record""" +input DatabaseSettingPatch { + """Unique identifier for this settings record""" id: UUID - """Reference to the metaschema database""" + """Reference to the metaschema database these settings apply to""" databaseId: UUID - """API these settings override for""" - apiId: UUID - - """ - Override: enable aggregate queries (NULL = inherit from database_settings) - """ + """Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API""" enableAggregates: Boolean - """ - Override: enable PostGIS spatial types (NULL = inherit from database_settings) - """ + """Enable PostGIS spatial types and operators in the GraphQL API""" enablePostgis: Boolean """ - Override: enable unified search (NULL = inherit from database_settings) + Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API """ enableSearch: Boolean - """ - Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) - """ + """Enable direct (multipart) file upload mutations in the GraphQL API""" enableDirectUploads: Boolean - """ - Override: enable presigned URL upload flow (NULL = inherit from database_settings) - """ + """Enable presigned URL upload flow for S3/MinIO storage""" enablePresignedUploads: Boolean - """ - Override: enable many-to-many relationships (NULL = inherit from database_settings) - """ + """Enable many-to-many relationship queries in the GraphQL API""" enableManyToMany: Boolean - """ - Override: enable connection filter (NULL = inherit from database_settings) - """ + """Enable connection filter (where argument) in the GraphQL API""" enableConnectionFilter: Boolean - """ - Override: enable ltree hierarchical data type (NULL = inherit from database_settings) - """ + """Enable ltree hierarchical data type support in the GraphQL API""" enableLtree: Boolean - """ - Override: enable LLM/AI integration features (NULL = inherit from database_settings) - """ + """Enable LLM/AI integration features in the GraphQL API""" enableLlm: Boolean """ - Override: enable realtime subscriptions (NULL = inherit from database_settings) + Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API """ enableRealtime: Boolean """ - Override: enable bulk mutations (NULL = inherit from database_settings) + Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API """ enableBulk: Boolean """ - Override: enable internationalization plugin (NULL = inherit from database_settings) + Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API """ enableI18N: Boolean """ - Extensible JSON for additional per-API settings that do not have dedicated columns + Extensible JSON for additional settings that do not have dedicated columns """ options: JSON } -"""The output of our update `DatabaseTransfer` mutation.""" -type UpdateDatabaseTransferPayload { +"""The output of our update `ApiSetting` mutation.""" +type UpdateApiSettingPayload { """ The 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 updated by this mutation.""" - databaseTransfer: DatabaseTransfer + """The `ApiSetting` that was updated by this mutation.""" + apiSetting: ApiSetting """ 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 `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge } -"""All input for the `updateDatabaseTransfer` mutation.""" -input UpdateDatabaseTransferInput { +"""All input for the `updateApiSetting` mutation.""" +input UpdateApiSettingInput { """ 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 settings record""" id: UUID! """ - An object where the defined keys will be set on the `DatabaseTransfer` being updated. + An object where the defined keys will be set on the `ApiSetting` being updated. """ - databaseTransferPatch: DatabaseTransferPatch! + apiSettingPatch: ApiSettingPatch! } """ -Represents an update to a `DatabaseTransfer`. Fields that are set will be updated. +Represents an update to a `ApiSetting`. Fields that are set will be updated. """ -input DatabaseTransferPatch { +input ApiSettingPatch { + """Unique identifier for this API settings record""" id: UUID + + """Reference to the metaschema database""" 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 -} -"""The output of our update `App` mutation.""" -type UpdateAppPayload { + """API these settings override for""" + apiId: UUID + """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Override: enable aggregate queries (NULL = inherit from database_settings) """ - clientMutationId: String - - """The `App` that was updated by this mutation.""" - app: App + enableAggregates: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + Override: enable PostGIS spatial types (NULL = inherit from database_settings) """ - 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 -} + enablePostgis: Boolean -"""All input for the `updateApp` mutation.""" -input UpdateAppInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Override: enable unified search (NULL = inherit from database_settings) """ - clientMutationId: String - - """Unique identifier for this app""" - id: UUID! + enableSearch: Boolean """ - An object where the defined keys will be set on the `App` being updated. + Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) """ - appPatch: AppPatch! -} - -"""Represents an update to a `App`. Fields that are set will be updated.""" -input AppPatch { - """Unique identifier for this app""" - id: UUID + enableDirectUploads: Boolean - """Reference to the metaschema database this app belongs to""" - databaseId: UUID + """ + Override: enable presigned URL upload flow (NULL = inherit from database_settings) + """ + enablePresignedUploads: Boolean - """Site this app is associated with (one app per site)""" - siteId: UUID + """ + Override: enable many-to-many relationships (NULL = inherit from database_settings) + """ + enableManyToMany: Boolean - """Display name of the app""" - name: String + """ + Override: enable connection filter (NULL = inherit from database_settings) + """ + enableConnectionFilter: Boolean - """App icon or promotional image""" - appImage: ConstructiveInternalTypeImage + """ + Override: enable ltree hierarchical data type (NULL = inherit from database_settings) + """ + enableLtree: Boolean - """URL to the Apple App Store listing""" - appStoreLink: ConstructiveInternalTypeUrl + """ + Override: enable LLM/AI integration features (NULL = inherit from database_settings) + """ + enableLlm: Boolean - """Apple App Store application identifier""" - appStoreId: String + """ + Override: enable realtime subscriptions (NULL = inherit from database_settings) + """ + enableRealtime: Boolean """ - Apple App ID prefix (Team ID) for universal links and associated domains + Override: enable bulk mutations (NULL = inherit from database_settings) """ - appIdPrefix: String + enableBulk: Boolean - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl + """ + Override: enable internationalization plugin (NULL = inherit from database_settings) + """ + enableI18N: Boolean - """Upload for App icon or promotional image""" - appImageUpload: Upload + """ + Extensible JSON for additional per-API settings that do not have dedicated columns + """ + options: JSON } -"""The output of our update `Site` mutation.""" -type UpdateSitePayload { +"""The output of our update `DatabaseTransfer` mutation.""" +type UpdateDatabaseTransferPayload { """ The 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 `DatabaseTransfer` that was updated 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 `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 `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 `updateSite` mutation.""" -input UpdateSiteInput { +"""All input for the `updateDatabaseTransfer` mutation.""" +input UpdateDatabaseTransferInput { """ 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 `DatabaseTransfer` being updated. """ - sitePatch: SitePatch! + databaseTransferPatch: DatabaseTransferPatch! } -"""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 `DatabaseTransfer`. Fields that are set will be updated. +""" +input DatabaseTransferPatch { 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 + targetOwnerId: UUID + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID + notes: String + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime } """The output of our update `PrimaryKeyConstraint` mutation.""" @@ -18215,7 +18415,6 @@ input PrimaryKeyConstraintPatch { fieldIds: [UUID] smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -18272,7 +18471,6 @@ input TriggerPatch { functionName: String smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -18330,7 +18528,6 @@ input CheckConstraintPatch { expr: JSON smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -18388,7 +18585,6 @@ input UniqueConstraintPatch { type: String fieldIds: [UUID] category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime @@ -18447,72 +18643,227 @@ input SpatialRelationPatch { operator: String paramName: String category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime updatedAt: Datetime } -"""The output of our update `Policy` mutation.""" -type UpdatePolicyPayload { +"""The output of our update `Policy` mutation.""" +type UpdatePolicyPayload { + """ + The 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 updated 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 `updatePolicy` mutation.""" +input UpdatePolicyInput { + """ + 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 `Policy` being updated. + """ + policyPatch: PolicyPatch! +} + +""" +Represents an update to a `Policy`. Fields that are set will be updated. +""" +input PolicyPatch { + id: UUID + databaseId: UUID + tableId: UUID + name: String + granteeName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON + smartTags: JSON + category: ObjectCategory + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `App` mutation.""" +type UpdateAppPayload { + """ + The 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 updated 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 `updateApp` mutation.""" +input UpdateAppInput { + """ + 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! + + """ + 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.""" +input AppPatch { + """Unique identifier for this app""" + id: UUID + + """Reference to the metaschema database this app belongs to""" + databaseId: UUID + + """Site this app is associated with (one app per site)""" + siteId: UUID + + """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: 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 `Policy` that was updated by this mutation.""" - policy: Policy + """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 `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge + """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 `updatePolicy` mutation.""" -input UpdatePolicyInput { +"""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 `Policy` being updated. + An object where the defined keys will be set on the `Site` being updated. """ - policyPatch: PolicyPatch! + sitePatch: SitePatch! } -""" -Represents an update to a `Policy`. Fields that are set will be updated. -""" -input PolicyPatch { +"""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 - 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 + + """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 `Schema` mutation.""" @@ -18565,7 +18916,6 @@ input SchemaPatch { description: String smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] isPublic: Boolean @@ -18629,38 +18979,37 @@ input IndexPatch { opClasses: [String] smartTags: JSON category: ObjectCategory - module: String scope: Int tags: [String] createdAt: Datetime updatedAt: Datetime } -"""The output of our update `EmbeddingChunk` mutation.""" -type UpdateEmbeddingChunkPayload { +"""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 `EmbeddingChunk` that was updated by this mutation.""" - embeddingChunk: EmbeddingChunk + """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 `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 `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 `updateEmbeddingChunk` mutation.""" -input UpdateEmbeddingChunkInput { +"""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. @@ -18669,63 +19018,59 @@ input UpdateEmbeddingChunkInput { id: UUID! """ - An object where the defined keys will be set on the `EmbeddingChunk` being updated. + An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. """ - embeddingChunkPatch: EmbeddingChunkPatch! + foreignKeyConstraintPatch: ForeignKeyConstraintPatch! } """ -Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. +Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. """ -input EmbeddingChunkPatch { +input ForeignKeyConstraintPatch { 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 - searchIndexes: JSON - enqueueChunkingJob: Boolean - chunkingTaskName: String - embeddingModel: String - embeddingProvider: String - parentFkFieldId: UUID + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID] + refTableId: UUID + refFieldIds: [UUID] + deleteAction: String + updateAction: String + category: ObjectCategory + scope: Int + tags: [String] createdAt: Datetime updatedAt: Datetime } -"""The output of our update `ForeignKeyConstraint` mutation.""" -type UpdateForeignKeyConstraintPayload { +"""The output of our update `EmbeddingChunk` mutation.""" +type UpdateEmbeddingChunkPayload { """ The 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 `EmbeddingChunk` that was updated 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 `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 `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 `updateForeignKeyConstraint` mutation.""" -input UpdateForeignKeyConstraintInput { +"""All input for the `updateEmbeddingChunk` mutation.""" +input UpdateEmbeddingChunkInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -18734,31 +19079,34 @@ 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 `EmbeddingChunk` being updated. """ - foreignKeyConstraintPatch: ForeignKeyConstraintPatch! + embeddingChunkPatch: EmbeddingChunkPatch! } """ -Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. +Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. """ -input ForeignKeyConstraintPatch { +input EmbeddingChunkPatch { 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] + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + searchIndexes: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + embeddingModel: String + embeddingProvider: String + parentFkFieldId: UUID createdAt: Datetime updatedAt: Datetime } @@ -18933,7 +19281,6 @@ input FieldPatch { max: Float tags: [String] category: ObjectCategory - module: String scope: Int createdAt: Datetime updatedAt: Datetime @@ -18989,7 +19336,6 @@ input TablePatch { description: String smartTags: JSON category: ObjectCategory - module: String scope: Int useRls: Boolean timestamps: Boolean @@ -19001,9 +19347,9 @@ input TablePatch { partitionStrategy: String partitionKeyNames: [String] partitionKeyTypes: [String] - inheritsId: UUID createdAt: Datetime updatedAt: Datetime + inheritsId: UUID } """The output of our delete `Function` mutation.""" @@ -19039,106 +19385,106 @@ input DeleteFunctionInput { id: UUID! } -"""The output of our delete `ViewTable` mutation.""" -type DeleteViewTablePayload { +"""The output of our delete `ApiSchema` mutation.""" +type DeleteApiSchemaPayload { """ The 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 `ViewTable` that was deleted by this mutation.""" - viewTable: ViewTable + """The `ApiSchema` that was deleted by this mutation.""" + apiSchema: ApiSchema """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ViewTable`. May be used by Relay 1.""" - viewTableEdge( - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] - ): ViewTableEdge + """An edge for our `ApiSchema`. May be used by Relay 1.""" + apiSchemaEdge( + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSchemaEdge } -"""All input for the `deleteViewTable` mutation.""" -input DeleteViewTableInput { +"""All input for the `deleteApiSchema` mutation.""" +input DeleteApiSchemaInput { """ 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-schema mapping""" id: UUID! } -"""The output of our delete `ApiSchema` mutation.""" -type DeleteApiSchemaPayload { +"""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 `ApiSchema` that was deleted by this mutation.""" - apiSchema: ApiSchema + """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 `ApiSchema`. May be used by Relay 1.""" - apiSchemaEdge( - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSchemaEdge + """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 `deleteApiSchema` mutation.""" -input DeleteApiSchemaInput { +"""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 API-schema mapping""" + """Unique identifier for this theme record""" id: UUID! } -"""The output of our delete `SiteTheme` mutation.""" -type DeleteSiteThemePayload { +"""The output of our delete `ViewTable` mutation.""" +type DeleteViewTablePayload { """ The 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 + """The `ViewTable` that was deleted by this mutation.""" + viewTable: ViewTable """ 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 + """An edge for our `ViewTable`. May be used by Relay 1.""" + viewTableEdge( + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!]! = [PRIMARY_KEY_ASC] + ): ViewTableEdge } -"""All input for the `deleteSiteTheme` mutation.""" -input DeleteSiteThemeInput { +"""All input for the `deleteViewTable` mutation.""" +input DeleteViewTableInput { """ 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! } @@ -19752,38 +20098,36 @@ input DeletePartitionInput { id: UUID! } -"""The output of our delete `DatabaseSetting` mutation.""" -type DeleteDatabaseSettingPayload { +"""The output of our delete `CompositeType` mutation.""" +type DeleteCompositeTypePayload { """ The 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 `DatabaseSetting` that was deleted by this mutation.""" - databaseSetting: DatabaseSetting + """The `CompositeType` that was deleted by this mutation.""" + compositeType: CompositeType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseSetting`. May be used by Relay 1.""" - databaseSettingEdge( - """The method to use when ordering `DatabaseSetting`.""" - orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseSettingEdge + """An edge for our `CompositeType`. May be used by Relay 1.""" + compositeTypeEdge( + """The method to use when ordering `CompositeType`.""" + orderBy: [CompositeTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): CompositeTypeEdge } -"""All input for the `deleteDatabaseSetting` mutation.""" -input DeleteDatabaseSettingInput { +"""All input for the `deleteCompositeType` mutation.""" +input DeleteCompositeTypeInput { """ 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 settings record""" id: UUID! } @@ -19853,141 +20197,106 @@ input DeleteViewInput { id: UUID! } -"""The output of our delete `ApiSetting` mutation.""" -type DeleteApiSettingPayload { +"""The output of our delete `DatabaseSetting` mutation.""" +type DeleteDatabaseSettingPayload { """ The 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 `ApiSetting` that was deleted by this mutation.""" - apiSetting: ApiSetting + """The `DatabaseSetting` that was deleted by this mutation.""" + databaseSetting: DatabaseSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ApiSetting`. May be used by Relay 1.""" - apiSettingEdge( - """The method to use when ordering `ApiSetting`.""" - orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiSettingEdge + """An edge for our `DatabaseSetting`. May be used by Relay 1.""" + databaseSettingEdge( + """The method to use when ordering `DatabaseSetting`.""" + orderBy: [DatabaseSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseSettingEdge } -"""All input for the `deleteApiSetting` mutation.""" -input DeleteApiSettingInput { +"""All input for the `deleteDatabaseSetting` mutation.""" +input DeleteDatabaseSettingInput { """ 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 settings record""" - id: UUID! -} - -"""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 `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 `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 `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. - """ - clientMutationId: String + """Unique identifier for this settings record""" id: UUID! } -"""The output of our delete `App` mutation.""" -type DeleteAppPayload { +"""The output of our delete `ApiSetting` mutation.""" +type DeleteApiSettingPayload { """ The 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 + """The `ApiSetting` that was deleted by this mutation.""" + apiSetting: ApiSetting """ 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 `ApiSetting`. May be used by Relay 1.""" + apiSettingEdge( + """The method to use when ordering `ApiSetting`.""" + orderBy: [ApiSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiSettingEdge } -"""All input for the `deleteApp` mutation.""" -input DeleteAppInput { +"""All input for the `deleteApiSetting` mutation.""" +input DeleteApiSettingInput { """ 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""" + """Unique identifier for this API settings record""" id: UUID! } -"""The output of our delete `Site` mutation.""" -type DeleteSitePayload { +"""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 `Site` that was deleted by this mutation.""" - site: Site + """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 `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 `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 `deleteSite` mutation.""" -input DeleteSiteInput { +"""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. """ clientMutationId: String - - """Unique identifier for this site""" id: UUID! } @@ -20189,6 +20498,76 @@ input DeletePolicyInput { 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 `Schema` mutation.""" type DeleteSchemaPayload { """ @@ -20255,31 +20634,31 @@ input DeleteIndexInput { id: UUID! } -"""The output of our delete `EmbeddingChunk` mutation.""" -type DeleteEmbeddingChunkPayload { +"""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 `EmbeddingChunk` that was deleted by this mutation.""" - embeddingChunk: EmbeddingChunk + """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 `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 `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 `deleteEmbeddingChunk` mutation.""" -input DeleteEmbeddingChunkInput { +"""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. @@ -20288,31 +20667,31 @@ input DeleteEmbeddingChunkInput { id: UUID! } -"""The output of our delete `ForeignKeyConstraint` mutation.""" -type DeleteForeignKeyConstraintPayload { +"""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 `ForeignKeyConstraint` that was deleted by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint + """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 `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 `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 `deleteForeignKeyConstraint` mutation.""" -input DeleteForeignKeyConstraintInput { +"""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. diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index c2dcd68a26..f90fa0afc6 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -64,8 +64,8 @@ type Query { orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] ): RoleTypeConnection - """Reads and enables pagination through a set of `CryptoAddress`.""" - cryptoAddresses( + """Reads and enables pagination through a set of `UserConnectedAccount`.""" + userConnectedAccounts( """Only read the first `n` values of the set.""" first: Int @@ -87,14 +87,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressFilter + where: UserConnectedAccountFilter - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection + """The method to use when ordering `UserConnectedAccount`.""" + orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] + ): UserConnectedAccountConnection - """Reads and enables pagination through a set of `PhoneNumber`.""" - phoneNumbers( + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( """Only read the first `n` values of the set.""" first: Int @@ -116,14 +116,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PhoneNumberFilter + where: CryptoAddressFilter - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection - """Reads and enables pagination through a set of `AuditLogAuth`.""" - auditLogAuths( + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( """Only read the first `n` values of the set.""" first: Int @@ -145,14 +145,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogAuthFilter + where: PhoneNumberFilter - """The method to use when ordering `AuditLogAuth`.""" - orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogAuthConnection + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection - """Reads and enables pagination through a set of `UserConnectedAccount`.""" - userConnectedAccounts( + """Reads and enables pagination through a set of `AuditLogAuth`.""" + auditLogAuths( """Only read the first `n` values of the set.""" first: Int @@ -174,11 +174,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserConnectedAccountFilter + where: AuditLogAuthFilter - """The method to use when ordering `UserConnectedAccount`.""" - orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] - ): UserConnectedAccountConnection + """The method to use when ordering `AuditLogAuth`.""" + orderBy: [AuditLogAuthOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogAuthConnection """Reads and enables pagination through a set of `Email`.""" emails( @@ -450,7 +450,7 @@ type User { 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. + Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. """ searchScore: Float } @@ -2918,6 +2918,18 @@ type Mutation { """ input: SignInCrossOriginInput! ): SignInCrossOriginPayload + signInSmsOtp( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignInSmsOtpInput! + ): SignInSmsOtpPayload + signUpSms( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SignUpSmsInput! + ): SignUpSmsPayload signUp( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2930,6 +2942,12 @@ type Mutation { """ input: SignInInput! ): SignInPayload + linkIdentity( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: LinkIdentityInput! + ): LinkIdentityPayload extendTokenExpires( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -2977,6 +2995,14 @@ type Mutation { input: CreateRoleTypeInput! ): CreateRoleTypePayload + """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 `CryptoAddress`.""" createCryptoAddress( """ @@ -3001,14 +3027,6 @@ type Mutation { input: CreateAuditLogAuthInput! ): CreateAuditLogAuthPayload - """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 `Email`.""" createEmail( """ @@ -3521,6 +3539,76 @@ input SignInCrossOriginInput { credentialKind: String } +"""The output of our `signInSmsOtp` mutation.""" +type SignInSmsOtpPayload { + """ + The 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: SignInSmsOtpRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignInSmsOtpRecord { + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime +} + +"""All input for the `signInSmsOtp` mutation.""" +input SignInSmsOtpInput { + """ + 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 + phone: String + code: String + credentialKind: String + rememberMe: Boolean + deviceToken: String +} + +"""The output of our `signUpSms` mutation.""" +type SignUpSmsPayload { + """ + The 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: SignUpSmsRecord + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +type SignUpSmsRecord { + userId: UUID + accessToken: String + accessTokenExpiresAt: Datetime +} + +"""All input for the `signUpSms` mutation.""" +input SignUpSmsInput { + """ + 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 + phone: String + code: String + credentialKind: String + rememberMe: Boolean + deviceToken: String +} + """The output of our `signUp` mutation.""" type SignUpPayload { """ @@ -3601,6 +3689,33 @@ input SignInInput { deviceToken: String } +"""The output of our `linkIdentity` mutation.""" +type LinkIdentityPayload { + """ + The 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 `linkIdentity` mutation.""" +input LinkIdentityInput { + """ + 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 + service: String! + identifier: String! + details: JSON +} + """The output of our `extendTokenExpires` mutation.""" type ExtendTokenExpiresPayload { """ @@ -3849,6 +3964,47 @@ input RoleTypeInput { name: String! } +"""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 `CryptoAddress` mutation.""" type CreateCryptoAddressPayload { """ @@ -4033,47 +4189,6 @@ input AuditLogAuthInput { success: Boolean! } -"""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 `Email` mutation.""" type CreateEmailPayload { """ diff --git a/sdk/constructive-sdk/schemas/modules.graphql b/sdk/constructive-sdk/schemas/modules.graphql index 84efc4df48..b9932db782 100644 --- a/sdk/constructive-sdk/schemas/modules.graphql +++ b/sdk/constructive-sdk/schemas/modules.graphql @@ -512,9 +512,9 @@ type Query { ): CryptoAddressesModuleConnection """ - Reads and enables pagination through a set of `IdentityProvidersModule`. + Reads and enables pagination through a set of `DenormalizedTableField`. """ - identityProvidersModules( + denormalizedTableFields( """Only read the first `n` values of the set.""" first: Int @@ -536,16 +536,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: IdentityProvidersModuleFilter + where: DenormalizedTableFieldFilter - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection """ - Reads and enables pagination through a set of `DenormalizedTableField`. + Reads and enables pagination through a set of `IdentityProvidersModule`. """ - denormalizedTableFields( + identityProvidersModules( """Only read the first `n` values of the set.""" first: Int @@ -567,11 +567,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DenormalizedTableFieldFilter + where: IdentityProvidersModuleFilter - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleConnection """Reads and enables pagination through a set of `RlsModule`.""" rlsModules( @@ -660,35 +660,6 @@ type Query { orderBy: [CryptoAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] ): CryptoAuthModuleConnection - """Reads and enables pagination through a set of `RateLimitMetersModule`.""" - rateLimitMetersModules( - """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: RateLimitMetersModuleFilter - - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleConnection - """Reads and enables pagination through a set of `BlueprintConstruction`.""" blueprintConstructions( """Only read the first `n` values of the set.""" @@ -747,8 +718,8 @@ type Query { orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): SessionsModuleConnection - """Reads and enables pagination through a set of `ConfigSecretsModule`.""" - configSecretsModules( + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( """Only read the first `n` values of the set.""" first: Int @@ -770,11 +741,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ConfigSecretsModuleFilter + where: SecureTableProvisionFilter - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleConnection + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection """Reads and enables pagination through a set of `MerkleStoreModule`.""" merkleStoreModules( @@ -805,37 +776,10 @@ type Query { orderBy: [MerkleStoreModuleOrderBy!] = [PRIMARY_KEY_ASC] ): MerkleStoreModuleConnection - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( - """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: SecureTableProvisionFilter - - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection - - """Reads and enables pagination through a set of `InvitesModule`.""" - invitesModules( + """ + Reads and enables pagination through a set of `DatabaseProvisionModule`. + """ + databaseProvisionModules( """Only read the first `n` values of the set.""" first: Int @@ -857,16 +801,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: InvitesModuleFilter + where: DatabaseProvisionModuleFilter - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InvitesModuleConnection + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleConnection - """ - Reads and enables pagination through a set of `DatabaseProvisionModule`. - """ - databaseProvisionModules( + """Reads and enables pagination through a set of `ConfigSecretsModule`.""" + configSecretsModules( """Only read the first `n` values of the set.""" first: Int @@ -888,14 +830,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseProvisionModuleFilter + where: ConfigSecretsModuleFilter - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleConnection + """The method to use when ordering `ConfigSecretsModule`.""" + orderBy: [ConfigSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ConfigSecretsModuleConnection - """Reads and enables pagination through a set of `NamespaceModule`.""" - namespaceModules( + """Reads and enables pagination through a set of `RateLimitMetersModule`.""" + rateLimitMetersModules( """Only read the first `n` values of the set.""" first: Int @@ -917,11 +859,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NamespaceModuleFilter + where: RateLimitMetersModuleFilter - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NamespaceModuleConnection + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleConnection """Reads and enables pagination through a set of `RealtimeModule`.""" realtimeModules( @@ -981,8 +923,10 @@ type Query { orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] ): WebauthnAuthModuleConnection - """Reads and enables pagination through a set of `GraphModule`.""" - graphModules( + """ + Reads and enables pagination through a set of `FunctionInvocationModule`. + """ + functionInvocationModules( """Only read the first `n` values of the set.""" first: Int @@ -1004,14 +948,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: GraphModuleFilter + where: FunctionInvocationModuleFilter - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): GraphModuleConnection + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleConnection - """Reads and enables pagination through a set of `ComputeLogModule`.""" - computeLogModules( + """Reads and enables pagination through a set of `FunctionModule`.""" + functionModules( """Only read the first `n` values of the set.""" first: Int @@ -1033,14 +977,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ComputeLogModuleFilter + where: FunctionModuleFilter - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ComputeLogModuleConnection + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): FunctionModuleConnection - """Reads and enables pagination through a set of `InferenceLogModule`.""" - inferenceLogModules( + """Reads and enables pagination through a set of `InvitesModule`.""" + invitesModules( """Only read the first `n` values of the set.""" first: Int @@ -1062,14 +1006,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: InferenceLogModuleFilter + where: InvitesModuleFilter - """The method to use when ordering `InferenceLogModule`.""" - orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): InferenceLogModuleConnection + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InvitesModuleConnection - """Reads and enables pagination through a set of `StorageLogModule`.""" - storageLogModules( + """Reads and enables pagination through a set of `NamespaceModule`.""" + namespaceModules( """Only read the first `n` values of the set.""" first: Int @@ -1091,14 +1035,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageLogModuleFilter + where: NamespaceModuleFilter - """The method to use when ordering `StorageLogModule`.""" - orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageLogModuleConnection + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NamespaceModuleConnection - """Reads and enables pagination through a set of `TransferLogModule`.""" - transferLogModules( + """Reads and enables pagination through a set of `ComputeLogModule`.""" + computeLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1120,14 +1064,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TransferLogModuleFilter + where: ComputeLogModuleFilter - """The method to use when ordering `TransferLogModule`.""" - orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): TransferLogModuleConnection + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ComputeLogModuleConnection - """Reads and enables pagination through a set of `DbUsageModule`.""" - dbUsageModules( + """Reads and enables pagination through a set of `GraphModule`.""" + graphModules( """Only read the first `n` values of the set.""" first: Int @@ -1149,14 +1093,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DbUsageModuleFilter + where: GraphModuleFilter - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): DbUsageModuleConnection + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): GraphModuleConnection - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( + """Reads and enables pagination through a set of `InferenceLogModule`.""" + inferenceLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1178,14 +1122,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NotificationsModuleFilter + where: InferenceLogModuleFilter - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection + """The method to use when ordering `InferenceLogModule`.""" + orderBy: [InferenceLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): InferenceLogModuleConnection - """Reads and enables pagination through a set of `PlansModule`.""" - plansModules( + """Reads and enables pagination through a set of `StorageLogModule`.""" + storageLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1207,14 +1151,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PlansModuleFilter + where: StorageLogModuleFilter - """The method to use when ordering `PlansModule`.""" - orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PlansModuleConnection + """The method to use when ordering `StorageLogModule`.""" + orderBy: [StorageLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageLogModuleConnection - """Reads and enables pagination through a set of `HierarchyModule`.""" - hierarchyModules( + """Reads and enables pagination through a set of `TransferLogModule`.""" + transferLogModules( """Only read the first `n` values of the set.""" first: Int @@ -1236,14 +1180,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: HierarchyModuleFilter + where: TransferLogModuleFilter - """The method to use when ordering `HierarchyModule`.""" - orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): HierarchyModuleConnection + """The method to use when ordering `TransferLogModule`.""" + orderBy: [TransferLogModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): TransferLogModuleConnection - """Reads and enables pagination through a set of `BillingModule`.""" - billingModules( + """Reads and enables pagination through a set of `PlansModule`.""" + plansModules( """Only read the first `n` values of the set.""" first: Int @@ -1265,11 +1209,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BillingModuleFilter + where: PlansModuleFilter - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): BillingModuleConnection + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PlansModuleConnection """Reads and enables pagination through a set of `BillingProviderModule`.""" billingProviderModules( @@ -1300,8 +1244,8 @@ type Query { orderBy: [BillingProviderModuleOrderBy!] = [PRIMARY_KEY_ASC] ): BillingProviderModuleConnection - """Reads and enables pagination through a set of `ProfilesModule`.""" - profilesModules( + """Reads and enables pagination through a set of `DbUsageModule`.""" + dbUsageModules( """Only read the first `n` values of the set.""" first: Int @@ -1323,11 +1267,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ProfilesModuleFilter + where: DbUsageModuleFilter - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ProfilesModuleConnection + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): DbUsageModuleConnection + + """Reads and enables pagination through a set of `HierarchyModule`.""" + hierarchyModules( + """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: HierarchyModuleFilter + + """The method to use when ordering `HierarchyModule`.""" + orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): HierarchyModuleConnection """Reads and enables pagination through a set of `PermissionsModule`.""" permissionsModules( @@ -1358,8 +1331,8 @@ type Query { orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): PermissionsModuleConnection - """Reads and enables pagination through a set of `RelationProvision`.""" - relationProvisions( + """Reads and enables pagination through a set of `NotificationsModule`.""" + notificationsModules( """Only read the first `n` values of the set.""" first: Int @@ -1381,14 +1354,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RelationProvisionFilter + where: NotificationsModuleFilter - """The method to use when ordering `RelationProvision`.""" - orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): RelationProvisionConnection + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NotificationsModuleConnection - """Reads and enables pagination through a set of `BlueprintTemplate`.""" - blueprintTemplates( + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( """Only read the first `n` values of the set.""" first: Int @@ -1410,14 +1383,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BlueprintTemplateFilter + where: ProfilesModuleFilter - """The method to use when ordering `BlueprintTemplate`.""" - orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintTemplateConnection + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection - """Reads and enables pagination through a set of `FunctionModule`.""" - functionModules( + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( """Only read the first `n` values of the set.""" first: Int @@ -1439,11 +1412,69 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FunctionModuleFilter + where: BillingModuleFilter - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): FunctionModuleConnection + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection + + """Reads and enables pagination through a set of `RelationProvision`.""" + relationProvisions( + """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: RelationProvisionFilter + + """The method to use when ordering `RelationProvision`.""" + orderBy: [RelationProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): RelationProvisionConnection + + """Reads and enables pagination through a set of `BlueprintTemplate`.""" + blueprintTemplates( + """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: BlueprintTemplateFilter + + """The method to use when ordering `BlueprintTemplate`.""" + orderBy: [BlueprintTemplateOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintTemplateConnection """Reads and enables pagination through a set of `UserAuthModule`.""" userAuthModules( @@ -1561,8 +1592,8 @@ type Query { orderBy: [MembershipsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): MembershipsModuleConnection - """Reads and enables pagination through a set of `StorageModule`.""" - storageModules( + """Reads and enables pagination through a set of `EntityTypeProvision`.""" + entityTypeProvisions( """Only read the first `n` values of the set.""" first: Int @@ -1584,14 +1615,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: StorageModuleFilter + where: EntityTypeProvisionFilter - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): StorageModuleConnection + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionConnection - """Reads and enables pagination through a set of `EventsModule`.""" - eventsModules( + """Reads and enables pagination through a set of `StorageModule`.""" + storageModules( """Only read the first `n` values of the set.""" first: Int @@ -1613,14 +1644,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EventsModuleFilter + where: StorageModuleFilter - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EventsModuleConnection + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): StorageModuleConnection - """Reads and enables pagination through a set of `EntityTypeProvision`.""" - entityTypeProvisions( + """Reads and enables pagination through a set of `EventsModule`.""" + eventsModules( """Only read the first `n` values of the set.""" first: Int @@ -1642,11 +1673,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EntityTypeProvisionFilter + where: EventsModuleFilter - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionConnection + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EventsModuleConnection """ Metadata about the database schema, including tables, fields, indexes, and constraints. Useful for code generation tools. @@ -3504,213 +3535,79 @@ enum CryptoAddressesModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `IdentityProvidersModule` values.""" -type IdentityProvidersModuleConnection { - """A list of `IdentityProvidersModule` objects.""" - nodes: [IdentityProvidersModule]! +"""A connection to a list of `DenormalizedTableField` values.""" +type DenormalizedTableFieldConnection { + """A list of `DenormalizedTableField` objects.""" + nodes: [DenormalizedTableField]! """ - A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. + A list of edges which contains the `DenormalizedTableField` and cursor to aid in pagination. """ - edges: [IdentityProvidersModuleEdge]! + edges: [DenormalizedTableFieldEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `IdentityProvidersModule` you could get from the connection. + The count of *all* `DenormalizedTableField` you could get from the connection. """ totalCount: Int! } -""" -Entity-aware config row for the identity_providers_module, which provisions a per-database - identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. - The scope column determines which config_secrets_module table the rotate proc targets - (app_secrets for app scope, org_secrets for org scope). When scope = platform, - the secrets table gets a database_id column and platform-level RLS via - AuthzRelatedEntityMembership through database.owner_id. - Scoping matrix: - scope=app → per-database flat, in-app admin manages - scope=platform → per-database, platform admin manages (generate:constructive) - scope=org → per-org tenant, org admin manages -""" -type IdentityProvidersModule { +type DenormalizedTableField { id: UUID! databaseId: UUID! - schemaId: UUID! - - """ - Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. - """ - privateSchemaId: UUID! tableId: UUID! - tableName: String! - apiName: String - privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean! + updateDefaults: Boolean! + funcName: String + funcOrder: Int! } -"""A `IdentityProvidersModule` edge in the connection.""" -type IdentityProvidersModuleEdge { +"""A `DenormalizedTableField` edge in the connection.""" +type DenormalizedTableFieldEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `IdentityProvidersModule` at the end of the edge.""" - node: IdentityProvidersModule + """The `DenormalizedTableField` at the end of the edge.""" + node: DenormalizedTableField } """ -A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ """ -input IdentityProvidersModuleFilter { +input DenormalizedTableFieldFilter { """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 `tableId` field.""" tableId: UUIDFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `fieldId` field.""" + fieldId: UUIDFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `setIds` field.""" + setIds: UUIDListFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `refTableId` field.""" + refTableId: UUIDFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `refFieldId` field.""" + refFieldId: UUIDFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `refIds` field.""" + refIds: UUIDListFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Checks for all expressions in this list.""" - and: [IdentityProvidersModuleFilter!] - - """Checks for any expressions in this list.""" - or: [IdentityProvidersModuleFilter!] - - """Negates the expression.""" - not: IdentityProvidersModuleFilter -} - -"""Methods to use when ordering `IdentityProvidersModule`.""" -enum IdentityProvidersModuleOrderBy { - 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 - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC -} - -"""A connection to a list of `DenormalizedTableField` values.""" -type DenormalizedTableFieldConnection { - """A list of `DenormalizedTableField` objects.""" - nodes: [DenormalizedTableField]! - - """ - A list of edges which contains the `DenormalizedTableField` and cursor to aid in pagination. - """ - edges: [DenormalizedTableFieldEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `DenormalizedTableField` you could get from the connection. - """ - totalCount: Int! -} - -type DenormalizedTableField { - id: UUID! - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - setIds: [UUID] - refTableId: UUID! - refFieldId: UUID! - refIds: [UUID] - useUpdates: Boolean! - updateDefaults: Boolean! - funcName: String - funcOrder: Int! -} - -"""A `DenormalizedTableField` edge in the connection.""" -type DenormalizedTableFieldEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DenormalizedTableField` at the end of the edge.""" - node: DenormalizedTableField -} - -""" -A filter to be used against `DenormalizedTableField` object types. All fields are combined with a logical ‘and.’ -""" -input DenormalizedTableFieldFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `fieldId` field.""" - fieldId: UUIDFilter - - """Filter by the object’s `setIds` field.""" - setIds: UUIDListFilter - - """Filter by the object’s `refTableId` field.""" - refTableId: UUIDFilter - - """Filter by the object’s `refFieldId` field.""" - refFieldId: UUIDFilter - - """Filter by the object’s `refIds` field.""" - refIds: UUIDListFilter - - """Filter by the object’s `useUpdates` field.""" - useUpdates: BooleanFilter + """Filter by the object’s `useUpdates` field.""" + useUpdates: BooleanFilter """Filter by the object’s `updateDefaults` field.""" updateDefaults: BooleanFilter @@ -3909,52 +3806,70 @@ enum DenormalizedTableFieldOrderBy { FUNC_ORDER_DESC } -"""A connection to a list of `RlsModule` values.""" -type RlsModuleConnection { - """A list of `RlsModule` objects.""" - nodes: [RlsModule]! +"""A connection to a list of `IdentityProvidersModule` values.""" +type IdentityProvidersModuleConnection { + """A list of `IdentityProvidersModule` objects.""" + nodes: [IdentityProvidersModule]! """ - A list of edges which contains the `RlsModule` and cursor to aid in pagination. + A list of edges which contains the `IdentityProvidersModule` and cursor to aid in pagination. """ - edges: [RlsModuleEdge]! + edges: [IdentityProvidersModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `RlsModule` you could get from the connection.""" + """ + The count of *all* `IdentityProvidersModule` you could get from the connection. + """ totalCount: Int! } -type RlsModule { +""" +Entity-aware config row for the identity_providers_module, which provisions a per-database + identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. + The scope column determines which config_secrets_module table the rotate proc targets + (app_secrets for app scope, org_secrets for org scope). When scope = platform, + the secrets table gets a database_id column and platform-level RLS via + AuthzRelatedEntityMembership through database.owner_id. + Scoping matrix: + scope=app → per-database flat, in-app admin manages + scope=platform → per-database, platform admin manages (generate:constructive) + scope=org → per-org tenant, org admin manages +""" +type IdentityProvidersModule { id: UUID! databaseId: UUID! schemaId: UUID! + + """ + Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. + """ privateSchemaId: UUID! - sessionCredentialsTableId: UUID! - sessionsTableId: UUID! - usersTableId: UUID! - authenticate: String! - authenticateStrict: String! - currentRole: String! - currentRoleId: String! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + tableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID } -"""A `RlsModule` edge in the connection.""" -type RlsModuleEdge { +"""A `IdentityProvidersModule` edge in the connection.""" +type IdentityProvidersModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RlsModule` at the end of the edge.""" - node: RlsModule + """The `IdentityProvidersModule` at the end of the edge.""" + node: IdentityProvidersModule } """ -A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `IdentityProvidersModule` object types. All fields are combined with a logical ‘and.’ """ -input RlsModuleFilter { +input IdentityProvidersModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -3967,26 +3882,17 @@ input RlsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `authenticate` field.""" - authenticate: StringFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `authenticateStrict` field.""" - authenticateStrict: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `currentRole` field.""" - currentRole: StringFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `currentRoleId` field.""" - currentRoleId: StringFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -3994,18 +3900,27 @@ input RlsModuleFilter { """Filter by the object’s `privateApiName` field.""" privateApiName: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + """Checks for all expressions in this list.""" - and: [RlsModuleFilter!] + and: [IdentityProvidersModuleFilter!] """Checks for any expressions in this list.""" - or: [RlsModuleFilter!] + or: [IdentityProvidersModuleFilter!] """Negates the expression.""" - not: RlsModuleFilter + not: IdentityProvidersModuleFilter } -"""Methods to use when ordering `RlsModule`.""" -enum RlsModuleOrderBy { +"""Methods to use when ordering `IdentityProvidersModule`.""" +enum IdentityProvidersModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -4017,35 +3932,163 @@ enum RlsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - AUTHENTICATE_ASC - AUTHENTICATE_DESC - AUTHENTICATE_STRICT_ASC - AUTHENTICATE_STRICT_DESC - CURRENT_ROLE_ASC - CURRENT_ROLE_DESC - CURRENT_ROLE_ID_ASC - CURRENT_ROLE_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC } -"""A connection to a list of `Blueprint` values.""" -type BlueprintConnection { - """A list of `Blueprint` objects.""" - nodes: [Blueprint]! +"""A connection to a list of `RlsModule` values.""" +type RlsModuleConnection { + """A list of `RlsModule` objects.""" + nodes: [RlsModule]! """ - A list of edges which contains the `Blueprint` and cursor to aid in pagination. + A list of edges which contains the `RlsModule` and cursor to aid in pagination. """ - edges: [BlueprintEdge]! + edges: [RlsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RlsModule` you could get from the connection.""" + totalCount: Int! +} + +type RlsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + sessionCredentialsTableId: UUID! + sessionsTableId: UUID! + usersTableId: UUID! + authenticate: String! + authenticateStrict: String! + currentRole: String! + currentRoleId: String! + apiName: String + privateApiName: String +} + +"""A `RlsModule` edge in the connection.""" +type RlsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RlsModule` at the end of the edge.""" + node: RlsModule +} + +""" +A filter to be used against `RlsModule` object types. All fields are combined with a logical ‘and.’ +""" +input RlsModuleFilter { + """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 `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter + + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter + + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter + + """Filter by the object’s `authenticate` field.""" + authenticate: StringFilter + + """Filter by the object’s `authenticateStrict` field.""" + authenticateStrict: StringFilter + + """Filter by the object’s `currentRole` field.""" + currentRole: StringFilter + + """Filter by the object’s `currentRoleId` field.""" + currentRoleId: StringFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [RlsModuleFilter!] + + """Checks for any expressions in this list.""" + or: [RlsModuleFilter!] + + """Negates the expression.""" + not: RlsModuleFilter +} + +"""Methods to use when ordering `RlsModule`.""" +enum RlsModuleOrderBy { + 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 + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + AUTHENTICATE_ASC + AUTHENTICATE_DESC + AUTHENTICATE_STRICT_ASC + AUTHENTICATE_STRICT_DESC + CURRENT_ROLE_ASC + CURRENT_ROLE_DESC + CURRENT_ROLE_ID_ASC + CURRENT_ROLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `Blueprint` values.""" +type BlueprintConnection { + """A list of `Blueprint` objects.""" + nodes: [Blueprint]! + + """ + A list of edges which contains the `Blueprint` and cursor to aid in pagination. + """ + edges: [BlueprintEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! @@ -5073,55 +5116,77 @@ enum CryptoAuthModuleOrderBy { SIGN_IN_WITH_CHALLENGE_DESC } -"""A connection to a list of `RateLimitMetersModule` values.""" -type RateLimitMetersModuleConnection { - """A list of `RateLimitMetersModule` objects.""" - nodes: [RateLimitMetersModule]! +"""A connection to a list of `SessionsModule` values.""" +type SessionsModuleConnection { + """A list of `SessionsModule` objects.""" + nodes: [SessionsModule]! """ - A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. + A list of edges which contains the `SessionsModule` and cursor to aid in pagination. """ - edges: [RateLimitMetersModuleEdge]! + edges: [SessionsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `RateLimitMetersModule` you could get from the connection. - """ + """The count of *all* `SessionsModule` you could get from the connection.""" totalCount: Int! } -type RateLimitMetersModule { +type SessionsModule { id: UUID! databaseId: UUID! schemaId: UUID! - privateSchemaId: UUID! - rateLimitStateTableId: UUID! - rateLimitStateTableName: String! - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String! - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String! - checkRateLimitFunction: String! - prefix: String - apiName: String - privateApiName: String + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + authSettingsTableId: UUID! + usersTableId: UUID! + sessionsDefaultExpiration: Interval! + sessionsTable: String! + sessionCredentialsTable: String! + authSettingsTable: String! } -"""A `RateLimitMetersModule` edge in the connection.""" -type RateLimitMetersModuleEdge { +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +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 + + """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 `SessionsModule` edge in the connection.""" +type SessionsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RateLimitMetersModule` at the end of the edge.""" - node: RateLimitMetersModule + """The `SessionsModule` at the end of the edge.""" + node: SessionsModule } """ -A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ """ -input RateLimitMetersModuleFilter { +input SessionsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -5131,196 +5196,38 @@ input RateLimitMetersModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `rateLimitStateTableId` field.""" - rateLimitStateTableId: UUIDFilter - - """Filter by the object’s `rateLimitStateTableName` field.""" - rateLimitStateTableName: StringFilter - - """Filter by the object’s `rateLimitOverridesTableId` field.""" - rateLimitOverridesTableId: UUIDFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter - """Filter by the object’s `rateLimitOverridesTableName` field.""" - rateLimitOverridesTableName: StringFilter + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter - """Filter by the object’s `rateWindowLimitsTableId` field.""" - rateWindowLimitsTableId: UUIDFilter + """Filter by the object’s `authSettingsTableId` field.""" + authSettingsTableId: UUIDFilter - """Filter by the object’s `rateWindowLimitsTableName` field.""" - rateWindowLimitsTableName: StringFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `checkRateLimitFunction` field.""" - checkRateLimitFunction: StringFilter + """Filter by the object’s `sessionsDefaultExpiration` field.""" + sessionsDefaultExpiration: IntervalFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `sessionsTable` field.""" + sessionsTable: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `sessionCredentialsTable` field.""" + sessionCredentialsTable: StringFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `authSettingsTable` field.""" + authSettingsTable: StringFilter """Checks for all expressions in this list.""" - and: [RateLimitMetersModuleFilter!] + and: [SessionsModuleFilter!] """Checks for any expressions in this list.""" - or: [RateLimitMetersModuleFilter!] + or: [SessionsModuleFilter!] """Negates the expression.""" - not: RateLimitMetersModuleFilter -} - -"""Methods to use when ordering `RateLimitMetersModule`.""" -enum RateLimitMetersModuleOrderBy { - 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 - RATE_LIMIT_STATE_TABLE_ID_ASC - RATE_LIMIT_STATE_TABLE_ID_DESC - RATE_LIMIT_STATE_TABLE_NAME_ASC - RATE_LIMIT_STATE_TABLE_NAME_DESC - RATE_LIMIT_OVERRIDES_TABLE_ID_ASC - RATE_LIMIT_OVERRIDES_TABLE_ID_DESC - RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC - RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC - RATE_WINDOW_LIMITS_TABLE_ID_ASC - RATE_WINDOW_LIMITS_TABLE_ID_DESC - RATE_WINDOW_LIMITS_TABLE_NAME_ASC - RATE_WINDOW_LIMITS_TABLE_NAME_DESC - CHECK_RATE_LIMIT_FUNCTION_ASC - CHECK_RATE_LIMIT_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC -} - -"""A connection to a list of `SessionsModule` values.""" -type SessionsModuleConnection { - """A list of `SessionsModule` objects.""" - nodes: [SessionsModule]! - - """ - A list of edges which contains the `SessionsModule` and cursor to aid in pagination. - """ - edges: [SessionsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `SessionsModule` you could get from the connection.""" - totalCount: Int! -} - -type SessionsModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - authSettingsTableId: UUID! - usersTableId: UUID! - sessionsDefaultExpiration: Interval! - sessionsTable: String! - sessionCredentialsTable: String! - authSettingsTable: String! -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -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 - - """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 `SessionsModule` edge in the connection.""" -type SessionsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `SessionsModule` at the end of the edge.""" - node: SessionsModule -} - -""" -A filter to be used against `SessionsModule` object types. All fields are combined with a logical ‘and.’ -""" -input SessionsModuleFilter { - """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 `sessionsTableId` field.""" - sessionsTableId: UUIDFilter - - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter - - """Filter by the object’s `authSettingsTableId` field.""" - authSettingsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `sessionsDefaultExpiration` field.""" - sessionsDefaultExpiration: IntervalFilter - - """Filter by the object’s `sessionsTable` field.""" - sessionsTable: StringFilter - - """Filter by the object’s `sessionCredentialsTable` field.""" - sessionCredentialsTable: StringFilter - - """Filter by the object’s `authSettingsTable` field.""" - authSettingsTable: StringFilter - - """Checks for all expressions in this list.""" - and: [SessionsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [SessionsModuleFilter!] - - """Negates the expression.""" - not: SessionsModuleFilter + not: SessionsModuleFilter } """ @@ -5421,61 +5328,94 @@ enum SessionsModuleOrderBy { AUTH_SETTINGS_TABLE_DESC } -"""A connection to a list of `ConfigSecretsModule` values.""" -type ConfigSecretsModuleConnection { - """A list of `ConfigSecretsModule` objects.""" - nodes: [ConfigSecretsModule]! +"""A connection to a list of `SecureTableProvision` values.""" +type SecureTableProvisionConnection { + """A list of `SecureTableProvision` objects.""" + nodes: [SecureTableProvision]! """ - A list of edges which contains the `ConfigSecretsModule` and cursor to aid in pagination. + A list of edges which contains the `SecureTableProvision` and cursor to aid in pagination. """ - edges: [ConfigSecretsModuleEdge]! + edges: [SecureTableProvisionEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ConfigSecretsModule` you could get from the connection. + The count of *all* `SecureTableProvision` you could get from the connection. """ totalCount: Int! } """ -Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - User-scoped bcrypt credentials are handled by user_credentials_module. +Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. """ -type ConfigSecretsModule { +type SecureTableProvision { + """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! - privateSchemaId: 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! - configDefinitionsTableId: UUID - tableName: String! - apiName: String - privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID - policies: JSON - provisions: JSON - hasConfig: Boolean! + + """ + 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] } -"""A `ConfigSecretsModule` edge in the connection.""" -type ConfigSecretsModuleEdge { +"""A `SecureTableProvision` edge in the connection.""" +type SecureTableProvisionEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ConfigSecretsModule` at the end of the edge.""" - node: ConfigSecretsModule + """The `SecureTableProvision` at the end of the edge.""" + node: SecureTableProvision } """ -A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ """ -input ConfigSecretsModuleFilter { +input SecureTableProvisionFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -5485,54 +5425,105 @@ input ConfigSecretsModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - """Filter by the object’s `tableId` field.""" tableId: UUIDFilter - """Filter by the object’s `configDefinitionsTableId` field.""" - configDefinitionsTableId: UUIDFilter - """Filter by the object’s `tableName` field.""" tableName: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `nodes` field.""" + nodes: JSONFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `useRls` field.""" + useRls: BooleanFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `fields` field.""" + fields: JSONListFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `grants` field.""" + grants: JSONFilter """Filter by the object’s `policies` field.""" policies: JSONFilter - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Filter by the object’s `hasConfig` field.""" - hasConfig: BooleanFilter + """Filter by the object’s `outFields` field.""" + outFields: UUIDListFilter """Checks for all expressions in this list.""" - and: [ConfigSecretsModuleFilter!] + and: [SecureTableProvisionFilter!] """Checks for any expressions in this list.""" - or: [ConfigSecretsModuleFilter!] + or: [SecureTableProvisionFilter!] """Negates the expression.""" - not: ConfigSecretsModuleFilter + not: SecureTableProvisionFilter } -"""Methods to use when ordering `ConfigSecretsModule`.""" -enum ConfigSecretsModuleOrderBy { +""" +A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ +""" +input JSONListFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: [JSON] + + """Not equal to the specified value.""" + notEqualTo: [JSON] + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: [JSON] + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: [JSON] + + """Less than the specified value.""" + lessThan: [JSON] + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: [JSON] + + """Greater than the specified value.""" + greaterThan: [JSON] + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: [JSON] + + """Contains the specified list of values.""" + contains: [JSON] + + """Contained by the specified list of values.""" + containedBy: [JSON] + + """Overlaps the specified list of values.""" + overlaps: [JSON] + + """Any array item is equal to the specified value.""" + anyEqualTo: JSON + + """Any array item is not equal to the specified value.""" + anyNotEqualTo: JSON + + """Any array item is less than the specified value.""" + anyLessThan: JSON + + """Any array item is less than or equal to the specified value.""" + anyLessThanOrEqualTo: JSON + + """Any array item is greater than the specified value.""" + anyGreaterThan: JSON + + """Any array item is greater than or equal to the specified value.""" + anyGreaterThanOrEqualTo: JSON +} + +"""Methods to use when ordering `SecureTableProvision`.""" +enum SecureTableProvisionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -5542,30 +5533,22 @@ enum ConfigSecretsModuleOrderBy { DATABASE_ID_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC TABLE_ID_ASC TABLE_ID_DESC - CONFIG_DEFINITIONS_TABLE_ID_ASC - CONFIG_DEFINITIONS_TABLE_ID_DESC TABLE_NAME_ASC TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC + NODES_ASC + NODES_DESC + USE_RLS_ASC + USE_RLS_DESC + FIELDS_ASC + FIELDS_DESC + GRANTS_ASC + GRANTS_DESC POLICIES_ASC POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC - HAS_CONFIG_ASC - HAS_CONFIG_DESC + OUT_FIELDS_ASC + OUT_FIELDS_DESC } """A connection to a list of `MerkleStoreModule` values.""" @@ -5602,6 +5585,7 @@ type MerkleStoreModule { apiName: String privateApiName: String scope: String! + functionPrefix: String createdAt: Datetime! """Reads and enables pagination through a set of `GraphModule`.""" @@ -5669,6 +5653,7 @@ type GraphModule { entityTableId: UUID policies: JSON provisions: JSON + defaultPermissions: [String] createdAt: Datetime! """ @@ -5741,6 +5726,9 @@ input GraphModuleFilter { """Filter by the object’s `provisions` field.""" provisions: JSONFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -5803,6 +5791,9 @@ input MerkleStoreModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + """Filter by the object’s `functionPrefix` field.""" + functionPrefix: StringFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -5875,6 +5866,8 @@ enum GraphModuleOrderBy { POLICIES_DESC PROVISIONS_ASC PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC CREATED_AT_ASC CREATED_AT_DESC } @@ -5921,282 +5914,232 @@ enum MerkleStoreModuleOrderBy { PRIVATE_API_NAME_DESC SCOPE_ASC SCOPE_DESC + FUNCTION_PREFIX_ASC + FUNCTION_PREFIX_DESC CREATED_AT_ASC CREATED_AT_DESC } -"""A connection to a list of `SecureTableProvision` values.""" -type SecureTableProvisionConnection { - """A list of `SecureTableProvision` objects.""" - nodes: [SecureTableProvision]! +"""A connection to a list of `DatabaseProvisionModule` values.""" +type DatabaseProvisionModuleConnection { + """A list of `DatabaseProvisionModule` objects.""" + nodes: [DatabaseProvisionModule]! """ - A list of edges which contains the `SecureTableProvision` and cursor to aid in pagination. + A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. """ - edges: [SecureTableProvisionEdge]! + edges: [DatabaseProvisionModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `SecureTableProvision` you could get from the connection. + The count of *all* `DatabaseProvisionModule` you could get from the connection. """ totalCount: Int! } """ -Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. +Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. """ -type SecureTableProvision { - """Unique identifier for this provision row.""" +type DatabaseProvisionModule { 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! + """The name for the new database""" + databaseName: String! - """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID! + """UUID of the user who owns this database""" + ownerId: 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. + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars """ - tableName: String + subdomain: 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! + """Base domain for the database (e.g., example.com)""" + domain: String! """ - 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. + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) """ - useRls: Boolean! + modules: JSON! - """ - 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]! + """Additional configuration options for provisioning""" + options: 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[]. + When true, copies the owner user and password hash from source database to the newly provisioned database """ - grants: JSON! + bootstrapUser: Boolean! - """ - 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! + """Current status: pending, in_progress, completed, or failed""" + status: String! + errorMessage: String - """ - 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 ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime! + updatedAt: Datetime! + completedAt: Datetime } -"""A `SecureTableProvision` edge in the connection.""" -type SecureTableProvisionEdge { +"""A `DatabaseProvisionModule` edge in the connection.""" +type DatabaseProvisionModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `SecureTableProvision` at the end of the edge.""" - node: SecureTableProvision + """The `DatabaseProvisionModule` at the end of the edge.""" + node: DatabaseProvisionModule } """ -A filter to be used against `SecureTableProvision` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ """ -input SecureTableProvisionFilter { +input DatabaseProvisionModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `databaseName` field.""" + databaseName: StringFilter - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `subdomain` field.""" + subdomain: StringFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `domain` field.""" + domain: StringFilter - """Filter by the object’s `nodes` field.""" - nodes: JSONFilter + """Filter by the object’s `modules` field.""" + modules: JSONFilter - """Filter by the object’s `useRls` field.""" - useRls: BooleanFilter + """Filter by the object’s `options` field.""" + options: JSONFilter - """Filter by the object’s `fields` field.""" - fields: JSONListFilter + """Filter by the object’s `bootstrapUser` field.""" + bootstrapUser: BooleanFilter - """Filter by the object’s `grants` field.""" - grants: JSONFilter + """Filter by the object’s `status` field.""" + status: StringFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter + """Filter by the object’s `errorMessage` field.""" + errorMessage: StringFilter - """Filter by the object’s `outFields` field.""" - outFields: UUIDListFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `completedAt` field.""" + completedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [SecureTableProvisionFilter!] + and: [DatabaseProvisionModuleFilter!] """Checks for any expressions in this list.""" - or: [SecureTableProvisionFilter!] + or: [DatabaseProvisionModuleFilter!] """Negates the expression.""" - not: SecureTableProvisionFilter + not: DatabaseProvisionModuleFilter } -""" -A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ -""" -input JSONListFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: [JSON] - - """Not equal to the specified value.""" - notEqualTo: [JSON] - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: [JSON] - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: [JSON] - - """Less than the specified value.""" - lessThan: [JSON] - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: [JSON] - - """Greater than the specified value.""" - greaterThan: [JSON] - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: [JSON] - - """Contains the specified list of values.""" - contains: [JSON] - - """Contained by the specified list of values.""" - containedBy: [JSON] - - """Overlaps the specified list of values.""" - overlaps: [JSON] - - """Any array item is equal to the specified value.""" - anyEqualTo: JSON - - """Any array item is not equal to the specified value.""" - anyNotEqualTo: JSON - - """Any array item is less than the specified value.""" - anyLessThan: JSON - - """Any array item is less than or equal to the specified value.""" - anyLessThanOrEqualTo: JSON - - """Any array item is greater than the specified value.""" - anyGreaterThan: JSON - - """Any array item is greater than or equal to the specified value.""" - anyGreaterThanOrEqualTo: JSON -} - -"""Methods to use when ordering `SecureTableProvision`.""" -enum SecureTableProvisionOrderBy { +"""Methods to use when ordering `DatabaseProvisionModule`.""" +enum DatabaseProvisionModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC + DATABASE_NAME_ASC + DATABASE_NAME_DESC + OWNER_ID_ASC + OWNER_ID_DESC + SUBDOMAIN_ASC + SUBDOMAIN_DESC + DOMAIN_ASC + DOMAIN_DESC + MODULES_ASC + MODULES_DESC + OPTIONS_ASC + OPTIONS_DESC + BOOTSTRAP_USER_ASC + BOOTSTRAP_USER_DESC + STATUS_ASC + STATUS_DESC + ERROR_MESSAGE_ASC + ERROR_MESSAGE_DESC DATABASE_ID_ASC DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - NODES_ASC - NODES_DESC - USE_RLS_ASC - USE_RLS_DESC - FIELDS_ASC - FIELDS_DESC - GRANTS_ASC - GRANTS_DESC - POLICIES_ASC - POLICIES_DESC - OUT_FIELDS_ASC - OUT_FIELDS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + COMPLETED_AT_ASC + COMPLETED_AT_DESC } -"""A connection to a list of `InvitesModule` values.""" -type InvitesModuleConnection { - """A list of `InvitesModule` objects.""" - nodes: [InvitesModule]! +"""A connection to a list of `ConfigSecretsModule` values.""" +type ConfigSecretsModuleConnection { + """A list of `ConfigSecretsModule` objects.""" + nodes: [ConfigSecretsModule]! """ - A list of edges which contains the `InvitesModule` and cursor to aid in pagination. + A list of edges which contains the `ConfigSecretsModule` and cursor to aid in pagination. """ - edges: [InvitesModuleEdge]! + edges: [ConfigSecretsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `InvitesModule` you could get from the connection.""" + """ + The count of *all* `ConfigSecretsModule` you could get from the connection. + """ totalCount: Int! } -type InvitesModule { +""" +Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + User-scoped bcrypt credentials are handled by user_credentials_module. +""" +type ConfigSecretsModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - emailsTableId: UUID! - usersTableId: UUID! - invitesTableId: UUID! - claimedInvitesTableId: UUID! - invitesTableName: String! - claimedInvitesTableName: String! - submitInviteCodeFunction: String! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + configDefinitionsTableId: UUID + tableName: String! + apiName: String + privateApiName: String scope: String! prefix: String! entityTableId: UUID - apiName: String - privateApiName: String + policies: JSON + provisions: JSON + hasConfig: Boolean! } -"""A `InvitesModule` edge in the connection.""" -type InvitesModuleEdge { +"""A `ConfigSecretsModule` edge in the connection.""" +type ConfigSecretsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `InvitesModule` at the end of the edge.""" - node: InvitesModule + """The `ConfigSecretsModule` at the end of the edge.""" + node: ConfigSecretsModule } """ -A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ConfigSecretsModule` object types. All fields are combined with a logical ‘and.’ """ -input InvitesModuleFilter { +input ConfigSecretsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6209,26 +6152,26 @@ input InvitesModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `emailsTableId` field.""" - emailsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `invitesTableId` field.""" - invitesTableId: UUIDFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `claimedInvitesTableId` field.""" - claimedInvitesTableId: UUIDFilter + """Filter by the object’s `configDefinitionsTableId` field.""" + configDefinitionsTableId: UUIDFilter - """Filter by the object’s `invitesTableName` field.""" - invitesTableName: StringFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter - """Filter by the object’s `claimedInvitesTableName` field.""" - claimedInvitesTableName: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `submitInviteCodeFunction` field.""" - submitInviteCodeFunction: StringFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -6239,24 +6182,27 @@ input InvitesModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `hasConfig` field.""" + hasConfig: BooleanFilter """Checks for all expressions in this list.""" - and: [InvitesModuleFilter!] + and: [ConfigSecretsModuleFilter!] """Checks for any expressions in this list.""" - or: [InvitesModuleFilter!] + or: [ConfigSecretsModuleFilter!] """Negates the expression.""" - not: InvitesModuleFilter + not: ConfigSecretsModuleFilter } -"""Methods to use when ordering `InvitesModule`.""" -enum InvitesModuleOrderBy { +"""Methods to use when ordering `ConfigSecretsModule`.""" +enum ConfigSecretsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -6268,247 +6214,235 @@ enum InvitesModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - EMAILS_TABLE_ID_ASC - EMAILS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - INVITES_TABLE_ID_ASC - INVITES_TABLE_ID_DESC - CLAIMED_INVITES_TABLE_ID_ASC - CLAIMED_INVITES_TABLE_ID_DESC - INVITES_TABLE_NAME_ASC - INVITES_TABLE_NAME_DESC - CLAIMED_INVITES_TABLE_NAME_ASC - CLAIMED_INVITES_TABLE_NAME_DESC - SUBMIT_INVITE_CODE_FUNCTION_ASC - SUBMIT_INVITE_CODE_FUNCTION_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + CONFIG_DEFINITIONS_TABLE_ID_ASC + CONFIG_DEFINITIONS_TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + HAS_CONFIG_ASC + HAS_CONFIG_DESC } -"""A connection to a list of `DatabaseProvisionModule` values.""" -type DatabaseProvisionModuleConnection { - """A list of `DatabaseProvisionModule` objects.""" - nodes: [DatabaseProvisionModule]! +"""A connection to a list of `RateLimitMetersModule` values.""" +type RateLimitMetersModuleConnection { + """A list of `RateLimitMetersModule` objects.""" + nodes: [RateLimitMetersModule]! """ - A list of edges which contains the `DatabaseProvisionModule` and cursor to aid in pagination. + A list of edges which contains the `RateLimitMetersModule` and cursor to aid in pagination. """ - edges: [DatabaseProvisionModuleEdge]! + edges: [RateLimitMetersModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `DatabaseProvisionModule` you could get from the connection. + The count of *all* `RateLimitMetersModule` you could get from the connection. """ totalCount: Int! } -""" -Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. -""" -type DatabaseProvisionModule { +type RateLimitMetersModule { id: UUID! - - """The name for the new database""" - databaseName: String! - - """UUID of the user who owns this database""" - ownerId: UUID! - - """ - Subdomain prefix for the database. If null, auto-generated using unique_names + random chars - """ - subdomain: String - - """Base domain for the database (e.g., example.com)""" - domain: String! - - """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) - """ - modules: JSON! - - """Additional configuration options for provisioning""" - options: JSON! - - """ - When true, copies the owner user and password hash from source database to the newly provisioned database - """ - bootstrapUser: Boolean! - - """Current status: pending, in_progress, completed, or failed""" - status: String! - errorMessage: String - - """The ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime! - updatedAt: Datetime! - completedAt: Datetime + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + rateLimitStateTableId: UUID! + rateLimitStateTableName: String! + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String! + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String! + checkRateLimitFunction: String! + prefix: String + defaultPermissions: [String] + apiName: String + privateApiName: String } -"""A `DatabaseProvisionModule` edge in the connection.""" -type DatabaseProvisionModuleEdge { +"""A `RateLimitMetersModule` edge in the connection.""" +type RateLimitMetersModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DatabaseProvisionModule` at the end of the edge.""" - node: DatabaseProvisionModule + """The `RateLimitMetersModule` at the end of the edge.""" + node: RateLimitMetersModule } """ -A filter to be used against `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `RateLimitMetersModule` object types. All fields are combined with a logical ‘and.’ """ -input DatabaseProvisionModuleFilter { +input RateLimitMetersModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `databaseName` field.""" - databaseName: StringFilter + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter - """Filter by the object’s `ownerId` field.""" - ownerId: UUIDFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `subdomain` field.""" - subdomain: StringFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `domain` field.""" - domain: StringFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `modules` field.""" - modules: JSONFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `options` field.""" - options: JSONFilter + """Filter by the object’s `rateLimitStateTableId` field.""" + rateLimitStateTableId: UUIDFilter - """Filter by the object’s `bootstrapUser` field.""" - bootstrapUser: BooleanFilter + """Filter by the object’s `rateLimitStateTableName` field.""" + rateLimitStateTableName: StringFilter - """Filter by the object’s `status` field.""" - status: StringFilter + """Filter by the object’s `rateLimitOverridesTableId` field.""" + rateLimitOverridesTableId: UUIDFilter - """Filter by the object’s `errorMessage` field.""" - errorMessage: StringFilter + """Filter by the object’s `rateLimitOverridesTableName` field.""" + rateLimitOverridesTableName: StringFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `rateWindowLimitsTableId` field.""" + rateWindowLimitsTableId: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `rateWindowLimitsTableName` field.""" + rateWindowLimitsTableName: StringFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `checkRateLimitFunction` field.""" + checkRateLimitFunction: StringFilter - """Filter by the object’s `completedAt` field.""" - completedAt: DatetimeFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [DatabaseProvisionModuleFilter!] + and: [RateLimitMetersModuleFilter!] """Checks for any expressions in this list.""" - or: [DatabaseProvisionModuleFilter!] + or: [RateLimitMetersModuleFilter!] """Negates the expression.""" - not: DatabaseProvisionModuleFilter + not: RateLimitMetersModuleFilter } -"""Methods to use when ordering `DatabaseProvisionModule`.""" -enum DatabaseProvisionModuleOrderBy { +"""Methods to use when ordering `RateLimitMetersModule`.""" +enum RateLimitMetersModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - DATABASE_NAME_ASC - DATABASE_NAME_DESC - OWNER_ID_ASC - OWNER_ID_DESC - SUBDOMAIN_ASC - SUBDOMAIN_DESC - DOMAIN_ASC - DOMAIN_DESC - MODULES_ASC - MODULES_DESC - OPTIONS_ASC - OPTIONS_DESC - BOOTSTRAP_USER_ASC - BOOTSTRAP_USER_DESC - STATUS_ASC - STATUS_DESC - ERROR_MESSAGE_ASC - ERROR_MESSAGE_DESC DATABASE_ID_ASC DATABASE_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - COMPLETED_AT_ASC - COMPLETED_AT_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + RATE_LIMIT_STATE_TABLE_ID_ASC + RATE_LIMIT_STATE_TABLE_ID_DESC + RATE_LIMIT_STATE_TABLE_NAME_ASC + RATE_LIMIT_STATE_TABLE_NAME_DESC + RATE_LIMIT_OVERRIDES_TABLE_ID_ASC + RATE_LIMIT_OVERRIDES_TABLE_ID_DESC + RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC + RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC + RATE_WINDOW_LIMITS_TABLE_ID_ASC + RATE_WINDOW_LIMITS_TABLE_ID_DESC + RATE_WINDOW_LIMITS_TABLE_NAME_ASC + RATE_WINDOW_LIMITS_TABLE_NAME_DESC + CHECK_RATE_LIMIT_FUNCTION_ASC + CHECK_RATE_LIMIT_FUNCTION_DESC + PREFIX_ASC + PREFIX_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `NamespaceModule` values.""" -type NamespaceModuleConnection { - """A list of `NamespaceModule` objects.""" - nodes: [NamespaceModule]! +"""A connection to a list of `RealtimeModule` values.""" +type RealtimeModuleConnection { + """A list of `RealtimeModule` objects.""" + nodes: [RealtimeModule]! """ - A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. + A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. """ - edges: [NamespaceModuleEdge]! + edges: [RealtimeModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `NamespaceModule` you could get from the connection. - """ + """The count of *all* `RealtimeModule` you could get from the connection.""" totalCount: Int! } -type NamespaceModule { +type RealtimeModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - publicSchemaName: String - privateSchemaName: String - namespacesTableId: UUID! - namespaceEventsTableId: UUID! - namespacesTableName: String! - namespaceEventsTableName: String! + subscriptionsSchemaId: UUID! + changeLogTableId: UUID! + listenerNodeTableId: UUID! + sourceRegistryTableId: UUID! + retentionHours: Int! + premake: Int! + interval: String! + notifyChannel: String apiName: String privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID - policies: JSON - provisions: JSON } -"""A `NamespaceModule` edge in the connection.""" -type NamespaceModuleEdge { +"""A `RealtimeModule` edge in the connection.""" +type RealtimeModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NamespaceModule` at the end of the edge.""" - node: NamespaceModule + """The `RealtimeModule` at the end of the edge.""" + node: RealtimeModule } """ -A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ """ -input NamespaceModuleFilter { +input RealtimeModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6521,160 +6455,11 @@ input NamespaceModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `publicSchemaName` field.""" - publicSchemaName: StringFilter - - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter + """Filter by the object’s `subscriptionsSchemaId` field.""" + subscriptionsSchemaId: UUIDFilter - """Filter by the object’s `namespacesTableId` field.""" - namespacesTableId: UUIDFilter - - """Filter by the object’s `namespaceEventsTableId` field.""" - namespaceEventsTableId: UUIDFilter - - """Filter by the object’s `namespacesTableName` field.""" - namespacesTableName: StringFilter - - """Filter by the object’s `namespaceEventsTableName` field.""" - namespaceEventsTableName: StringFilter - - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Filter by the object’s `scope` field.""" - scope: StringFilter - - """Filter by the object’s `prefix` field.""" - prefix: StringFilter - - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `policies` field.""" - policies: JSONFilter - - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter - - """Checks for all expressions in this list.""" - and: [NamespaceModuleFilter!] - - """Checks for any expressions in this list.""" - or: [NamespaceModuleFilter!] - - """Negates the expression.""" - not: NamespaceModuleFilter -} - -"""Methods to use when ordering `NamespaceModule`.""" -enum NamespaceModuleOrderBy { - 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 - PUBLIC_SCHEMA_NAME_ASC - PUBLIC_SCHEMA_NAME_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - NAMESPACES_TABLE_ID_ASC - NAMESPACES_TABLE_ID_DESC - NAMESPACE_EVENTS_TABLE_ID_ASC - NAMESPACE_EVENTS_TABLE_ID_DESC - NAMESPACES_TABLE_NAME_ASC - NAMESPACES_TABLE_NAME_DESC - NAMESPACE_EVENTS_TABLE_NAME_ASC - NAMESPACE_EVENTS_TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC -} - -"""A connection to a list of `RealtimeModule` values.""" -type RealtimeModuleConnection { - """A list of `RealtimeModule` objects.""" - nodes: [RealtimeModule]! - - """ - A list of edges which contains the `RealtimeModule` and cursor to aid in pagination. - """ - edges: [RealtimeModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `RealtimeModule` you could get from the connection.""" - totalCount: Int! -} - -type RealtimeModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - subscriptionsSchemaId: UUID! - changeLogTableId: UUID! - listenerNodeTableId: UUID! - sourceRegistryTableId: UUID! - retentionHours: Int! - premake: Int! - interval: String! - notifyChannel: String - apiName: String - privateApiName: String -} - -"""A `RealtimeModule` edge in the connection.""" -type RealtimeModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RealtimeModule` at the end of the edge.""" - node: RealtimeModule -} - -""" -A filter to be used against `RealtimeModule` object types. All fields are combined with a logical ‘and.’ -""" -input RealtimeModuleFilter { - """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 `subscriptionsSchemaId` field.""" - subscriptionsSchemaId: UUIDFilter - - """Filter by the object’s `changeLogTableId` field.""" - changeLogTableId: UUIDFilter + """Filter by the object’s `changeLogTableId` field.""" + changeLogTableId: UUIDFilter """Filter by the object’s `listenerNodeTableId` field.""" listenerNodeTableId: UUIDFilter @@ -6893,58 +6678,59 @@ enum WebauthnAuthModuleOrderBy { CHALLENGE_EXPIRY_DESC } -"""A connection to a list of `ComputeLogModule` values.""" -type ComputeLogModuleConnection { - """A list of `ComputeLogModule` objects.""" - nodes: [ComputeLogModule]! +"""A connection to a list of `FunctionInvocationModule` values.""" +type FunctionInvocationModuleConnection { + """A list of `FunctionInvocationModule` objects.""" + nodes: [FunctionInvocationModule]! """ - A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. + A list of edges which contains the `FunctionInvocationModule` and cursor to aid in pagination. """ - edges: [ComputeLogModuleEdge]! + edges: [FunctionInvocationModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `ComputeLogModule` you could get from the connection. + The count of *all* `FunctionInvocationModule` you could get from the connection. """ totalCount: Int! } -type ComputeLogModule { +type FunctionInvocationModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - computeLogTableId: UUID! - computeLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! + publicSchemaName: String + privateSchemaName: String + invocationsTableId: UUID! + executionLogsTableId: UUID! + invocationsTableName: String! + executionLogsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `ComputeLogModule` edge in the connection.""" -type ComputeLogModuleEdge { +"""A `FunctionInvocationModule` edge in the connection.""" +type FunctionInvocationModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ComputeLogModule` at the end of the edge.""" - node: ComputeLogModule + """The `FunctionInvocationModule` at the end of the edge.""" + node: FunctionInvocationModule } """ -A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionInvocationModule` object types. All fields are combined with a logical ‘and.’ """ -input ComputeLogModuleFilter { +input FunctionInvocationModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -6957,57 +6743,60 @@ input ComputeLogModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `computeLogTableId` field.""" - computeLogTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `computeLogTableName` field.""" - computeLogTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `invocationsTableId` field.""" + invocationsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `executionLogsTableId` field.""" + executionLogsTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `invocationsTableName` field.""" + invocationsTableName: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `executionLogsTableName` field.""" + executionLogsTableName: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [ComputeLogModuleFilter!] + and: [FunctionInvocationModuleFilter!] """Checks for any expressions in this list.""" - or: [ComputeLogModuleFilter!] + or: [FunctionInvocationModuleFilter!] """Negates the expression.""" - not: ComputeLogModuleFilter + not: FunctionInvocationModuleFilter } -"""Methods to use when ordering `ComputeLogModule`.""" -enum ComputeLogModuleOrderBy { +"""Methods to use when ordering `FunctionInvocationModule`.""" +enum FunctionInvocationModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7019,86 +6808,87 @@ enum ComputeLogModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - COMPUTE_LOG_TABLE_ID_ASC - COMPUTE_LOG_TABLE_ID_DESC - COMPUTE_LOG_TABLE_NAME_ASC - COMPUTE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + INVOCATIONS_TABLE_ID_ASC + INVOCATIONS_TABLE_ID_DESC + EXECUTION_LOGS_TABLE_ID_ASC + EXECUTION_LOGS_TABLE_ID_DESC + INVOCATIONS_TABLE_NAME_ASC + INVOCATIONS_TABLE_NAME_DESC + EXECUTION_LOGS_TABLE_NAME_ASC + EXECUTION_LOGS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `InferenceLogModule` values.""" -type InferenceLogModuleConnection { - """A list of `InferenceLogModule` objects.""" - nodes: [InferenceLogModule]! +"""A connection to a list of `FunctionModule` values.""" +type FunctionModuleConnection { + """A list of `FunctionModule` objects.""" + nodes: [FunctionModule]! """ - A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. + A list of edges which contains the `FunctionModule` and cursor to aid in pagination. """ - edges: [InferenceLogModuleEdge]! + edges: [FunctionModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `InferenceLogModule` you could get from the connection. - """ + """The count of *all* `FunctionModule` you could get from the connection.""" totalCount: Int! } -type InferenceLogModule { +type FunctionModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - inferenceLogTableId: UUID! - inferenceLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! + publicSchemaName: String + privateSchemaName: String + definitionsTableId: UUID! + secretDefinitionsTableId: UUID! + definitionsTableName: String! + secretDefinitionsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `InferenceLogModule` edge in the connection.""" -type InferenceLogModuleEdge { +"""A `FunctionModule` edge in the connection.""" +type FunctionModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `InferenceLogModule` at the end of the edge.""" - node: InferenceLogModule + """The `FunctionModule` at the end of the edge.""" + node: FunctionModule } """ -A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ """ -input InferenceLogModuleFilter { +input FunctionModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7111,57 +6901,60 @@ input InferenceLogModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `inferenceLogTableId` field.""" - inferenceLogTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `inferenceLogTableName` field.""" - inferenceLogTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `definitionsTableId` field.""" + definitionsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `secretDefinitionsTableId` field.""" + secretDefinitionsTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `definitionsTableName` field.""" + definitionsTableName: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `secretDefinitionsTableName` field.""" + secretDefinitionsTableName: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [InferenceLogModuleFilter!] + and: [FunctionModuleFilter!] """Checks for any expressions in this list.""" - or: [InferenceLogModuleFilter!] + or: [FunctionModuleFilter!] """Negates the expression.""" - not: InferenceLogModuleFilter + not: FunctionModuleFilter } -"""Methods to use when ordering `InferenceLogModule`.""" -enum InferenceLogModuleOrderBy { +"""Methods to use when ordering `FunctionModule`.""" +enum FunctionModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7173,86 +6966,87 @@ enum InferenceLogModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - INFERENCE_LOG_TABLE_ID_ASC - INFERENCE_LOG_TABLE_ID_DESC - INFERENCE_LOG_TABLE_NAME_ASC - INFERENCE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + DEFINITIONS_TABLE_ID_ASC + DEFINITIONS_TABLE_ID_DESC + SECRET_DEFINITIONS_TABLE_ID_ASC + SECRET_DEFINITIONS_TABLE_ID_DESC + DEFINITIONS_TABLE_NAME_ASC + DEFINITIONS_TABLE_NAME_DESC + SECRET_DEFINITIONS_TABLE_NAME_ASC + SECRET_DEFINITIONS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `StorageLogModule` values.""" -type StorageLogModuleConnection { - """A list of `StorageLogModule` objects.""" - nodes: [StorageLogModule]! +"""A connection to a list of `InvitesModule` values.""" +type InvitesModuleConnection { + """A list of `InvitesModule` objects.""" + nodes: [InvitesModule]! """ - A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. + A list of edges which contains the `InvitesModule` and cursor to aid in pagination. """ - edges: [StorageLogModuleEdge]! + edges: [InvitesModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `StorageLogModule` you could get from the connection. - """ + """The count of *all* `InvitesModule` you could get from the connection.""" totalCount: Int! } -type StorageLogModule { +type InvitesModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - storageLogTableId: UUID! - storageLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! + publicSchemaName: String + privateSchemaName: String + emailsTableId: UUID! + usersTableId: UUID! + invitesTableId: UUID! + claimedInvitesTableId: UUID! + invitesTableName: String! + claimedInvitesTableName: String! + submitInviteCodeFunction: String! scope: String! - actorFkTableId: UUID - entityFkTableId: UUID prefix: String! + entityTableId: UUID apiName: String privateApiName: String } -"""A `StorageLogModule` edge in the connection.""" -type StorageLogModuleEdge { +"""A `InvitesModule` edge in the connection.""" +type InvitesModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `StorageLogModule` at the end of the edge.""" - node: StorageLogModule + """The `InvitesModule` at the end of the edge.""" + node: InvitesModule } """ -A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InvitesModule` object types. All fields are combined with a logical ‘and.’ """ -input StorageLogModuleFilter { +input InvitesModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7265,39 +7059,42 @@ input StorageLogModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `storageLogTableId` field.""" - storageLogTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `storageLogTableName` field.""" - storageLogTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `emailsTableId` field.""" + emailsTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `invitesTableId` field.""" + invitesTableId: UUIDFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `claimedInvitesTableId` field.""" + claimedInvitesTableId: UUIDFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `invitesTableName` field.""" + invitesTableName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `claimedInvitesTableName` field.""" + claimedInvitesTableName: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter + """Filter by the object’s `submitInviteCodeFunction` field.""" + submitInviteCodeFunction: StringFilter - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -7305,17 +7102,17 @@ input StorageLogModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [StorageLogModuleFilter!] + and: [InvitesModuleFilter!] """Checks for any expressions in this list.""" - or: [StorageLogModuleFilter!] + or: [InvitesModuleFilter!] """Negates the expression.""" - not: StorageLogModuleFilter + not: InvitesModuleFilter } -"""Methods to use when ordering `StorageLogModule`.""" -enum StorageLogModuleOrderBy { +"""Methods to use when ordering `InvitesModule`.""" +enum InvitesModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7327,86 +7124,89 @@ enum StorageLogModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - STORAGE_LOG_TABLE_ID_ASC - STORAGE_LOG_TABLE_ID_DESC - STORAGE_LOG_TABLE_NAME_ASC - STORAGE_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + EMAILS_TABLE_ID_ASC + EMAILS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + INVITES_TABLE_ID_ASC + INVITES_TABLE_ID_DESC + CLAIMED_INVITES_TABLE_ID_ASC + CLAIMED_INVITES_TABLE_ID_DESC + INVITES_TABLE_NAME_ASC + INVITES_TABLE_NAME_DESC + CLAIMED_INVITES_TABLE_NAME_ASC + CLAIMED_INVITES_TABLE_NAME_DESC + SUBMIT_INVITE_CODE_FUNCTION_ASC + SUBMIT_INVITE_CODE_FUNCTION_DESC SCOPE_ASC SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `TransferLogModule` values.""" -type TransferLogModuleConnection { - """A list of `TransferLogModule` objects.""" - nodes: [TransferLogModule]! +"""A connection to a list of `NamespaceModule` values.""" +type NamespaceModuleConnection { + """A list of `NamespaceModule` objects.""" + nodes: [NamespaceModule]! """ - A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. + A list of edges which contains the `NamespaceModule` and cursor to aid in pagination. """ - edges: [TransferLogModuleEdge]! + edges: [NamespaceModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `TransferLogModule` you could get from the connection. + The count of *all* `NamespaceModule` you could get from the connection. """ totalCount: Int! } -type TransferLogModule { +type NamespaceModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - transferLogTableId: UUID! - transferLogTableName: String! - usageDailyTableId: UUID! - usageDailyTableName: String! - interval: String! - retention: String! - premake: Int! - scope: String! - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String! + publicSchemaName: String + privateSchemaName: String + namespacesTableId: UUID! + namespaceEventsTableId: UUID! + namespacesTableName: String! + namespaceEventsTableName: String! apiName: String privateApiName: String + scope: String! + prefix: String! + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `TransferLogModule` edge in the connection.""" -type TransferLogModuleEdge { +"""A `NamespaceModule` edge in the connection.""" +type NamespaceModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `TransferLogModule` at the end of the edge.""" - node: TransferLogModule + """The `NamespaceModule` at the end of the edge.""" + node: NamespaceModule } """ -A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `NamespaceModule` object types. All fields are combined with a logical ‘and.’ """ -input TransferLogModuleFilter { +input NamespaceModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7419,57 +7219,60 @@ input TransferLogModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `transferLogTableId` field.""" - transferLogTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `transferLogTableName` field.""" - transferLogTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `usageDailyTableId` field.""" - usageDailyTableId: UUIDFilter + """Filter by the object’s `namespacesTableId` field.""" + namespacesTableId: UUIDFilter - """Filter by the object’s `usageDailyTableName` field.""" - usageDailyTableName: StringFilter + """Filter by the object’s `namespaceEventsTableId` field.""" + namespaceEventsTableId: UUIDFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `namespacesTableName` field.""" + namespacesTableName: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `namespaceEventsTableName` field.""" + namespaceEventsTableName: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter - """Filter by the object’s `actorFkTableId` field.""" - actorFkTableId: UUIDFilter - - """Filter by the object’s `entityFkTableId` field.""" - entityFkTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Checks for all expressions in this list.""" - and: [TransferLogModuleFilter!] + and: [NamespaceModuleFilter!] """Checks for any expressions in this list.""" - or: [TransferLogModuleFilter!] + or: [NamespaceModuleFilter!] """Negates the expression.""" - not: TransferLogModuleFilter + not: NamespaceModuleFilter } -"""Methods to use when ordering `TransferLogModule`.""" -enum TransferLogModuleOrderBy { +"""Methods to use when ordering `NamespaceModule`.""" +enum NamespaceModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7481,86 +7284,90 @@ enum TransferLogModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - TRANSFER_LOG_TABLE_ID_ASC - TRANSFER_LOG_TABLE_ID_DESC - TRANSFER_LOG_TABLE_NAME_ASC - TRANSFER_LOG_TABLE_NAME_DESC - USAGE_DAILY_TABLE_ID_ASC - USAGE_DAILY_TABLE_ID_DESC - USAGE_DAILY_TABLE_NAME_ASC - USAGE_DAILY_TABLE_NAME_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC - SCOPE_ASC - SCOPE_DESC - ACTOR_FK_TABLE_ID_ASC - ACTOR_FK_TABLE_ID_DESC - ENTITY_FK_TABLE_ID_ASC - ENTITY_FK_TABLE_ID_DESC - PREFIX_ASC - PREFIX_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + NAMESPACES_TABLE_ID_ASC + NAMESPACES_TABLE_ID_DESC + NAMESPACE_EVENTS_TABLE_ID_ASC + NAMESPACE_EVENTS_TABLE_ID_DESC + NAMESPACES_TABLE_NAME_ASC + NAMESPACES_TABLE_NAME_DESC + NAMESPACE_EVENTS_TABLE_NAME_ASC + NAMESPACE_EVENTS_TABLE_NAME_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `DbUsageModule` values.""" -type DbUsageModuleConnection { - """A list of `DbUsageModule` objects.""" - nodes: [DbUsageModule]! +"""A connection to a list of `ComputeLogModule` values.""" +type ComputeLogModuleConnection { + """A list of `ComputeLogModule` objects.""" + nodes: [ComputeLogModule]! """ - A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. + A list of edges which contains the `ComputeLogModule` and cursor to aid in pagination. """ - edges: [DbUsageModuleEdge]! + edges: [ComputeLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `DbUsageModule` you could get from the connection.""" + """ + The count of *all* `ComputeLogModule` you could get from the connection. + """ totalCount: Int! } -type DbUsageModule { +type ComputeLogModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - tableStatsLogTableId: UUID! - tableStatsLogTableName: String! - tableStatsDailyTableId: UUID! - tableStatsDailyTableName: String! - queryStatsLogTableId: UUID! - queryStatsLogTableName: String! - queryStatsDailyTableId: UUID! - queryStatsDailyTableName: String! + publicSchemaName: String + privateSchemaName: String + computeLogTableId: UUID! + computeLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! interval: String! retention: String! premake: Int! scope: String! + actorFkTableId: UUID + entityFkTableId: UUID prefix: String! apiName: String privateApiName: String } -"""A `DbUsageModule` edge in the connection.""" -type DbUsageModuleEdge { +"""A `ComputeLogModule` edge in the connection.""" +type ComputeLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `DbUsageModule` at the end of the edge.""" - node: DbUsageModule + """The `ComputeLogModule` at the end of the edge.""" + node: ComputeLogModule } """ -A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ComputeLogModule` object types. All fields are combined with a logical ‘and.’ """ -input DbUsageModuleFilter { +input ComputeLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7573,29 +7380,23 @@ input DbUsageModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `tableStatsLogTableId` field.""" - tableStatsLogTableId: UUIDFilter - - """Filter by the object’s `tableStatsLogTableName` field.""" - tableStatsLogTableName: StringFilter - - """Filter by the object’s `tableStatsDailyTableId` field.""" - tableStatsDailyTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `tableStatsDailyTableName` field.""" - tableStatsDailyTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `queryStatsLogTableId` field.""" - queryStatsLogTableId: UUIDFilter + """Filter by the object’s `computeLogTableId` field.""" + computeLogTableId: UUIDFilter - """Filter by the object’s `queryStatsLogTableName` field.""" - queryStatsLogTableName: StringFilter + """Filter by the object’s `computeLogTableName` field.""" + computeLogTableName: StringFilter - """Filter by the object’s `queryStatsDailyTableId` field.""" - queryStatsDailyTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `queryStatsDailyTableName` field.""" - queryStatsDailyTableName: StringFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter """Filter by the object’s `interval` field.""" interval: StringFilter @@ -7609,6 +7410,12 @@ input DbUsageModuleFilter { """Filter by the object’s `scope` field.""" scope: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -7619,17 +7426,17 @@ input DbUsageModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [DbUsageModuleFilter!] + and: [ComputeLogModuleFilter!] """Checks for any expressions in this list.""" - or: [DbUsageModuleFilter!] + or: [ComputeLogModuleFilter!] """Negates the expression.""" - not: DbUsageModuleFilter + not: ComputeLogModuleFilter } -"""Methods to use when ordering `DbUsageModule`.""" -enum DbUsageModuleOrderBy { +"""Methods to use when ordering `ComputeLogModule`.""" +enum ComputeLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7641,22 +7448,18 @@ enum DbUsageModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - TABLE_STATS_LOG_TABLE_ID_ASC - TABLE_STATS_LOG_TABLE_ID_DESC - TABLE_STATS_LOG_TABLE_NAME_ASC - TABLE_STATS_LOG_TABLE_NAME_DESC - TABLE_STATS_DAILY_TABLE_ID_ASC - TABLE_STATS_DAILY_TABLE_ID_DESC - TABLE_STATS_DAILY_TABLE_NAME_ASC - TABLE_STATS_DAILY_TABLE_NAME_DESC - QUERY_STATS_LOG_TABLE_ID_ASC - QUERY_STATS_LOG_TABLE_ID_DESC - QUERY_STATS_LOG_TABLE_NAME_ASC - QUERY_STATS_LOG_TABLE_NAME_DESC - QUERY_STATS_DAILY_TABLE_ID_ASC - QUERY_STATS_DAILY_TABLE_ID_DESC - QUERY_STATS_DAILY_TABLE_NAME_ASC - QUERY_STATS_DAILY_TABLE_NAME_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + COMPUTE_LOG_TABLE_ID_ASC + COMPUTE_LOG_TABLE_ID_DESC + COMPUTE_LOG_TABLE_NAME_ASC + COMPUTE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC INTERVAL_ASC INTERVAL_DESC RETENTION_ASC @@ -7665,6 +7468,10 @@ enum DbUsageModuleOrderBy { PREMAKE_DESC SCOPE_ASC SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC API_NAME_ASC @@ -7673,60 +7480,60 @@ enum DbUsageModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `NotificationsModule` values.""" -type NotificationsModuleConnection { - """A list of `NotificationsModule` objects.""" - nodes: [NotificationsModule]! +"""A connection to a list of `InferenceLogModule` values.""" +type InferenceLogModuleConnection { + """A list of `InferenceLogModule` objects.""" + nodes: [InferenceLogModule]! """ - A list of edges which contains the `NotificationsModule` and cursor to aid in pagination. + A list of edges which contains the `InferenceLogModule` and cursor to aid in pagination. """ - edges: [NotificationsModuleEdge]! + edges: [InferenceLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `NotificationsModule` you could get from the connection. + The count of *all* `InferenceLogModule` you could get from the connection. """ totalCount: Int! } -type NotificationsModule { +type InferenceLogModule { 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! + publicSchemaName: String + privateSchemaName: String + inferenceLogTableId: UUID! + inferenceLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! apiName: String privateApiName: String } -"""A `NotificationsModule` edge in the connection.""" -type NotificationsModuleEdge { +"""A `InferenceLogModule` edge in the connection.""" +type InferenceLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `NotificationsModule` at the end of the edge.""" - node: NotificationsModule + """The `InferenceLogModule` at the end of the edge.""" + node: InferenceLogModule } """ -A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `InferenceLogModule` object types. All fields are combined with a logical ‘and.’ """ -input NotificationsModuleFilter { +input InferenceLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7739,44 +7546,44 @@ input NotificationsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `notificationsTableId` field.""" - notificationsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `readStateTableId` field.""" - readStateTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `preferencesTableId` field.""" - preferencesTableId: UUIDFilter + """Filter by the object’s `inferenceLogTableId` field.""" + inferenceLogTableId: UUIDFilter - """Filter by the object’s `channelsTableId` field.""" - channelsTableId: UUIDFilter + """Filter by the object’s `inferenceLogTableName` field.""" + inferenceLogTableName: StringFilter - """Filter by the object’s `deliveryLogTableId` field.""" - deliveryLogTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `ownerTableId` field.""" - ownerTableId: UUIDFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `userSettingsTableId` field.""" - userSettingsTableId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `organizationSettingsTableId` field.""" - organizationSettingsTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `hasChannels` field.""" - hasChannels: BooleanFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter - """Filter by the object’s `hasPreferences` field.""" - hasPreferences: BooleanFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `hasSettingsExtension` field.""" - hasSettingsExtension: BooleanFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter - """Filter by the object’s `hasDigestMetadata` field.""" - hasDigestMetadata: BooleanFilter + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter - """Filter by the object’s `hasSubscriptions` field.""" - hasSubscriptions: BooleanFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -7785,17 +7592,17 @@ input NotificationsModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [NotificationsModuleFilter!] + and: [InferenceLogModuleFilter!] """Checks for any expressions in this list.""" - or: [NotificationsModuleFilter!] + or: [InferenceLogModuleFilter!] """Negates the expression.""" - not: NotificationsModuleFilter + not: InferenceLogModuleFilter } -"""Methods to use when ordering `NotificationsModule`.""" -enum NotificationsModuleOrderBy { +"""Methods to use when ordering `InferenceLogModule`.""" +enum InferenceLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7807,90 +7614,92 @@ enum NotificationsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - NOTIFICATIONS_TABLE_ID_ASC - NOTIFICATIONS_TABLE_ID_DESC - READ_STATE_TABLE_ID_ASC - READ_STATE_TABLE_ID_DESC - PREFERENCES_TABLE_ID_ASC - PREFERENCES_TABLE_ID_DESC - CHANNELS_TABLE_ID_ASC - CHANNELS_TABLE_ID_DESC - DELIVERY_LOG_TABLE_ID_ASC - DELIVERY_LOG_TABLE_ID_DESC - OWNER_TABLE_ID_ASC - OWNER_TABLE_ID_DESC - USER_SETTINGS_TABLE_ID_ASC - USER_SETTINGS_TABLE_ID_DESC - ORGANIZATION_SETTINGS_TABLE_ID_ASC - ORGANIZATION_SETTINGS_TABLE_ID_DESC - HAS_CHANNELS_ASC - HAS_CHANNELS_DESC - HAS_PREFERENCES_ASC - HAS_PREFERENCES_DESC - HAS_SETTINGS_EXTENSION_ASC - HAS_SETTINGS_EXTENSION_DESC - HAS_DIGEST_METADATA_ASC - HAS_DIGEST_METADATA_DESC - HAS_SUBSCRIPTIONS_ASC - HAS_SUBSCRIPTIONS_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + INFERENCE_LOG_TABLE_ID_ASC + INFERENCE_LOG_TABLE_ID_DESC + INFERENCE_LOG_TABLE_NAME_ASC + INFERENCE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC + PREFIX_ASC + PREFIX_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `PlansModule` values.""" -type PlansModuleConnection { - """A list of `PlansModule` objects.""" - nodes: [PlansModule]! +"""A connection to a list of `StorageLogModule` values.""" +type StorageLogModuleConnection { + """A list of `StorageLogModule` objects.""" + nodes: [StorageLogModule]! """ - A list of edges which contains the `PlansModule` and cursor to aid in pagination. + A list of edges which contains the `StorageLogModule` and cursor to aid in pagination. """ - edges: [PlansModuleEdge]! + edges: [StorageLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `PlansModule` you could get from the connection.""" + """ + The count of *all* `StorageLogModule` you could get from the connection. + """ totalCount: Int! } -type PlansModule { +type StorageLogModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - plansTableId: UUID! - plansTableName: String! - planLimitsTableId: UUID! - planLimitsTableName: String! - planPricingTableId: UUID - planOverridesTableId: UUID - planMeterLimitsTableId: UUID - planCapsTableId: UUID - applyPlanFunction: String! - applyPlanAggregateFunction: String! - applyBillingPlanFunction: String - applyPlanCapsFunction: String - prefix: String + publicSchemaName: String + privateSchemaName: String + storageLogTableId: UUID! + storageLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! + scope: String! + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String! apiName: String privateApiName: String } -"""A `PlansModule` edge in the connection.""" -type PlansModuleEdge { +"""A `StorageLogModule` edge in the connection.""" +type StorageLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `PlansModule` at the end of the edge.""" - node: PlansModule + """The `StorageLogModule` at the end of the edge.""" + node: StorageLogModule } """ -A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `StorageLogModule` object types. All fields are combined with a logical ‘and.’ """ -input PlansModuleFilter { +input StorageLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -7903,41 +7712,41 @@ input PlansModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `plansTableId` field.""" - plansTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `plansTableName` field.""" - plansTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `planLimitsTableId` field.""" - planLimitsTableId: UUIDFilter + """Filter by the object’s `storageLogTableId` field.""" + storageLogTableId: UUIDFilter - """Filter by the object’s `planLimitsTableName` field.""" - planLimitsTableName: StringFilter + """Filter by the object’s `storageLogTableName` field.""" + storageLogTableName: StringFilter - """Filter by the object’s `planPricingTableId` field.""" - planPricingTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `planOverridesTableId` field.""" - planOverridesTableId: UUIDFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `planMeterLimitsTableId` field.""" - planMeterLimitsTableId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `planCapsTableId` field.""" - planCapsTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `applyPlanFunction` field.""" - applyPlanFunction: StringFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter - """Filter by the object’s `applyPlanAggregateFunction` field.""" - applyPlanAggregateFunction: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `applyBillingPlanFunction` field.""" - applyBillingPlanFunction: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter - """Filter by the object’s `applyPlanCapsFunction` field.""" - applyPlanCapsFunction: StringFilter + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -7949,17 +7758,17 @@ input PlansModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [PlansModuleFilter!] + and: [StorageLogModuleFilter!] """Checks for any expressions in this list.""" - or: [PlansModuleFilter!] + or: [StorageLogModuleFilter!] """Negates the expression.""" - not: PlansModuleFilter + not: StorageLogModuleFilter } -"""Methods to use when ordering `PlansModule`.""" -enum PlansModuleOrderBy { +"""Methods to use when ordering `StorageLogModule`.""" +enum StorageLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -7971,30 +7780,30 @@ enum PlansModuleOrderBy { 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 - PLAN_PRICING_TABLE_ID_ASC - PLAN_PRICING_TABLE_ID_DESC - PLAN_OVERRIDES_TABLE_ID_ASC - PLAN_OVERRIDES_TABLE_ID_DESC - PLAN_METER_LIMITS_TABLE_ID_ASC - PLAN_METER_LIMITS_TABLE_ID_DESC - PLAN_CAPS_TABLE_ID_ASC - PLAN_CAPS_TABLE_ID_DESC - APPLY_PLAN_FUNCTION_ASC - APPLY_PLAN_FUNCTION_DESC - APPLY_PLAN_AGGREGATE_FUNCTION_ASC - APPLY_PLAN_AGGREGATE_FUNCTION_DESC - APPLY_BILLING_PLAN_FUNCTION_ASC - APPLY_BILLING_PLAN_FUNCTION_DESC - APPLY_PLAN_CAPS_FUNCTION_ASC - APPLY_PLAN_CAPS_FUNCTION_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + STORAGE_LOG_TABLE_ID_ASC + STORAGE_LOG_TABLE_ID_DESC + STORAGE_LOG_TABLE_NAME_ASC + STORAGE_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC API_NAME_ASC @@ -8003,62 +7812,60 @@ enum PlansModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `HierarchyModule` values.""" -type HierarchyModuleConnection { - """A list of `HierarchyModule` objects.""" - nodes: [HierarchyModule]! +"""A connection to a list of `TransferLogModule` values.""" +type TransferLogModuleConnection { + """A list of `TransferLogModule` objects.""" + nodes: [TransferLogModule]! """ - A list of edges which contains the `HierarchyModule` and cursor to aid in pagination. + A list of edges which contains the `TransferLogModule` and cursor to aid in pagination. """ - edges: [HierarchyModuleEdge]! + edges: [TransferLogModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `HierarchyModule` you could get from the connection. + The count of *all* `TransferLogModule` you could get from the connection. """ totalCount: Int! } -type HierarchyModule { +type TransferLogModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - chartEdgesTableId: UUID! - chartEdgesTableName: String! - hierarchySprtTableId: UUID! - hierarchySprtTableName: String! - chartEdgeGrantsTableId: UUID! - chartEdgeGrantsTableName: String! - entityTableId: UUID! - usersTableId: UUID! + publicSchemaName: String + privateSchemaName: String + transferLogTableId: UUID! + transferLogTableName: String! + usageDailyTableId: UUID! + usageDailyTableName: String! + interval: String! + retention: String! + premake: Int! scope: String! + actorFkTableId: UUID + entityFkTableId: UUID prefix: String! - privateSchemaName: String! - sprtTableName: String! - rebuildHierarchyFunction: String! - getSubordinatesFunction: String! - getManagersFunction: String! - isManagerOfFunction: String! - createdAt: Datetime! + apiName: String + privateApiName: String } -"""A `HierarchyModule` edge in the connection.""" -type HierarchyModuleEdge { +"""A `TransferLogModule` edge in the connection.""" +type TransferLogModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `HierarchyModule` at the end of the edge.""" - node: HierarchyModule + """The `TransferLogModule` at the end of the edge.""" + node: TransferLogModule } """ -A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `TransferLogModule` object types. All fields are combined with a logical ‘and.’ """ -input HierarchyModuleFilter { +input TransferLogModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -8071,69 +7878,63 @@ input HierarchyModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `chartEdgesTableId` field.""" - chartEdgesTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `chartEdgesTableName` field.""" - chartEdgesTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `hierarchySprtTableId` field.""" - hierarchySprtTableId: UUIDFilter + """Filter by the object’s `transferLogTableId` field.""" + transferLogTableId: UUIDFilter - """Filter by the object’s `hierarchySprtTableName` field.""" - hierarchySprtTableName: StringFilter + """Filter by the object’s `transferLogTableName` field.""" + transferLogTableName: StringFilter - """Filter by the object’s `chartEdgeGrantsTableId` field.""" - chartEdgeGrantsTableId: UUIDFilter + """Filter by the object’s `usageDailyTableId` field.""" + usageDailyTableId: UUIDFilter - """Filter by the object’s `chartEdgeGrantsTableName` field.""" - chartEdgeGrantsTableName: StringFilter + """Filter by the object’s `usageDailyTableName` field.""" + usageDailyTableName: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter """Filter by the object’s `scope` field.""" scope: StringFilter + """Filter by the object’s `actorFkTableId` field.""" + actorFkTableId: UUIDFilter + + """Filter by the object’s `entityFkTableId` field.""" + entityFkTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `privateSchemaName` field.""" - privateSchemaName: StringFilter - - """Filter by the object’s `sprtTableName` field.""" - sprtTableName: StringFilter - - """Filter by the object’s `rebuildHierarchyFunction` field.""" - rebuildHierarchyFunction: StringFilter - - """Filter by the object’s `getSubordinatesFunction` field.""" - getSubordinatesFunction: StringFilter - - """Filter by the object’s `getManagersFunction` field.""" - getManagersFunction: StringFilter - - """Filter by the object’s `isManagerOfFunction` field.""" - isManagerOfFunction: StringFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [HierarchyModuleFilter!] + and: [TransferLogModuleFilter!] """Checks for any expressions in this list.""" - or: [HierarchyModuleFilter!] + or: [TransferLogModuleFilter!] """Negates the expression.""" - not: HierarchyModuleFilter + not: TransferLogModuleFilter } -"""Methods to use when ordering `HierarchyModule`.""" -enum HierarchyModuleOrderBy { +"""Methods to use when ordering `TransferLogModule`.""" +enum TransferLogModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8145,97 +7946,92 @@ enum HierarchyModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - CHART_EDGES_TABLE_ID_ASC - CHART_EDGES_TABLE_ID_DESC - CHART_EDGES_TABLE_NAME_ASC - CHART_EDGES_TABLE_NAME_DESC - HIERARCHY_SPRT_TABLE_ID_ASC - HIERARCHY_SPRT_TABLE_ID_DESC - HIERARCHY_SPRT_TABLE_NAME_ASC - HIERARCHY_SPRT_TABLE_NAME_DESC - CHART_EDGE_GRANTS_TABLE_ID_ASC - CHART_EDGE_GRANTS_TABLE_ID_DESC - CHART_EDGE_GRANTS_TABLE_NAME_ASC - CHART_EDGE_GRANTS_TABLE_NAME_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TRANSFER_LOG_TABLE_ID_ASC + TRANSFER_LOG_TABLE_ID_DESC + TRANSFER_LOG_TABLE_NAME_ASC + TRANSFER_LOG_TABLE_NAME_DESC + USAGE_DAILY_TABLE_ID_ASC + USAGE_DAILY_TABLE_ID_DESC + USAGE_DAILY_TABLE_NAME_ASC + USAGE_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC SCOPE_ASC SCOPE_DESC + ACTOR_FK_TABLE_ID_ASC + ACTOR_FK_TABLE_ID_DESC + ENTITY_FK_TABLE_ID_ASC + ENTITY_FK_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC - PRIVATE_SCHEMA_NAME_ASC - PRIVATE_SCHEMA_NAME_DESC - SPRT_TABLE_NAME_ASC - SPRT_TABLE_NAME_DESC - REBUILD_HIERARCHY_FUNCTION_ASC - REBUILD_HIERARCHY_FUNCTION_DESC - GET_SUBORDINATES_FUNCTION_ASC - GET_SUBORDINATES_FUNCTION_DESC - GET_MANAGERS_FUNCTION_ASC - GET_MANAGERS_FUNCTION_DESC - IS_MANAGER_OF_FUNCTION_ASC - IS_MANAGER_OF_FUNCTION_DESC - CREATED_AT_ASC - CREATED_AT_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `BillingModule` values.""" -type BillingModuleConnection { - """A list of `BillingModule` objects.""" - nodes: [BillingModule]! +"""A connection to a list of `PlansModule` values.""" +type PlansModuleConnection { + """A list of `PlansModule` objects.""" + nodes: [PlansModule]! """ - A list of edges which contains the `BillingModule` and cursor to aid in pagination. + A list of edges which contains the `PlansModule` and cursor to aid in pagination. """ - edges: [BillingModuleEdge]! + edges: [PlansModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `BillingModule` you could get from the connection.""" + """The count of *all* `PlansModule` you could get from the connection.""" totalCount: Int! } -type BillingModule { +type PlansModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - metersTableId: UUID! - metersTableName: String! - planSubscriptionsTableId: UUID! - planSubscriptionsTableName: String! - ledgerTableId: UUID! - ledgerTableName: String! - balancesTableId: UUID! - balancesTableName: String! - meterCreditsTableId: UUID! - meterCreditsTableName: String! - meterSourcesTableId: UUID! - meterSourcesTableName: String! - meterDefaultsTableId: UUID! - meterDefaultsTableName: String! - recordUsageFunction: String! + publicSchemaName: String + privateSchemaName: String + plansTableId: UUID! + plansTableName: String! + planLimitsTableId: UUID! + planLimitsTableName: String! + planPricingTableId: UUID + planOverridesTableId: UUID + planMeterLimitsTableId: UUID + planCapsTableId: UUID + applyPlanFunction: String! + applyPlanAggregateFunction: String! + applyBillingPlanFunction: String + applyPlanCapsFunction: String prefix: String apiName: String privateApiName: String } -"""A `BillingModule` edge in the connection.""" -type BillingModuleEdge { +"""A `PlansModule` edge in the connection.""" +type PlansModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `BillingModule` at the end of the edge.""" - node: BillingModule + """The `PlansModule` at the end of the edge.""" + node: PlansModule } """ -A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ """ -input BillingModuleFilter { +input PlansModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -8248,50 +8044,47 @@ input BillingModuleFilter { """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 `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `planSubscriptionsTableId` field.""" - planSubscriptionsTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `planSubscriptionsTableName` field.""" - planSubscriptionsTableName: StringFilter + """Filter by the object’s `plansTableId` field.""" + plansTableId: UUIDFilter - """Filter by the object’s `ledgerTableId` field.""" - ledgerTableId: UUIDFilter + """Filter by the object’s `plansTableName` field.""" + plansTableName: StringFilter - """Filter by the object’s `ledgerTableName` field.""" - ledgerTableName: StringFilter + """Filter by the object’s `planLimitsTableId` field.""" + planLimitsTableId: UUIDFilter - """Filter by the object’s `balancesTableId` field.""" - balancesTableId: UUIDFilter + """Filter by the object’s `planLimitsTableName` field.""" + planLimitsTableName: StringFilter - """Filter by the object’s `balancesTableName` field.""" - balancesTableName: StringFilter + """Filter by the object’s `planPricingTableId` field.""" + planPricingTableId: UUIDFilter - """Filter by the object’s `meterCreditsTableId` field.""" - meterCreditsTableId: UUIDFilter + """Filter by the object’s `planOverridesTableId` field.""" + planOverridesTableId: UUIDFilter - """Filter by the object’s `meterCreditsTableName` field.""" - meterCreditsTableName: StringFilter + """Filter by the object’s `planMeterLimitsTableId` field.""" + planMeterLimitsTableId: UUIDFilter - """Filter by the object’s `meterSourcesTableId` field.""" - meterSourcesTableId: UUIDFilter + """Filter by the object’s `planCapsTableId` field.""" + planCapsTableId: UUIDFilter - """Filter by the object’s `meterSourcesTableName` field.""" - meterSourcesTableName: StringFilter + """Filter by the object’s `applyPlanFunction` field.""" + applyPlanFunction: StringFilter - """Filter by the object’s `meterDefaultsTableId` field.""" - meterDefaultsTableId: UUIDFilter + """Filter by the object’s `applyPlanAggregateFunction` field.""" + applyPlanAggregateFunction: StringFilter - """Filter by the object’s `meterDefaultsTableName` field.""" - meterDefaultsTableName: StringFilter + """Filter by the object’s `applyBillingPlanFunction` field.""" + applyBillingPlanFunction: StringFilter - """Filter by the object’s `recordUsageFunction` field.""" - recordUsageFunction: StringFilter + """Filter by the object’s `applyPlanCapsFunction` field.""" + applyPlanCapsFunction: StringFilter """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -8303,17 +8096,17 @@ input BillingModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [BillingModuleFilter!] + and: [PlansModuleFilter!] """Checks for any expressions in this list.""" - or: [BillingModuleFilter!] + or: [PlansModuleFilter!] """Negates the expression.""" - not: BillingModuleFilter + not: PlansModuleFilter } -"""Methods to use when ordering `BillingModule`.""" -enum BillingModuleOrderBy { +"""Methods to use when ordering `PlansModule`.""" +enum PlansModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8325,48 +8118,46 @@ enum BillingModuleOrderBy { 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 - METER_CREDITS_TABLE_ID_ASC - METER_CREDITS_TABLE_ID_DESC - METER_CREDITS_TABLE_NAME_ASC - METER_CREDITS_TABLE_NAME_DESC - METER_SOURCES_TABLE_ID_ASC - METER_SOURCES_TABLE_ID_DESC - METER_SOURCES_TABLE_NAME_ASC - METER_SOURCES_TABLE_NAME_DESC - METER_DEFAULTS_TABLE_ID_ASC - METER_DEFAULTS_TABLE_ID_DESC - METER_DEFAULTS_TABLE_NAME_ASC - METER_DEFAULTS_TABLE_NAME_DESC - RECORD_USAGE_FUNCTION_ASC - RECORD_USAGE_FUNCTION_DESC - PREFIX_ASC - PREFIX_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC -} - -"""A connection to a list of `BillingProviderModule` values.""" -type BillingProviderModuleConnection { - """A list of `BillingProviderModule` objects.""" - nodes: [BillingProviderModule]! + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_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 + PLAN_PRICING_TABLE_ID_ASC + PLAN_PRICING_TABLE_ID_DESC + PLAN_OVERRIDES_TABLE_ID_ASC + PLAN_OVERRIDES_TABLE_ID_DESC + PLAN_METER_LIMITS_TABLE_ID_ASC + PLAN_METER_LIMITS_TABLE_ID_DESC + PLAN_CAPS_TABLE_ID_ASC + PLAN_CAPS_TABLE_ID_DESC + APPLY_PLAN_FUNCTION_ASC + APPLY_PLAN_FUNCTION_DESC + APPLY_PLAN_AGGREGATE_FUNCTION_ASC + APPLY_PLAN_AGGREGATE_FUNCTION_DESC + APPLY_BILLING_PLAN_FUNCTION_ASC + APPLY_BILLING_PLAN_FUNCTION_DESC + APPLY_PLAN_CAPS_FUNCTION_ASC + APPLY_PLAN_CAPS_FUNCTION_DESC + PREFIX_ASC + PREFIX_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `BillingProviderModule` values.""" +type BillingProviderModuleConnection { + """A list of `BillingProviderModule` objects.""" + nodes: [BillingProviderModule]! """ A list of edges which contains the `BillingProviderModule` and cursor to aid in pagination. @@ -8547,61 +8338,61 @@ enum BillingProviderModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `ProfilesModule` values.""" -type ProfilesModuleConnection { - """A list of `ProfilesModule` objects.""" - nodes: [ProfilesModule]! +"""A connection to a list of `DbUsageModule` values.""" +type DbUsageModuleConnection { + """A list of `DbUsageModule` objects.""" + nodes: [DbUsageModule]! """ - A list of edges which contains the `ProfilesModule` and cursor to aid in pagination. + A list of edges which contains the `DbUsageModule` and cursor to aid in pagination. """ - edges: [ProfilesModuleEdge]! + edges: [DbUsageModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `ProfilesModule` you could get from the connection.""" + """The count of *all* `DbUsageModule` you could get from the connection.""" totalCount: Int! } -type ProfilesModule { +type DbUsageModule { 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! + publicSchemaName: String + privateSchemaName: String + tableStatsLogTableId: UUID! + tableStatsLogTableName: String! + tableStatsDailyTableId: UUID! + tableStatsDailyTableName: String! + queryStatsLogTableId: UUID! + queryStatsLogTableName: String! + queryStatsDailyTableId: UUID! + queryStatsDailyTableName: String! + interval: String! + retention: String! + premake: Int! scope: String! prefix: String! - entityTableId: UUID - actorTableId: UUID! - permissionsTableId: UUID! - membershipsTableId: UUID! + defaultPermissions: [String] apiName: String privateApiName: String } -"""A `ProfilesModule` edge in the connection.""" -type ProfilesModuleEdge { +"""A `DbUsageModule` edge in the connection.""" +type DbUsageModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `ProfilesModule` at the end of the edge.""" - node: ProfilesModule + """The `DbUsageModule` at the end of the edge.""" + node: DbUsageModule } """ -A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `DbUsageModule` object types. All fields are combined with a logical ‘and.’ """ -input ProfilesModuleFilter { +input DbUsageModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -8614,35 +8405,44 @@ input ProfilesModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `profilePermissionsTableId` field.""" - profilePermissionsTableId: UUIDFilter + """Filter by the object’s `tableStatsLogTableId` field.""" + tableStatsLogTableId: UUIDFilter - """Filter by the object’s `profilePermissionsTableName` field.""" - profilePermissionsTableName: StringFilter + """Filter by the object’s `tableStatsLogTableName` field.""" + tableStatsLogTableName: StringFilter - """Filter by the object’s `profileGrantsTableId` field.""" - profileGrantsTableId: UUIDFilter + """Filter by the object’s `tableStatsDailyTableId` field.""" + tableStatsDailyTableId: UUIDFilter - """Filter by the object’s `profileGrantsTableName` field.""" - profileGrantsTableName: StringFilter + """Filter by the object’s `tableStatsDailyTableName` field.""" + tableStatsDailyTableName: StringFilter - """Filter by the object’s `profileDefinitionGrantsTableId` field.""" - profileDefinitionGrantsTableId: UUIDFilter + """Filter by the object’s `queryStatsLogTableId` field.""" + queryStatsLogTableId: UUIDFilter - """Filter by the object’s `profileDefinitionGrantsTableName` field.""" - profileDefinitionGrantsTableName: StringFilter + """Filter by the object’s `queryStatsLogTableName` field.""" + queryStatsLogTableName: StringFilter - """Filter by the object’s `profileTemplatesTableId` field.""" - profileTemplatesTableId: UUIDFilter + """Filter by the object’s `queryStatsDailyTableId` field.""" + queryStatsDailyTableId: UUIDFilter - """Filter by the object’s `profileTemplatesTableName` field.""" - profileTemplatesTableName: StringFilter + """Filter by the object’s `queryStatsDailyTableName` field.""" + queryStatsDailyTableName: StringFilter + + """Filter by the object’s `interval` field.""" + interval: StringFilter + + """Filter by the object’s `retention` field.""" + retention: StringFilter + + """Filter by the object’s `premake` field.""" + premake: IntFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -8650,17 +8450,8 @@ input ProfilesModuleFilter { """Filter by the object’s `prefix` field.""" prefix: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter - - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter - - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter - - """Filter by the object’s `membershipsTableId` field.""" - membershipsTableId: UUIDFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -8669,17 +8460,17 @@ input ProfilesModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [ProfilesModuleFilter!] + and: [DbUsageModuleFilter!] """Checks for any expressions in this list.""" - or: [ProfilesModuleFilter!] + or: [DbUsageModuleFilter!] """Negates the expression.""" - not: ProfilesModuleFilter + not: DbUsageModuleFilter } -"""Methods to use when ordering `ProfilesModule`.""" -enum ProfilesModuleOrderBy { +"""Methods to use when ordering `DbUsageModule`.""" +enum DbUsageModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -8691,83 +8482,269 @@ enum ProfilesModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - PROFILE_PERMISSIONS_TABLE_ID_ASC - PROFILE_PERMISSIONS_TABLE_ID_DESC - PROFILE_PERMISSIONS_TABLE_NAME_ASC - PROFILE_PERMISSIONS_TABLE_NAME_DESC - PROFILE_GRANTS_TABLE_ID_ASC - PROFILE_GRANTS_TABLE_ID_DESC - PROFILE_GRANTS_TABLE_NAME_ASC - PROFILE_GRANTS_TABLE_NAME_DESC - PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC - 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 + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_STATS_LOG_TABLE_ID_ASC + TABLE_STATS_LOG_TABLE_ID_DESC + TABLE_STATS_LOG_TABLE_NAME_ASC + TABLE_STATS_LOG_TABLE_NAME_DESC + TABLE_STATS_DAILY_TABLE_ID_ASC + TABLE_STATS_DAILY_TABLE_ID_DESC + TABLE_STATS_DAILY_TABLE_NAME_ASC + TABLE_STATS_DAILY_TABLE_NAME_DESC + QUERY_STATS_LOG_TABLE_ID_ASC + QUERY_STATS_LOG_TABLE_ID_DESC + QUERY_STATS_LOG_TABLE_NAME_ASC + QUERY_STATS_LOG_TABLE_NAME_DESC + QUERY_STATS_DAILY_TABLE_ID_ASC + QUERY_STATS_DAILY_TABLE_ID_DESC + QUERY_STATS_DAILY_TABLE_NAME_ASC + QUERY_STATS_DAILY_TABLE_NAME_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - PERMISSIONS_TABLE_ID_ASC - PERMISSIONS_TABLE_ID_DESC - MEMBERSHIPS_TABLE_ID_ASC - MEMBERSHIPS_TABLE_ID_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `PermissionsModule` values.""" -type PermissionsModuleConnection { - """A list of `PermissionsModule` objects.""" - nodes: [PermissionsModule]! +"""A connection to a list of `HierarchyModule` values.""" +type HierarchyModuleConnection { + """A list of `HierarchyModule` objects.""" + nodes: [HierarchyModule]! """ - A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + A list of edges which contains the `HierarchyModule` and cursor to aid in pagination. """ - edges: [PermissionsModuleEdge]! + edges: [HierarchyModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `PermissionsModule` you could get from the connection. + The count of *all* `HierarchyModule` you could get from the connection. """ totalCount: Int! } -type PermissionsModule { +type HierarchyModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - tableId: UUID! - tableName: String! - defaultTableId: UUID! - defaultTableName: String! - bitlen: Int! + chartEdgesTableId: UUID! + chartEdgesTableName: String! + hierarchySprtTableId: UUID! + hierarchySprtTableName: String! + chartEdgeGrantsTableId: UUID! + chartEdgeGrantsTableName: String! + entityTableId: UUID! + usersTableId: UUID! scope: String! prefix: String! - entityTableId: UUID - actorTableId: UUID! - getPaddedMask: String! - getMask: String! - getByMask: String! - getMaskByName: String! - apiName: String - privateApiName: String + privateSchemaName: String! + sprtTableName: String! + rebuildHierarchyFunction: String! + getSubordinatesFunction: String! + getManagersFunction: String! + isManagerOfFunction: String! + defaultPermissions: [String] + createdAt: Datetime! +} + +"""A `HierarchyModule` edge in the connection.""" +type HierarchyModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `HierarchyModule` at the end of the edge.""" + node: HierarchyModule +} + +""" +A filter to be used against `HierarchyModule` object types. All fields are combined with a logical ‘and.’ +""" +input HierarchyModuleFilter { + """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 `chartEdgesTableId` field.""" + chartEdgesTableId: UUIDFilter + + """Filter by the object’s `chartEdgesTableName` field.""" + chartEdgesTableName: StringFilter + + """Filter by the object’s `hierarchySprtTableId` field.""" + hierarchySprtTableId: UUIDFilter + + """Filter by the object’s `hierarchySprtTableName` field.""" + hierarchySprtTableName: StringFilter + + """Filter by the object’s `chartEdgeGrantsTableId` field.""" + chartEdgeGrantsTableId: UUIDFilter + + """Filter by the object’s `chartEdgeGrantsTableName` field.""" + chartEdgeGrantsTableName: StringFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `sprtTableName` field.""" + sprtTableName: StringFilter + + """Filter by the object’s `rebuildHierarchyFunction` field.""" + rebuildHierarchyFunction: StringFilter + + """Filter by the object’s `getSubordinatesFunction` field.""" + getSubordinatesFunction: StringFilter + + """Filter by the object’s `getManagersFunction` field.""" + getManagersFunction: StringFilter + + """Filter by the object’s `isManagerOfFunction` field.""" + isManagerOfFunction: StringFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [HierarchyModuleFilter!] + + """Checks for any expressions in this list.""" + or: [HierarchyModuleFilter!] + + """Negates the expression.""" + not: HierarchyModuleFilter +} + +"""Methods to use when ordering `HierarchyModule`.""" +enum HierarchyModuleOrderBy { + 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 + CHART_EDGES_TABLE_ID_ASC + CHART_EDGES_TABLE_ID_DESC + CHART_EDGES_TABLE_NAME_ASC + CHART_EDGES_TABLE_NAME_DESC + HIERARCHY_SPRT_TABLE_ID_ASC + HIERARCHY_SPRT_TABLE_ID_DESC + HIERARCHY_SPRT_TABLE_NAME_ASC + HIERARCHY_SPRT_TABLE_NAME_DESC + CHART_EDGE_GRANTS_TABLE_ID_ASC + CHART_EDGE_GRANTS_TABLE_ID_DESC + CHART_EDGE_GRANTS_TABLE_NAME_ASC + CHART_EDGE_GRANTS_TABLE_NAME_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + SPRT_TABLE_NAME_ASC + SPRT_TABLE_NAME_DESC + REBUILD_HIERARCHY_FUNCTION_ASC + REBUILD_HIERARCHY_FUNCTION_DESC + GET_SUBORDINATES_FUNCTION_ASC + GET_SUBORDINATES_FUNCTION_DESC + GET_MANAGERS_FUNCTION_ASC + GET_MANAGERS_FUNCTION_DESC + IS_MANAGER_OF_FUNCTION_ASC + IS_MANAGER_OF_FUNCTION_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC +} + +"""A connection to a list of `PermissionsModule` values.""" +type PermissionsModuleConnection { + """A list of `PermissionsModule` objects.""" + nodes: [PermissionsModule]! + + """ + A list of edges which contains the `PermissionsModule` and cursor to aid in pagination. + """ + edges: [PermissionsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `PermissionsModule` you could get from the connection. + """ + totalCount: Int! +} + +type PermissionsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + bitlen: Int! + scope: String! + prefix: String! + entityTableId: UUID + actorTableId: UUID! + getPaddedMask: String! + getMask: String! + getByMask: String! + getMaskByName: String! + apiName: String + privateApiName: String } """A `PermissionsModule` edge in the connection.""" @@ -8795,6 +8772,12 @@ input PermissionsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + """Filter by the object’s `tableId` field.""" tableId: UUIDFilter @@ -8863,6 +8846,10 @@ enum PermissionsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC TABLE_ID_ASC TABLE_ID_DESC TABLE_NAME_ASC @@ -8895,301 +8882,145 @@ enum PermissionsModuleOrderBy { PRIVATE_API_NAME_DESC } -"""A connection to a list of `RelationProvision` values.""" -type RelationProvisionConnection { - """A list of `RelationProvision` objects.""" - nodes: [RelationProvision]! +"""A connection to a list of `NotificationsModule` values.""" +type NotificationsModuleConnection { + """A list of `NotificationsModule` objects.""" + nodes: [NotificationsModule]! """ - A list of edges which contains the `RelationProvision` and cursor to aid in pagination. + A list of edges which contains the `NotificationsModule` and cursor to aid in pagination. """ - edges: [RelationProvisionEdge]! + edges: [NotificationsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `RelationProvision` you could get from the connection. + The count of *all* `NotificationsModule` you could get from the connection. """ totalCount: Int! } -""" -Provisions relational structure between tables. Supports four relation types: - - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). - - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. - - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). - - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. - This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. - All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. - The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. -""" -type RelationProvision { - """Unique identifier for this relation provision row.""" +type NotificationsModule { id: UUID! - - """ - The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. - """ databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + notificationsTableId: UUID! + readStateTableId: UUID! + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + suppressionsTableId: UUID + ownerTableId: UUID! + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean! + hasPreferences: Boolean! + hasSettingsExtension: Boolean! + hasDigestMetadata: Boolean! + hasSubscriptions: Boolean! + defaultPermissions: [String] + apiName: String + privateApiName: String +} - """ - The type of relation to create. Uses SuperCase naming: - - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. - - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. - - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. - - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). - Each relation type uses a different subset of columns on this table. Required. - """ - relationType: String! - - """ - The source table in the relation. Required. - - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). - - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. - - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). - - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. - """ - sourceTableId: UUID! - - """ - The target table in the relation. Required. - - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). - - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). - - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). - - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. - """ - targetTableId: UUID! - - """ - FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. - - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). - - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). - For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. - Ignored for RelationManyToMany — use source_field_name/target_field_name instead. - """ - fieldName: String - - """ - FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). - """ - deleteAction: String - - """ - Whether the FK field is NOT NULL. Defaults to true. - - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). - - RelationHasMany: set to false if the child can exist without a parent. - - RelationHasOne: typically true. - Ignored for RelationManyToMany (junction FK fields are always required). - """ - isRequired: Boolean! - - """ - Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. - When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. - When is_required is true, api_required is ignored (the field is already required at both levels). - Ignored for RelationManyToMany (junction FK fields are always required). - """ - apiRequired: Boolean! - - """ - For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). - - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. - - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. - Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionTableId: UUID! - - """ - For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionTableName: String - - """ - For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. - """ - junctionSchemaId: UUID - - """ - For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. - """ - sourceFieldName: String - - """ - For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. - """ - targetFieldName: String - - """ - For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. - - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. - - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. - use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. - Ignored for RelationBelongsTo/RelationHasOne. - """ - useCompositeKey: Boolean! - - """ - Whether to create a btree index on FK fields created by this relation. Defaults to true. - PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). - Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. - - RelationBelongsTo: creates an index on the FK field on the source table. - - RelationHasMany: creates an index on the FK field on the target table. - - RelationHasOne: skipped — the unique constraint already creates an implicit index. - - RelationManyToMany: creates indexes on both FK fields on the junction table. - Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. - """ - createIndex: Boolean! - - """ - For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. - When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates - clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). - When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. - Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - exposeInApi: Boolean! - - """ - For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. - Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. - Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - nodes: JSON! - - """ - For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. - """ - grants: JSON! - - """ - For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. - Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. - Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). - Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. - """ - policies: JSON! - - """ - Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. - """ - outFieldId: UUID - - """ - Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. - """ - outJunctionTableId: UUID - - """ - Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. - """ - outSourceFieldId: UUID - - """ - Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. - """ - outTargetFieldId: UUID -} - -"""A `RelationProvision` edge in the connection.""" -type RelationProvisionEdge { +"""A `NotificationsModule` edge in the connection.""" +type NotificationsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RelationProvision` at the end of the edge.""" - node: RelationProvision + """The `NotificationsModule` at the end of the edge.""" + node: NotificationsModule } """ -A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `NotificationsModule` object types. All fields are combined with a logical ‘and.’ """ -input RelationProvisionFilter { +input NotificationsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `relationType` field.""" - relationType: StringFilter - - """Filter by the object’s `sourceTableId` field.""" - sourceTableId: UUIDFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `targetTableId` field.""" - targetTableId: UUIDFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `fieldName` field.""" - fieldName: StringFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `deleteAction` field.""" - deleteAction: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `isRequired` field.""" - isRequired: BooleanFilter + """Filter by the object’s `notificationsTableId` field.""" + notificationsTableId: UUIDFilter - """Filter by the object’s `apiRequired` field.""" - apiRequired: BooleanFilter + """Filter by the object’s `readStateTableId` field.""" + readStateTableId: UUIDFilter - """Filter by the object’s `junctionTableId` field.""" - junctionTableId: UUIDFilter + """Filter by the object’s `preferencesTableId` field.""" + preferencesTableId: UUIDFilter - """Filter by the object’s `junctionTableName` field.""" - junctionTableName: StringFilter + """Filter by the object’s `channelsTableId` field.""" + channelsTableId: UUIDFilter - """Filter by the object’s `junctionSchemaId` field.""" - junctionSchemaId: UUIDFilter + """Filter by the object’s `deliveryLogTableId` field.""" + deliveryLogTableId: UUIDFilter - """Filter by the object’s `sourceFieldName` field.""" - sourceFieldName: StringFilter + """Filter by the object’s `suppressionsTableId` field.""" + suppressionsTableId: UUIDFilter - """Filter by the object’s `targetFieldName` field.""" - targetFieldName: StringFilter + """Filter by the object’s `ownerTableId` field.""" + ownerTableId: UUIDFilter - """Filter by the object’s `useCompositeKey` field.""" - useCompositeKey: BooleanFilter + """Filter by the object’s `userSettingsTableId` field.""" + userSettingsTableId: UUIDFilter - """Filter by the object’s `createIndex` field.""" - createIndex: BooleanFilter + """Filter by the object’s `organizationSettingsTableId` field.""" + organizationSettingsTableId: UUIDFilter - """Filter by the object’s `exposeInApi` field.""" - exposeInApi: BooleanFilter + """Filter by the object’s `hasChannels` field.""" + hasChannels: BooleanFilter - """Filter by the object’s `nodes` field.""" - nodes: JSONFilter + """Filter by the object’s `hasPreferences` field.""" + hasPreferences: BooleanFilter - """Filter by the object’s `grants` field.""" - grants: JSONFilter + """Filter by the object’s `hasSettingsExtension` field.""" + hasSettingsExtension: BooleanFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter + """Filter by the object’s `hasDigestMetadata` field.""" + hasDigestMetadata: BooleanFilter - """Filter by the object’s `outFieldId` field.""" - outFieldId: UUIDFilter + """Filter by the object’s `hasSubscriptions` field.""" + hasSubscriptions: BooleanFilter - """Filter by the object’s `outJunctionTableId` field.""" - outJunctionTableId: UUIDFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter - """Filter by the object’s `outSourceFieldId` field.""" - outSourceFieldId: UUIDFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `outTargetFieldId` field.""" - outTargetFieldId: UUIDFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [RelationProvisionFilter!] + and: [NotificationsModuleFilter!] """Checks for any expressions in this list.""" - or: [RelationProvisionFilter!] + or: [NotificationsModuleFilter!] """Negates the expression.""" - not: RelationProvisionFilter + not: NotificationsModuleFilter } -"""Methods to use when ordering `RelationProvision`.""" -enum RelationProvisionOrderBy { +"""Methods to use when ordering `NotificationsModule`.""" +enum NotificationsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9197,111 +9028,107 @@ enum RelationProvisionOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - RELATION_TYPE_ASC - RELATION_TYPE_DESC - SOURCE_TABLE_ID_ASC - SOURCE_TABLE_ID_DESC - TARGET_TABLE_ID_ASC - TARGET_TABLE_ID_DESC - FIELD_NAME_ASC - FIELD_NAME_DESC - DELETE_ACTION_ASC - DELETE_ACTION_DESC - IS_REQUIRED_ASC - IS_REQUIRED_DESC - API_REQUIRED_ASC - API_REQUIRED_DESC - JUNCTION_TABLE_ID_ASC - JUNCTION_TABLE_ID_DESC - JUNCTION_TABLE_NAME_ASC - JUNCTION_TABLE_NAME_DESC - JUNCTION_SCHEMA_ID_ASC - JUNCTION_SCHEMA_ID_DESC - SOURCE_FIELD_NAME_ASC - SOURCE_FIELD_NAME_DESC - TARGET_FIELD_NAME_ASC - TARGET_FIELD_NAME_DESC - USE_COMPOSITE_KEY_ASC - USE_COMPOSITE_KEY_DESC - CREATE_INDEX_ASC - CREATE_INDEX_DESC - EXPOSE_IN_API_ASC - EXPOSE_IN_API_DESC - NODES_ASC - NODES_DESC - GRANTS_ASC - GRANTS_DESC - POLICIES_ASC - POLICIES_DESC - OUT_FIELD_ID_ASC - OUT_FIELD_ID_DESC - OUT_JUNCTION_TABLE_ID_ASC - OUT_JUNCTION_TABLE_ID_DESC - OUT_SOURCE_FIELD_ID_ASC - OUT_SOURCE_FIELD_ID_DESC - OUT_TARGET_FIELD_ID_ASC - OUT_TARGET_FIELD_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + NOTIFICATIONS_TABLE_ID_ASC + NOTIFICATIONS_TABLE_ID_DESC + READ_STATE_TABLE_ID_ASC + READ_STATE_TABLE_ID_DESC + PREFERENCES_TABLE_ID_ASC + PREFERENCES_TABLE_ID_DESC + CHANNELS_TABLE_ID_ASC + CHANNELS_TABLE_ID_DESC + DELIVERY_LOG_TABLE_ID_ASC + DELIVERY_LOG_TABLE_ID_DESC + SUPPRESSIONS_TABLE_ID_ASC + SUPPRESSIONS_TABLE_ID_DESC + OWNER_TABLE_ID_ASC + OWNER_TABLE_ID_DESC + USER_SETTINGS_TABLE_ID_ASC + USER_SETTINGS_TABLE_ID_DESC + ORGANIZATION_SETTINGS_TABLE_ID_ASC + ORGANIZATION_SETTINGS_TABLE_ID_DESC + HAS_CHANNELS_ASC + HAS_CHANNELS_DESC + HAS_PREFERENCES_ASC + HAS_PREFERENCES_DESC + HAS_SETTINGS_EXTENSION_ASC + HAS_SETTINGS_EXTENSION_DESC + HAS_DIGEST_METADATA_ASC + HAS_DIGEST_METADATA_DESC + HAS_SUBSCRIPTIONS_ASC + HAS_SUBSCRIPTIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `FunctionModule` values.""" -type FunctionModuleConnection { - """A list of `FunctionModule` objects.""" - nodes: [FunctionModule]! +"""A connection to a list of `ProfilesModule` values.""" +type ProfilesModuleConnection { + """A list of `ProfilesModule` objects.""" + nodes: [ProfilesModule]! """ - A list of edges which contains the `FunctionModule` and cursor to aid in pagination. + A list of edges which contains the `ProfilesModule` and cursor to aid in pagination. """ - edges: [FunctionModuleEdge]! + edges: [ProfilesModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `FunctionModule` you could get from the connection.""" + """The count of *all* `ProfilesModule` you could get from the connection.""" totalCount: Int! } -type FunctionModule { +type ProfilesModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! publicSchemaName: String privateSchemaName: String - definitionsTableId: UUID! - invocationsTableId: UUID! - executionLogsTableId: UUID! - secretDefinitionsTableId: UUID! - requirementsTableId: UUID! - configDefinitionsTableId: UUID! - configRequirementsTableId: UUID! - definitionsTableName: String! - invocationsTableName: String! - executionLogsTableName: String! - secretDefinitionsTableName: String! - requirementsTableName: String! - configRequirementsTableName: String! - apiName: String - privateApiName: String + tableId: UUID! + tableName: String! + profilePermissionsTableId: UUID! + profilePermissionsTableName: String! + profileGrantsTableId: UUID! + profileGrantsTableName: String! + profileDefinitionGrantsTableId: UUID! + profileDefinitionGrantsTableName: String! + profileTemplatesTableId: UUID! + profileTemplatesTableName: String! scope: String! prefix: String! entityTableId: UUID - policies: JSON - provisions: JSON + actorTableId: UUID! + permissionsTableId: UUID! + membershipsTableId: UUID! + apiName: String + privateApiName: String } -"""A `FunctionModule` edge in the connection.""" -type FunctionModuleEdge { +"""A `ProfilesModule` edge in the connection.""" +type ProfilesModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `FunctionModule` at the end of the edge.""" - node: FunctionModule + """The `ProfilesModule` at the end of the edge.""" + node: ProfilesModule } """ -A filter to be used against `FunctionModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `ProfilesModule` object types. All fields are combined with a logical ‘and.’ """ -input FunctionModuleFilter { +input ProfilesModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -9320,50 +9147,35 @@ input FunctionModuleFilter { """Filter by the object’s `privateSchemaName` field.""" privateSchemaName: StringFilter - """Filter by the object’s `definitionsTableId` field.""" - definitionsTableId: UUIDFilter - - """Filter by the object’s `invocationsTableId` field.""" - invocationsTableId: UUIDFilter - - """Filter by the object’s `executionLogsTableId` field.""" - executionLogsTableId: UUIDFilter - - """Filter by the object’s `secretDefinitionsTableId` field.""" - secretDefinitionsTableId: UUIDFilter - - """Filter by the object’s `requirementsTableId` field.""" - requirementsTableId: UUIDFilter - - """Filter by the object’s `configDefinitionsTableId` field.""" - configDefinitionsTableId: UUIDFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `configRequirementsTableId` field.""" - configRequirementsTableId: UUIDFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter - """Filter by the object’s `definitionsTableName` field.""" - definitionsTableName: StringFilter + """Filter by the object’s `profilePermissionsTableId` field.""" + profilePermissionsTableId: UUIDFilter - """Filter by the object’s `invocationsTableName` field.""" - invocationsTableName: StringFilter + """Filter by the object’s `profilePermissionsTableName` field.""" + profilePermissionsTableName: StringFilter - """Filter by the object’s `executionLogsTableName` field.""" - executionLogsTableName: StringFilter + """Filter by the object’s `profileGrantsTableId` field.""" + profileGrantsTableId: UUIDFilter - """Filter by the object’s `secretDefinitionsTableName` field.""" - secretDefinitionsTableName: StringFilter + """Filter by the object’s `profileGrantsTableName` field.""" + profileGrantsTableName: StringFilter - """Filter by the object’s `requirementsTableName` field.""" - requirementsTableName: StringFilter + """Filter by the object’s `profileDefinitionGrantsTableId` field.""" + profileDefinitionGrantsTableId: UUIDFilter - """Filter by the object’s `configRequirementsTableName` field.""" - configRequirementsTableName: StringFilter + """Filter by the object’s `profileDefinitionGrantsTableName` field.""" + profileDefinitionGrantsTableName: StringFilter - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """Filter by the object’s `profileTemplatesTableId` field.""" + profileTemplatesTableId: UUIDFilter - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """Filter by the object’s `profileTemplatesTableName` field.""" + profileTemplatesTableName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -9374,24 +9186,33 @@ input FunctionModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter + """Filter by the object’s `permissionsTableId` field.""" + permissionsTableId: UUIDFilter + + """Filter by the object’s `membershipsTableId` field.""" + membershipsTableId: UUIDFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [FunctionModuleFilter!] + and: [ProfilesModuleFilter!] """Checks for any expressions in this list.""" - or: [FunctionModuleFilter!] + or: [ProfilesModuleFilter!] """Negates the expression.""" - not: FunctionModuleFilter + not: ProfilesModuleFilter } -"""Methods to use when ordering `FunctionModule`.""" -enum FunctionModuleOrderBy { +"""Methods to use when ordering `ProfilesModule`.""" +enum ProfilesModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9407,109 +9228,102 @@ enum FunctionModuleOrderBy { PUBLIC_SCHEMA_NAME_DESC PRIVATE_SCHEMA_NAME_ASC PRIVATE_SCHEMA_NAME_DESC - DEFINITIONS_TABLE_ID_ASC - DEFINITIONS_TABLE_ID_DESC - INVOCATIONS_TABLE_ID_ASC - INVOCATIONS_TABLE_ID_DESC - EXECUTION_LOGS_TABLE_ID_ASC - EXECUTION_LOGS_TABLE_ID_DESC - SECRET_DEFINITIONS_TABLE_ID_ASC - SECRET_DEFINITIONS_TABLE_ID_DESC - REQUIREMENTS_TABLE_ID_ASC - REQUIREMENTS_TABLE_ID_DESC - CONFIG_DEFINITIONS_TABLE_ID_ASC - CONFIG_DEFINITIONS_TABLE_ID_DESC - CONFIG_REQUIREMENTS_TABLE_ID_ASC - CONFIG_REQUIREMENTS_TABLE_ID_DESC - DEFINITIONS_TABLE_NAME_ASC - DEFINITIONS_TABLE_NAME_DESC - INVOCATIONS_TABLE_NAME_ASC - INVOCATIONS_TABLE_NAME_DESC - EXECUTION_LOGS_TABLE_NAME_ASC - EXECUTION_LOGS_TABLE_NAME_DESC - SECRET_DEFINITIONS_TABLE_NAME_ASC - SECRET_DEFINITIONS_TABLE_NAME_DESC - REQUIREMENTS_TABLE_NAME_ASC - REQUIREMENTS_TABLE_NAME_DESC - CONFIG_REQUIREMENTS_TABLE_NAME_ASC - CONFIG_REQUIREMENTS_TABLE_NAME_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + PROFILE_PERMISSIONS_TABLE_ID_ASC + PROFILE_PERMISSIONS_TABLE_ID_DESC + PROFILE_PERMISSIONS_TABLE_NAME_ASC + PROFILE_PERMISSIONS_TABLE_NAME_DESC + PROFILE_GRANTS_TABLE_ID_ASC + PROFILE_GRANTS_TABLE_ID_DESC + PROFILE_GRANTS_TABLE_NAME_ASC + PROFILE_GRANTS_TABLE_NAME_DESC + PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC + 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 SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + PERMISSIONS_TABLE_ID_ASC + PERMISSIONS_TABLE_ID_DESC + MEMBERSHIPS_TABLE_ID_ASC + MEMBERSHIPS_TABLE_ID_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A connection to a list of `UserAuthModule` values.""" -type UserAuthModuleConnection { - """A list of `UserAuthModule` objects.""" - nodes: [UserAuthModule]! +"""A connection to a list of `BillingModule` values.""" +type BillingModuleConnection { + """A list of `BillingModule` objects.""" + nodes: [BillingModule]! """ - A list of edges which contains the `UserAuthModule` and cursor to aid in pagination. + A list of edges which contains the `BillingModule` and cursor to aid in pagination. """ - edges: [UserAuthModuleEdge]! + edges: [BillingModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `UserAuthModule` you could get from the connection.""" + """The count of *all* `BillingModule` you could get from the connection.""" totalCount: Int! } -type UserAuthModule { +type BillingModule { id: UUID! databaseId: UUID! schemaId: UUID! - emailsTableId: UUID! - usersTableId: UUID! - secretsTableId: UUID! - encryptedTableId: UUID! - sessionsTableId: UUID! - sessionCredentialsTableId: UUID! - auditsTableId: UUID! - auditsTableName: String! - signInFunction: String! - signUpFunction: String! - signOutFunction: String! - setPasswordFunction: String! - resetPasswordFunction: String! - forgotPasswordFunction: String! - sendVerificationEmailFunction: String! - verifyEmailFunction: String! - verifyPasswordFunction: String! - checkPasswordFunction: String! - sendAccountDeletionEmailFunction: String! - deleteAccountFunction: String! - signInCrossOriginFunction: String! - requestCrossOriginTokenFunction: String! - extendTokenExpires: String! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + metersTableId: UUID! + metersTableName: String! + planSubscriptionsTableId: UUID! + planSubscriptionsTableName: String! + ledgerTableId: UUID! + ledgerTableName: String! + balancesTableId: UUID! + balancesTableName: String! + meterCreditsTableId: UUID! + meterCreditsTableName: String! + meterSourcesTableId: UUID! + meterSourcesTableName: String! + meterDefaultsTableId: UUID! + meterDefaultsTableName: String! + recordUsageFunction: String! + prefix: String + defaultPermissions: [String] apiName: String privateApiName: String } -"""A `UserAuthModule` edge in the connection.""" -type UserAuthModuleEdge { +"""A `BillingModule` edge in the connection.""" +type BillingModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `UserAuthModule` at the end of the edge.""" - node: UserAuthModule + """The `BillingModule` at the end of the edge.""" + node: BillingModule } """ -A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ """ -input UserAuthModuleFilter { +input BillingModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -9519,74 +9333,65 @@ input UserAuthModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `emailsTableId` field.""" - emailsTableId: UUIDFilter - - """Filter by the object’s `usersTableId` field.""" - usersTableId: UUIDFilter - - """Filter by the object’s `secretsTableId` field.""" - secretsTableId: UUIDFilter - - """Filter by the object’s `encryptedTableId` field.""" - encryptedTableId: UUIDFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `sessionsTableId` field.""" - sessionsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `sessionCredentialsTableId` field.""" - sessionCredentialsTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `auditsTableId` field.""" - auditsTableId: UUIDFilter + """Filter by the object’s `metersTableId` field.""" + metersTableId: UUIDFilter - """Filter by the object’s `auditsTableName` field.""" - auditsTableName: StringFilter + """Filter by the object’s `metersTableName` field.""" + metersTableName: StringFilter - """Filter by the object’s `signInFunction` field.""" - signInFunction: StringFilter + """Filter by the object’s `planSubscriptionsTableId` field.""" + planSubscriptionsTableId: UUIDFilter - """Filter by the object’s `signUpFunction` field.""" - signUpFunction: StringFilter + """Filter by the object’s `planSubscriptionsTableName` field.""" + planSubscriptionsTableName: StringFilter - """Filter by the object’s `signOutFunction` field.""" - signOutFunction: StringFilter + """Filter by the object’s `ledgerTableId` field.""" + ledgerTableId: UUIDFilter - """Filter by the object’s `setPasswordFunction` field.""" - setPasswordFunction: StringFilter + """Filter by the object’s `ledgerTableName` field.""" + ledgerTableName: StringFilter - """Filter by the object’s `resetPasswordFunction` field.""" - resetPasswordFunction: StringFilter + """Filter by the object’s `balancesTableId` field.""" + balancesTableId: UUIDFilter - """Filter by the object’s `forgotPasswordFunction` field.""" - forgotPasswordFunction: StringFilter + """Filter by the object’s `balancesTableName` field.""" + balancesTableName: StringFilter - """Filter by the object’s `sendVerificationEmailFunction` field.""" - sendVerificationEmailFunction: StringFilter + """Filter by the object’s `meterCreditsTableId` field.""" + meterCreditsTableId: UUIDFilter - """Filter by the object’s `verifyEmailFunction` field.""" - verifyEmailFunction: StringFilter + """Filter by the object’s `meterCreditsTableName` field.""" + meterCreditsTableName: StringFilter - """Filter by the object’s `verifyPasswordFunction` field.""" - verifyPasswordFunction: StringFilter + """Filter by the object’s `meterSourcesTableId` field.""" + meterSourcesTableId: UUIDFilter - """Filter by the object’s `checkPasswordFunction` field.""" - checkPasswordFunction: StringFilter + """Filter by the object’s `meterSourcesTableName` field.""" + meterSourcesTableName: StringFilter - """Filter by the object’s `sendAccountDeletionEmailFunction` field.""" - sendAccountDeletionEmailFunction: StringFilter + """Filter by the object’s `meterDefaultsTableId` field.""" + meterDefaultsTableId: UUIDFilter - """Filter by the object’s `deleteAccountFunction` field.""" - deleteAccountFunction: StringFilter + """Filter by the object’s `meterDefaultsTableName` field.""" + meterDefaultsTableName: StringFilter - """Filter by the object’s `signInCrossOriginFunction` field.""" - signInCrossOriginFunction: StringFilter + """Filter by the object’s `recordUsageFunction` field.""" + recordUsageFunction: StringFilter - """Filter by the object’s `requestCrossOriginTokenFunction` field.""" - requestCrossOriginTokenFunction: StringFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `extendTokenExpires` field.""" - extendTokenExpires: StringFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -9595,17 +9400,17 @@ input UserAuthModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [UserAuthModuleFilter!] + and: [BillingModuleFilter!] """Checks for any expressions in this list.""" - or: [UserAuthModuleFilter!] + or: [BillingModuleFilter!] """Negates the expression.""" - not: UserAuthModuleFilter + not: BillingModuleFilter } -"""Methods to use when ordering `UserAuthModule`.""" -enum UserAuthModuleOrderBy { +"""Methods to use when ordering `BillingModule`.""" +enum BillingModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9615,227 +9420,347 @@ enum UserAuthModuleOrderBy { DATABASE_ID_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - EMAILS_TABLE_ID_ASC - EMAILS_TABLE_ID_DESC - USERS_TABLE_ID_ASC - USERS_TABLE_ID_DESC - SECRETS_TABLE_ID_ASC - SECRETS_TABLE_ID_DESC - ENCRYPTED_TABLE_ID_ASC - ENCRYPTED_TABLE_ID_DESC - SESSIONS_TABLE_ID_ASC - SESSIONS_TABLE_ID_DESC - SESSION_CREDENTIALS_TABLE_ID_ASC - SESSION_CREDENTIALS_TABLE_ID_DESC - AUDITS_TABLE_ID_ASC - AUDITS_TABLE_ID_DESC - AUDITS_TABLE_NAME_ASC - AUDITS_TABLE_NAME_DESC - SIGN_IN_FUNCTION_ASC - SIGN_IN_FUNCTION_DESC - SIGN_UP_FUNCTION_ASC - SIGN_UP_FUNCTION_DESC - SIGN_OUT_FUNCTION_ASC - SIGN_OUT_FUNCTION_DESC - SET_PASSWORD_FUNCTION_ASC - SET_PASSWORD_FUNCTION_DESC - RESET_PASSWORD_FUNCTION_ASC - RESET_PASSWORD_FUNCTION_DESC - FORGOT_PASSWORD_FUNCTION_ASC - FORGOT_PASSWORD_FUNCTION_DESC - SEND_VERIFICATION_EMAIL_FUNCTION_ASC - SEND_VERIFICATION_EMAIL_FUNCTION_DESC - VERIFY_EMAIL_FUNCTION_ASC - VERIFY_EMAIL_FUNCTION_DESC - VERIFY_PASSWORD_FUNCTION_ASC - VERIFY_PASSWORD_FUNCTION_DESC - CHECK_PASSWORD_FUNCTION_ASC - CHECK_PASSWORD_FUNCTION_DESC - SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC - SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC - DELETE_ACCOUNT_FUNCTION_ASC - DELETE_ACCOUNT_FUNCTION_DESC - SIGN_IN_CROSS_ORIGIN_FUNCTION_ASC - SIGN_IN_CROSS_ORIGIN_FUNCTION_DESC - REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC - REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC - EXTEND_TOKEN_EXPIRES_ASC - EXTEND_TOKEN_EXPIRES_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC -} - -"""A connection to a list of `AgentModule` values.""" -type AgentModuleConnection { - """A list of `AgentModule` objects.""" - nodes: [AgentModule]! - - """ - A list of edges which contains the `AgentModule` and cursor to aid in pagination. - """ - edges: [AgentModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AgentModule` you could get from the connection.""" - totalCount: Int! -} - -type AgentModule { - id: UUID! - databaseId: UUID! - schemaId: UUID! - privateSchemaId: UUID! - threadTableId: UUID! - messageTableId: UUID! - taskTableId: UUID! - promptsTableId: UUID! - planTableId: UUID - agentTableId: UUID - personaTableId: UUID - resourceTableId: UUID - threadTableName: String! - messageTableName: String! - taskTableName: String! - promptsTableName: String! - planTableName: String! - agentTableName: String! - personaTableName: String! - resourceTableName: String! - hasPlans: Boolean! - hasResources: Boolean! - hasAgents: Boolean! - apiName: String - privateApiName: String - scope: String! - prefix: String! - entityTableId: UUID - policies: JSON - resources: JSON - provisions: JSON + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_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 + METER_CREDITS_TABLE_ID_ASC + METER_CREDITS_TABLE_ID_DESC + METER_CREDITS_TABLE_NAME_ASC + METER_CREDITS_TABLE_NAME_DESC + METER_SOURCES_TABLE_ID_ASC + METER_SOURCES_TABLE_ID_DESC + METER_SOURCES_TABLE_NAME_ASC + METER_SOURCES_TABLE_NAME_DESC + METER_DEFAULTS_TABLE_ID_ASC + METER_DEFAULTS_TABLE_ID_DESC + METER_DEFAULTS_TABLE_NAME_ASC + METER_DEFAULTS_TABLE_NAME_DESC + RECORD_USAGE_FUNCTION_ASC + RECORD_USAGE_FUNCTION_DESC + PREFIX_ASC + PREFIX_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } -"""A `AgentModule` edge in the connection.""" -type AgentModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor +"""A connection to a list of `RelationProvision` values.""" +type RelationProvisionConnection { + """A list of `RelationProvision` objects.""" + nodes: [RelationProvision]! - """The `AgentModule` at the end of the edge.""" - node: AgentModule + """ + A list of edges which contains the `RelationProvision` and cursor to aid in pagination. + """ + edges: [RelationProvisionEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RelationProvision` you could get from the connection. + """ + totalCount: Int! } """ -A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ +Provisions relational structure between tables. Supports four relation types: + - RelationBelongsTo: adds a FK field on the source table referencing the target table (child perspective: "tasks belongs to projects" -> tasks.project_id). + - RelationHasMany: adds a FK field on the target table referencing the source table (parent perspective: "projects has many tasks" -> tasks.project_id). Inverse of BelongsTo. + - RelationHasOne: adds a FK field with a unique constraint on the source table referencing the target table. Also supports shared-primary-key patterns where the FK field IS the primary key (set field_name to the existing PK field name). + - RelationManyToMany: creates a junction table with FK fields to both source and target tables, delegating table creation and security to secure_table_provision. + This is a one-and-done structural provisioner. To layer additional security onto junction tables after creation, use secure_table_provision directly. + All operations are graceful: existing fields, FK constraints, and unique constraints are reused if found. + The trigger never injects values the caller did not provide. All security config is forwarded to secure_table_provision as-is. """ -input AgentModuleFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter +type RelationProvision { + """Unique identifier for this relation provision row.""" + id: UUID! - """Filter by the object’s `schemaId` field.""" - schemaId: UUIDFilter + """ + The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. + """ + databaseId: UUID! - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter + """ + The type of relation to create. Uses SuperCase naming: + - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + Each relation type uses a different subset of columns on this table. Required. + """ + relationType: String! - """Filter by the object’s `threadTableId` field.""" - threadTableId: UUIDFilter + """ + The source table in the relation. Required. + - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + """ + sourceTableId: UUID! - """Filter by the object’s `messageTableId` field.""" - messageTableId: UUIDFilter + """ + The target table in the relation. Required. + - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + """ + targetTableId: UUID! - """Filter by the object’s `taskTableId` field.""" - taskTableId: UUIDFilter + """ + FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + """ + fieldName: String - """Filter by the object’s `promptsTableId` field.""" - promptsTableId: UUIDFilter + """ + FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). + """ + deleteAction: String - """Filter by the object’s `planTableId` field.""" - planTableId: UUIDFilter + """ + Whether the FK field is NOT NULL. Defaults to true. + - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + - RelationHasMany: set to false if the child can exist without a parent. + - RelationHasOne: typically true. + Ignored for RelationManyToMany (junction FK fields are always required). + """ + isRequired: Boolean! - """Filter by the object’s `agentTableId` field.""" - agentTableId: UUIDFilter + """ + Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + When is_required is true, api_required is ignored (the field is already required at both levels). + Ignored for RelationManyToMany (junction FK fields are always required). + """ + apiRequired: Boolean! - """Filter by the object’s `personaTableId` field.""" - personaTableId: UUIDFilter + """ + For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionTableId: UUID! - """Filter by the object’s `resourceTableId` field.""" - resourceTableId: UUIDFilter + """ + For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionTableName: String - """Filter by the object’s `threadTableName` field.""" - threadTableName: StringFilter + """ + For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. + """ + junctionSchemaId: UUID - """Filter by the object’s `messageTableName` field.""" - messageTableName: StringFilter + """ + For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. + """ + sourceFieldName: String - """Filter by the object’s `taskTableName` field.""" - taskTableName: StringFilter + """ + For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. + """ + targetFieldName: String - """Filter by the object’s `promptsTableName` field.""" - promptsTableName: StringFilter + """ + For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + Ignored for RelationBelongsTo/RelationHasOne. + """ + useCompositeKey: Boolean! - """Filter by the object’s `planTableName` field.""" - planTableName: StringFilter + """ + Whether to create a btree index on FK fields created by this relation. Defaults to true. + PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + - RelationBelongsTo: creates an index on the FK field on the source table. + - RelationHasMany: creates an index on the FK field on the target table. + - RelationHasOne: skipped — the unique constraint already creates an implicit index. + - RelationManyToMany: creates indexes on both FK fields on the junction table. + Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + """ + createIndex: Boolean! - """Filter by the object’s `agentTableName` field.""" - agentTableName: StringFilter + """ + For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + exposeInApi: Boolean! - """Filter by the object’s `personaTableName` field.""" - personaTableName: StringFilter + """ + For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. + Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. + Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + nodes: JSON! - """Filter by the object’s `resourceTableName` field.""" - resourceTableName: StringFilter + """ + For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. + """ + grants: JSON! - """Filter by the object’s `hasPlans` field.""" - hasPlans: BooleanFilter + """ + For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. + Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. + Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). + Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + """ + policies: JSON! - """Filter by the object’s `hasResources` field.""" - hasResources: BooleanFilter + """ + Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. + """ + outFieldId: UUID - """Filter by the object’s `hasAgents` field.""" - hasAgents: BooleanFilter + """ + Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outJunctionTableId: UUID - """Filter by the object’s `apiName` field.""" - apiName: StringFilter + """ + Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outSourceFieldId: UUID - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter + """ + Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. + """ + outTargetFieldId: UUID +} - """Filter by the object’s `scope` field.""" - scope: StringFilter +"""A `RelationProvision` edge in the connection.""" +type RelationProvisionEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """The `RelationProvision` at the end of the edge.""" + node: RelationProvision +} - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter +""" +A filter to be used against `RelationProvision` object types. All fields are combined with a logical ‘and.’ +""" +input RelationProvisionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `relationType` field.""" + relationType: StringFilter + + """Filter by the object’s `sourceTableId` field.""" + sourceTableId: UUIDFilter + + """Filter by the object’s `targetTableId` field.""" + targetTableId: UUIDFilter + + """Filter by the object’s `fieldName` field.""" + fieldName: StringFilter + + """Filter by the object’s `deleteAction` field.""" + deleteAction: StringFilter + + """Filter by the object’s `isRequired` field.""" + isRequired: BooleanFilter + + """Filter by the object’s `apiRequired` field.""" + apiRequired: BooleanFilter + + """Filter by the object’s `junctionTableId` field.""" + junctionTableId: UUIDFilter + + """Filter by the object’s `junctionTableName` field.""" + junctionTableName: StringFilter + + """Filter by the object’s `junctionSchemaId` field.""" + junctionSchemaId: UUIDFilter + + """Filter by the object’s `sourceFieldName` field.""" + sourceFieldName: StringFilter + + """Filter by the object’s `targetFieldName` field.""" + targetFieldName: StringFilter + + """Filter by the object’s `useCompositeKey` field.""" + useCompositeKey: BooleanFilter + + """Filter by the object’s `createIndex` field.""" + createIndex: BooleanFilter + + """Filter by the object’s `exposeInApi` field.""" + exposeInApi: BooleanFilter + + """Filter by the object’s `nodes` field.""" + nodes: JSONFilter + + """Filter by the object’s `grants` field.""" + grants: JSONFilter """Filter by the object’s `policies` field.""" policies: JSONFilter - """Filter by the object’s `resources` field.""" - resources: JSONFilter + """Filter by the object’s `outFieldId` field.""" + outFieldId: UUIDFilter - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter + """Filter by the object’s `outJunctionTableId` field.""" + outJunctionTableId: UUIDFilter + + """Filter by the object’s `outSourceFieldId` field.""" + outSourceFieldId: UUIDFilter + + """Filter by the object’s `outTargetFieldId` field.""" + outTargetFieldId: UUIDFilter """Checks for all expressions in this list.""" - and: [AgentModuleFilter!] + and: [RelationProvisionFilter!] """Checks for any expressions in this list.""" - or: [AgentModuleFilter!] + or: [RelationProvisionFilter!] """Negates the expression.""" - not: AgentModuleFilter + not: RelationProvisionFilter } -"""Methods to use when ordering `AgentModule`.""" -enum AgentModuleOrderBy { +"""Methods to use when ordering `RelationProvision`.""" +enum RelationProvisionOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -9843,133 +9768,113 @@ enum AgentModuleOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - THREAD_TABLE_ID_ASC - THREAD_TABLE_ID_DESC - MESSAGE_TABLE_ID_ASC - MESSAGE_TABLE_ID_DESC - TASK_TABLE_ID_ASC - TASK_TABLE_ID_DESC - PROMPTS_TABLE_ID_ASC - PROMPTS_TABLE_ID_DESC - PLAN_TABLE_ID_ASC - PLAN_TABLE_ID_DESC - AGENT_TABLE_ID_ASC - AGENT_TABLE_ID_DESC - PERSONA_TABLE_ID_ASC - PERSONA_TABLE_ID_DESC - RESOURCE_TABLE_ID_ASC - RESOURCE_TABLE_ID_DESC - THREAD_TABLE_NAME_ASC - THREAD_TABLE_NAME_DESC - MESSAGE_TABLE_NAME_ASC - MESSAGE_TABLE_NAME_DESC - TASK_TABLE_NAME_ASC - TASK_TABLE_NAME_DESC - PROMPTS_TABLE_NAME_ASC - PROMPTS_TABLE_NAME_DESC - PLAN_TABLE_NAME_ASC - PLAN_TABLE_NAME_DESC - AGENT_TABLE_NAME_ASC - AGENT_TABLE_NAME_DESC - PERSONA_TABLE_NAME_ASC - PERSONA_TABLE_NAME_DESC - RESOURCE_TABLE_NAME_ASC - RESOURCE_TABLE_NAME_DESC - HAS_PLANS_ASC - HAS_PLANS_DESC - HAS_RESOURCES_ASC - HAS_RESOURCES_DESC - HAS_AGENTS_ASC - HAS_AGENTS_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC + RELATION_TYPE_ASC + RELATION_TYPE_DESC + SOURCE_TABLE_ID_ASC + SOURCE_TABLE_ID_DESC + TARGET_TABLE_ID_ASC + TARGET_TABLE_ID_DESC + FIELD_NAME_ASC + FIELD_NAME_DESC + DELETE_ACTION_ASC + DELETE_ACTION_DESC + IS_REQUIRED_ASC + IS_REQUIRED_DESC + API_REQUIRED_ASC + API_REQUIRED_DESC + JUNCTION_TABLE_ID_ASC + JUNCTION_TABLE_ID_DESC + JUNCTION_TABLE_NAME_ASC + JUNCTION_TABLE_NAME_DESC + JUNCTION_SCHEMA_ID_ASC + JUNCTION_SCHEMA_ID_DESC + SOURCE_FIELD_NAME_ASC + SOURCE_FIELD_NAME_DESC + TARGET_FIELD_NAME_ASC + TARGET_FIELD_NAME_DESC + USE_COMPOSITE_KEY_ASC + USE_COMPOSITE_KEY_DESC + CREATE_INDEX_ASC + CREATE_INDEX_DESC + EXPOSE_IN_API_ASC + EXPOSE_IN_API_DESC + NODES_ASC + NODES_DESC + GRANTS_ASC + GRANTS_DESC POLICIES_ASC POLICIES_DESC - RESOURCES_ASC - RESOURCES_DESC - PROVISIONS_ASC - PROVISIONS_DESC + OUT_FIELD_ID_ASC + OUT_FIELD_ID_DESC + OUT_JUNCTION_TABLE_ID_ASC + OUT_JUNCTION_TABLE_ID_DESC + OUT_SOURCE_FIELD_ID_ASC + OUT_SOURCE_FIELD_ID_DESC + OUT_TARGET_FIELD_ID_ASC + OUT_TARGET_FIELD_ID_DESC } -"""A connection to a list of `LimitsModule` values.""" -type LimitsModuleConnection { - """A list of `LimitsModule` objects.""" - nodes: [LimitsModule]! +"""A connection to a list of `UserAuthModule` values.""" +type UserAuthModuleConnection { + """A list of `UserAuthModule` objects.""" + nodes: [UserAuthModule]! """ - A list of edges which contains the `LimitsModule` and cursor to aid in pagination. + A list of edges which contains the `UserAuthModule` and cursor to aid in pagination. """ - edges: [LimitsModuleEdge]! + edges: [UserAuthModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `LimitsModule` you could get from the connection.""" + """The count of *all* `UserAuthModule` you could get from the connection.""" totalCount: Int! } -type LimitsModule { +type UserAuthModule { 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! - limitCreditsTableId: UUID - eventsTableId: UUID - creditCodesTableId: UUID - creditCodeItemsTableId: UUID - creditRedemptionsTableId: UUID - aggregateTableId: UUID - limitCapsTableId: UUID - limitCapsDefaultsTableId: UUID - capCheckTrigger: String! - resolveCapFunction: String! - limitWarningsTableId: UUID - limitWarningStateTableId: UUID - limitCheckSoftFunction: String! - limitAggregateCheckSoftFunction: String! - scope: String! - prefix: String! - entityTableId: UUID - actorTableId: UUID! + emailsTableId: UUID! + usersTableId: UUID! + secretsTableId: UUID! + encryptedTableId: UUID! + sessionsTableId: UUID! + sessionCredentialsTableId: UUID! + auditsTableId: UUID! + auditsTableName: String! + signInFunction: String! + signUpFunction: String! + signOutFunction: String! + setPasswordFunction: String! + resetPasswordFunction: String! + forgotPasswordFunction: String! + sendVerificationEmailFunction: String! + verifyEmailFunction: String! + verifyPasswordFunction: String! + checkPasswordFunction: String! + sendAccountDeletionEmailFunction: String! + deleteAccountFunction: String! + signInCrossOriginFunction: String! + requestCrossOriginTokenFunction: String! + extendTokenExpires: String! apiName: String privateApiName: String } -"""A `LimitsModule` edge in the connection.""" -type LimitsModuleEdge { +"""A `UserAuthModule` edge in the connection.""" +type UserAuthModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `LimitsModule` at the end of the edge.""" - node: LimitsModule + """The `UserAuthModule` at the end of the edge.""" + node: UserAuthModule } """ -A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `UserAuthModule` object types. All fields are combined with a logical ‘and.’ """ -input LimitsModuleFilter { +input UserAuthModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -9979,92 +9884,74 @@ input LimitsModuleFilter { """Filter by the object’s `schemaId` field.""" schemaId: UUIDFilter - """Filter by the object’s `privateSchemaId` field.""" - privateSchemaId: UUIDFilter - - """Filter by the object’s `tableId` field.""" - tableId: UUIDFilter - - """Filter by the object’s `tableName` field.""" - tableName: StringFilter - - """Filter by the object’s `defaultTableId` field.""" - defaultTableId: UUIDFilter - - """Filter by the object’s `defaultTableName` field.""" - defaultTableName: StringFilter - - """Filter by the object’s `limitIncrementFunction` field.""" - limitIncrementFunction: StringFilter - - """Filter by the object’s `limitDecrementFunction` field.""" - limitDecrementFunction: StringFilter + """Filter by the object’s `emailsTableId` field.""" + emailsTableId: UUIDFilter - """Filter by the object’s `limitIncrementTrigger` field.""" - limitIncrementTrigger: StringFilter + """Filter by the object’s `usersTableId` field.""" + usersTableId: UUIDFilter - """Filter by the object’s `limitDecrementTrigger` field.""" - limitDecrementTrigger: StringFilter + """Filter by the object’s `secretsTableId` field.""" + secretsTableId: UUIDFilter - """Filter by the object’s `limitUpdateTrigger` field.""" - limitUpdateTrigger: StringFilter + """Filter by the object’s `encryptedTableId` field.""" + encryptedTableId: UUIDFilter - """Filter by the object’s `limitCheckFunction` field.""" - limitCheckFunction: StringFilter + """Filter by the object’s `sessionsTableId` field.""" + sessionsTableId: UUIDFilter - """Filter by the object’s `limitCreditsTableId` field.""" - limitCreditsTableId: UUIDFilter + """Filter by the object’s `sessionCredentialsTableId` field.""" + sessionCredentialsTableId: UUIDFilter - """Filter by the object’s `eventsTableId` field.""" - eventsTableId: UUIDFilter + """Filter by the object’s `auditsTableId` field.""" + auditsTableId: UUIDFilter - """Filter by the object’s `creditCodesTableId` field.""" - creditCodesTableId: UUIDFilter + """Filter by the object’s `auditsTableName` field.""" + auditsTableName: StringFilter - """Filter by the object’s `creditCodeItemsTableId` field.""" - creditCodeItemsTableId: UUIDFilter + """Filter by the object’s `signInFunction` field.""" + signInFunction: StringFilter - """Filter by the object’s `creditRedemptionsTableId` field.""" - creditRedemptionsTableId: UUIDFilter + """Filter by the object’s `signUpFunction` field.""" + signUpFunction: StringFilter - """Filter by the object’s `aggregateTableId` field.""" - aggregateTableId: UUIDFilter + """Filter by the object’s `signOutFunction` field.""" + signOutFunction: StringFilter - """Filter by the object’s `limitCapsTableId` field.""" - limitCapsTableId: UUIDFilter + """Filter by the object’s `setPasswordFunction` field.""" + setPasswordFunction: StringFilter - """Filter by the object’s `limitCapsDefaultsTableId` field.""" - limitCapsDefaultsTableId: UUIDFilter + """Filter by the object’s `resetPasswordFunction` field.""" + resetPasswordFunction: StringFilter - """Filter by the object’s `capCheckTrigger` field.""" - capCheckTrigger: StringFilter + """Filter by the object’s `forgotPasswordFunction` field.""" + forgotPasswordFunction: StringFilter - """Filter by the object’s `resolveCapFunction` field.""" - resolveCapFunction: StringFilter + """Filter by the object’s `sendVerificationEmailFunction` field.""" + sendVerificationEmailFunction: StringFilter - """Filter by the object’s `limitWarningsTableId` field.""" - limitWarningsTableId: UUIDFilter + """Filter by the object’s `verifyEmailFunction` field.""" + verifyEmailFunction: StringFilter - """Filter by the object’s `limitWarningStateTableId` field.""" - limitWarningStateTableId: UUIDFilter + """Filter by the object’s `verifyPasswordFunction` field.""" + verifyPasswordFunction: StringFilter - """Filter by the object’s `limitCheckSoftFunction` field.""" - limitCheckSoftFunction: StringFilter + """Filter by the object’s `checkPasswordFunction` field.""" + checkPasswordFunction: StringFilter - """Filter by the object’s `limitAggregateCheckSoftFunction` field.""" - limitAggregateCheckSoftFunction: StringFilter + """Filter by the object’s `sendAccountDeletionEmailFunction` field.""" + sendAccountDeletionEmailFunction: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `deleteAccountFunction` field.""" + deleteAccountFunction: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `signInCrossOriginFunction` field.""" + signInCrossOriginFunction: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `requestCrossOriginTokenFunction` field.""" + requestCrossOriginTokenFunction: StringFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `extendTokenExpires` field.""" + extendTokenExpires: StringFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -10073,17 +9960,17 @@ input LimitsModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [LimitsModuleFilter!] + and: [UserAuthModuleFilter!] """Checks for any expressions in this list.""" - or: [LimitsModuleFilter!] + or: [UserAuthModuleFilter!] """Negates the expression.""" - not: LimitsModuleFilter + not: UserAuthModuleFilter } -"""Methods to use when ordering `LimitsModule`.""" -enum LimitsModuleOrderBy { +"""Methods to use when ordering `UserAuthModule`.""" +enum UserAuthModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -10093,142 +9980,126 @@ enum LimitsModuleOrderBy { DATABASE_ID_DESC SCHEMA_ID_ASC SCHEMA_ID_DESC - PRIVATE_SCHEMA_ID_ASC - PRIVATE_SCHEMA_ID_DESC - TABLE_ID_ASC - TABLE_ID_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - DEFAULT_TABLE_ID_ASC - DEFAULT_TABLE_ID_DESC - DEFAULT_TABLE_NAME_ASC - DEFAULT_TABLE_NAME_DESC - LIMIT_INCREMENT_FUNCTION_ASC - LIMIT_INCREMENT_FUNCTION_DESC - LIMIT_DECREMENT_FUNCTION_ASC - LIMIT_DECREMENT_FUNCTION_DESC - LIMIT_INCREMENT_TRIGGER_ASC - LIMIT_INCREMENT_TRIGGER_DESC - LIMIT_DECREMENT_TRIGGER_ASC - LIMIT_DECREMENT_TRIGGER_DESC - LIMIT_UPDATE_TRIGGER_ASC - LIMIT_UPDATE_TRIGGER_DESC - LIMIT_CHECK_FUNCTION_ASC - LIMIT_CHECK_FUNCTION_DESC - LIMIT_CREDITS_TABLE_ID_ASC - LIMIT_CREDITS_TABLE_ID_DESC - EVENTS_TABLE_ID_ASC - EVENTS_TABLE_ID_DESC - CREDIT_CODES_TABLE_ID_ASC - CREDIT_CODES_TABLE_ID_DESC - CREDIT_CODE_ITEMS_TABLE_ID_ASC - CREDIT_CODE_ITEMS_TABLE_ID_DESC - CREDIT_REDEMPTIONS_TABLE_ID_ASC - CREDIT_REDEMPTIONS_TABLE_ID_DESC - AGGREGATE_TABLE_ID_ASC - AGGREGATE_TABLE_ID_DESC - LIMIT_CAPS_TABLE_ID_ASC - LIMIT_CAPS_TABLE_ID_DESC - LIMIT_CAPS_DEFAULTS_TABLE_ID_ASC - LIMIT_CAPS_DEFAULTS_TABLE_ID_DESC - CAP_CHECK_TRIGGER_ASC - CAP_CHECK_TRIGGER_DESC - RESOLVE_CAP_FUNCTION_ASC - RESOLVE_CAP_FUNCTION_DESC - LIMIT_WARNINGS_TABLE_ID_ASC - LIMIT_WARNINGS_TABLE_ID_DESC - LIMIT_WARNING_STATE_TABLE_ID_ASC - LIMIT_WARNING_STATE_TABLE_ID_DESC - LIMIT_CHECK_SOFT_FUNCTION_ASC - LIMIT_CHECK_SOFT_FUNCTION_DESC - LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_ASC - LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_DESC - SCOPE_ASC - SCOPE_DESC - PREFIX_ASC - PREFIX_DESC - ENTITY_TABLE_ID_ASC - ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC -} - -"""A connection to a list of `MembershipsModule` values.""" -type MembershipsModuleConnection { - """A list of `MembershipsModule` objects.""" - nodes: [MembershipsModule]! - - """ - A list of edges which contains the `MembershipsModule` and cursor to aid in pagination. - """ - edges: [MembershipsModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `MembershipsModule` you could get from the connection. + EMAILS_TABLE_ID_ASC + EMAILS_TABLE_ID_DESC + USERS_TABLE_ID_ASC + USERS_TABLE_ID_DESC + SECRETS_TABLE_ID_ASC + SECRETS_TABLE_ID_DESC + ENCRYPTED_TABLE_ID_ASC + ENCRYPTED_TABLE_ID_DESC + SESSIONS_TABLE_ID_ASC + SESSIONS_TABLE_ID_DESC + SESSION_CREDENTIALS_TABLE_ID_ASC + SESSION_CREDENTIALS_TABLE_ID_DESC + AUDITS_TABLE_ID_ASC + AUDITS_TABLE_ID_DESC + AUDITS_TABLE_NAME_ASC + AUDITS_TABLE_NAME_DESC + SIGN_IN_FUNCTION_ASC + SIGN_IN_FUNCTION_DESC + SIGN_UP_FUNCTION_ASC + SIGN_UP_FUNCTION_DESC + SIGN_OUT_FUNCTION_ASC + SIGN_OUT_FUNCTION_DESC + SET_PASSWORD_FUNCTION_ASC + SET_PASSWORD_FUNCTION_DESC + RESET_PASSWORD_FUNCTION_ASC + RESET_PASSWORD_FUNCTION_DESC + FORGOT_PASSWORD_FUNCTION_ASC + FORGOT_PASSWORD_FUNCTION_DESC + SEND_VERIFICATION_EMAIL_FUNCTION_ASC + SEND_VERIFICATION_EMAIL_FUNCTION_DESC + VERIFY_EMAIL_FUNCTION_ASC + VERIFY_EMAIL_FUNCTION_DESC + VERIFY_PASSWORD_FUNCTION_ASC + VERIFY_PASSWORD_FUNCTION_DESC + CHECK_PASSWORD_FUNCTION_ASC + CHECK_PASSWORD_FUNCTION_DESC + SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_ASC + SEND_ACCOUNT_DELETION_EMAIL_FUNCTION_DESC + DELETE_ACCOUNT_FUNCTION_ASC + DELETE_ACCOUNT_FUNCTION_DESC + SIGN_IN_CROSS_ORIGIN_FUNCTION_ASC + SIGN_IN_CROSS_ORIGIN_FUNCTION_DESC + REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_ASC + REQUEST_CROSS_ORIGIN_TOKEN_FUNCTION_DESC + EXTEND_TOKEN_EXPIRES_ASC + EXTEND_TOKEN_EXPIRES_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `AgentModule` values.""" +type AgentModuleConnection { + """A list of `AgentModule` objects.""" + nodes: [AgentModule]! + + """ + A list of edges which contains the `AgentModule` and cursor to aid in pagination. """ + edges: [AgentModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentModule` you could get from the connection.""" totalCount: Int! } -type MembershipsModule { +type AgentModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - membershipsTableId: UUID! - membershipsTableName: String! - membersTableId: UUID! - membersTableName: String! - membershipDefaultsTableId: UUID! - membershipDefaultsTableName: String! - membershipSettingsTableId: UUID - membershipSettingsTableName: String! - grantsTableId: UUID! - grantsTableName: String! - actorTableId: UUID! - limitsTableId: UUID! - defaultLimitsTableId: UUID! - permissionsTableId: UUID! - defaultPermissionsTableId: UUID! - sprtTableId: UUID! - adminGrantsTableId: UUID! - adminGrantsTableName: String! - ownerGrantsTableId: UUID! - ownerGrantsTableName: String! + publicSchemaName: String + privateSchemaName: String + threadTableId: UUID! + messageTableId: UUID! + taskTableId: UUID! + promptsTableId: UUID! + planTableId: UUID + agentTableId: UUID + personaTableId: UUID + resourceTableId: UUID + threadTableName: String! + messageTableName: String! + taskTableName: String! + promptsTableName: String! + planTableName: String! + agentTableName: String! + personaTableName: String! + resourceTableName: String! + hasPlans: Boolean! + hasResources: Boolean! + hasAgents: Boolean! + shared: Boolean! + apiName: String + privateApiName: String scope: String! prefix: String! entityTableId: UUID - entityTableOwnerId: UUID - getOrgFn: String - actorMaskCheck: String! - actorPermCheck: String! - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - apiName: String - privateApiName: String + policies: JSON + resources: JSON + provisions: JSON + defaultPermissions: [String] } -"""A `MembershipsModule` edge in the connection.""" -type MembershipsModuleEdge { +"""A `AgentModule` edge in the connection.""" +type AgentModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipsModule` at the end of the edge.""" - node: MembershipsModule + """The `AgentModule` at the end of the edge.""" + node: AgentModule } """ -A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AgentModule` object types. All fields are combined with a logical ‘and.’ """ -input MembershipsModuleFilter { +input AgentModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -10241,65 +10112,77 @@ input MembershipsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `membershipsTableId` field.""" - membershipsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `membershipsTableName` field.""" - membershipsTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `membersTableId` field.""" - membersTableId: UUIDFilter + """Filter by the object’s `threadTableId` field.""" + threadTableId: UUIDFilter - """Filter by the object’s `membersTableName` field.""" - membersTableName: StringFilter + """Filter by the object’s `messageTableId` field.""" + messageTableId: UUIDFilter - """Filter by the object’s `membershipDefaultsTableId` field.""" - membershipDefaultsTableId: UUIDFilter + """Filter by the object’s `taskTableId` field.""" + taskTableId: UUIDFilter - """Filter by the object’s `membershipDefaultsTableName` field.""" - membershipDefaultsTableName: StringFilter + """Filter by the object’s `promptsTableId` field.""" + promptsTableId: UUIDFilter - """Filter by the object’s `membershipSettingsTableId` field.""" - membershipSettingsTableId: UUIDFilter + """Filter by the object’s `planTableId` field.""" + planTableId: UUIDFilter - """Filter by the object’s `membershipSettingsTableName` field.""" - membershipSettingsTableName: StringFilter + """Filter by the object’s `agentTableId` field.""" + agentTableId: UUIDFilter - """Filter by the object’s `grantsTableId` field.""" - grantsTableId: UUIDFilter + """Filter by the object’s `personaTableId` field.""" + personaTableId: UUIDFilter - """Filter by the object’s `grantsTableName` field.""" - grantsTableName: StringFilter + """Filter by the object’s `resourceTableId` field.""" + resourceTableId: UUIDFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `threadTableName` field.""" + threadTableName: StringFilter - """Filter by the object’s `limitsTableId` field.""" - limitsTableId: UUIDFilter + """Filter by the object’s `messageTableName` field.""" + messageTableName: StringFilter - """Filter by the object’s `defaultLimitsTableId` field.""" - defaultLimitsTableId: UUIDFilter + """Filter by the object’s `taskTableName` field.""" + taskTableName: StringFilter - """Filter by the object’s `permissionsTableId` field.""" - permissionsTableId: UUIDFilter + """Filter by the object’s `promptsTableName` field.""" + promptsTableName: StringFilter - """Filter by the object’s `defaultPermissionsTableId` field.""" - defaultPermissionsTableId: UUIDFilter + """Filter by the object’s `planTableName` field.""" + planTableName: StringFilter - """Filter by the object’s `sprtTableId` field.""" - sprtTableId: UUIDFilter + """Filter by the object’s `agentTableName` field.""" + agentTableName: StringFilter - """Filter by the object’s `adminGrantsTableId` field.""" - adminGrantsTableId: UUIDFilter + """Filter by the object’s `personaTableName` field.""" + personaTableName: StringFilter - """Filter by the object’s `adminGrantsTableName` field.""" - adminGrantsTableName: StringFilter + """Filter by the object’s `resourceTableName` field.""" + resourceTableName: StringFilter - """Filter by the object’s `ownerGrantsTableId` field.""" - ownerGrantsTableId: UUIDFilter + """Filter by the object’s `hasPlans` field.""" + hasPlans: BooleanFilter - """Filter by the object’s `ownerGrantsTableName` field.""" - ownerGrantsTableName: StringFilter + """Filter by the object’s `hasResources` field.""" + hasResources: BooleanFilter + + """Filter by the object’s `hasAgents` field.""" + hasAgents: BooleanFilter + + """Filter by the object’s `shared` field.""" + shared: BooleanFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Filter by the object’s `scope` field.""" scope: StringFilter @@ -10310,48 +10193,30 @@ input MembershipsModuleFilter { """Filter by the object’s `entityTableId` field.""" entityTableId: UUIDFilter - """Filter by the object’s `entityTableOwnerId` field.""" - entityTableOwnerId: UUIDFilter - - """Filter by the object’s `getOrgFn` field.""" - getOrgFn: StringFilter + """Filter by the object’s `policies` field.""" + policies: JSONFilter - """Filter by the object’s `actorMaskCheck` field.""" - actorMaskCheck: StringFilter + """Filter by the object’s `resources` field.""" + resources: JSONFilter - """Filter by the object’s `actorPermCheck` field.""" - actorPermCheck: StringFilter + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter - """Filter by the object’s `entityIdsByMask` field.""" - entityIdsByMask: StringFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter - """Filter by the object’s `entityIdsByPerm` field.""" - entityIdsByPerm: StringFilter + """Checks for all expressions in this list.""" + and: [AgentModuleFilter!] - """Filter by the object’s `entityIdsFunction` field.""" - entityIdsFunction: StringFilter + """Checks for any expressions in this list.""" + or: [AgentModuleFilter!] - """Filter by the object’s `memberProfilesTableId` field.""" - memberProfilesTableId: UUIDFilter + """Negates the expression.""" + not: AgentModuleFilter +} - """Filter by the object’s `apiName` field.""" - apiName: StringFilter - - """Filter by the object’s `privateApiName` field.""" - privateApiName: StringFilter - - """Checks for all expressions in this list.""" - and: [MembershipsModuleFilter!] - - """Checks for any expressions in this list.""" - or: [MembershipsModuleFilter!] - - """Negates the expression.""" - not: MembershipsModuleFilter -} - -"""Methods to use when ordering `MembershipsModule`.""" -enum MembershipsModuleOrderBy { +"""Methods to use when ordering `AgentModule`.""" +enum AgentModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -10363,150 +10228,139 @@ enum MembershipsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - MEMBERSHIPS_TABLE_ID_ASC - MEMBERSHIPS_TABLE_ID_DESC - MEMBERSHIPS_TABLE_NAME_ASC - MEMBERSHIPS_TABLE_NAME_DESC - MEMBERS_TABLE_ID_ASC - MEMBERS_TABLE_ID_DESC - MEMBERS_TABLE_NAME_ASC - MEMBERS_TABLE_NAME_DESC - MEMBERSHIP_DEFAULTS_TABLE_ID_ASC - MEMBERSHIP_DEFAULTS_TABLE_ID_DESC - MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC - MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC - MEMBERSHIP_SETTINGS_TABLE_ID_ASC - MEMBERSHIP_SETTINGS_TABLE_ID_DESC - MEMBERSHIP_SETTINGS_TABLE_NAME_ASC - MEMBERSHIP_SETTINGS_TABLE_NAME_DESC - GRANTS_TABLE_ID_ASC - GRANTS_TABLE_ID_DESC - GRANTS_TABLE_NAME_ASC - GRANTS_TABLE_NAME_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC - LIMITS_TABLE_ID_ASC - LIMITS_TABLE_ID_DESC - DEFAULT_LIMITS_TABLE_ID_ASC - DEFAULT_LIMITS_TABLE_ID_DESC - PERMISSIONS_TABLE_ID_ASC - PERMISSIONS_TABLE_ID_DESC - DEFAULT_PERMISSIONS_TABLE_ID_ASC - DEFAULT_PERMISSIONS_TABLE_ID_DESC - SPRT_TABLE_ID_ASC - SPRT_TABLE_ID_DESC - ADMIN_GRANTS_TABLE_ID_ASC - ADMIN_GRANTS_TABLE_ID_DESC - ADMIN_GRANTS_TABLE_NAME_ASC - ADMIN_GRANTS_TABLE_NAME_DESC - OWNER_GRANTS_TABLE_ID_ASC - OWNER_GRANTS_TABLE_ID_DESC - OWNER_GRANTS_TABLE_NAME_ASC - OWNER_GRANTS_TABLE_NAME_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + THREAD_TABLE_ID_ASC + THREAD_TABLE_ID_DESC + MESSAGE_TABLE_ID_ASC + MESSAGE_TABLE_ID_DESC + TASK_TABLE_ID_ASC + TASK_TABLE_ID_DESC + PROMPTS_TABLE_ID_ASC + PROMPTS_TABLE_ID_DESC + PLAN_TABLE_ID_ASC + PLAN_TABLE_ID_DESC + AGENT_TABLE_ID_ASC + AGENT_TABLE_ID_DESC + PERSONA_TABLE_ID_ASC + PERSONA_TABLE_ID_DESC + RESOURCE_TABLE_ID_ASC + RESOURCE_TABLE_ID_DESC + THREAD_TABLE_NAME_ASC + THREAD_TABLE_NAME_DESC + MESSAGE_TABLE_NAME_ASC + MESSAGE_TABLE_NAME_DESC + TASK_TABLE_NAME_ASC + TASK_TABLE_NAME_DESC + PROMPTS_TABLE_NAME_ASC + PROMPTS_TABLE_NAME_DESC + PLAN_TABLE_NAME_ASC + PLAN_TABLE_NAME_DESC + AGENT_TABLE_NAME_ASC + AGENT_TABLE_NAME_DESC + PERSONA_TABLE_NAME_ASC + PERSONA_TABLE_NAME_DESC + RESOURCE_TABLE_NAME_ASC + RESOURCE_TABLE_NAME_DESC + HAS_PLANS_ASC + HAS_PLANS_DESC + HAS_RESOURCES_ASC + HAS_RESOURCES_DESC + HAS_AGENTS_ASC + HAS_AGENTS_DESC + SHARED_ASC + SHARED_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - ENTITY_TABLE_OWNER_ID_ASC - ENTITY_TABLE_OWNER_ID_DESC - GET_ORG_FN_ASC - GET_ORG_FN_DESC - ACTOR_MASK_CHECK_ASC - ACTOR_MASK_CHECK_DESC - ACTOR_PERM_CHECK_ASC - ACTOR_PERM_CHECK_DESC - ENTITY_IDS_BY_MASK_ASC - ENTITY_IDS_BY_MASK_DESC - ENTITY_IDS_BY_PERM_ASC - ENTITY_IDS_BY_PERM_DESC - ENTITY_IDS_FUNCTION_ASC - ENTITY_IDS_FUNCTION_DESC - MEMBER_PROFILES_TABLE_ID_ASC - MEMBER_PROFILES_TABLE_ID_DESC - API_NAME_ASC - API_NAME_DESC - PRIVATE_API_NAME_ASC - PRIVATE_API_NAME_DESC + POLICIES_ASC + POLICIES_DESC + RESOURCES_ASC + RESOURCES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC } -"""A connection to a list of `StorageModule` values.""" -type StorageModuleConnection { - """A list of `StorageModule` objects.""" - nodes: [StorageModule]! +"""A connection to a list of `LimitsModule` values.""" +type LimitsModuleConnection { + """A list of `LimitsModule` objects.""" + nodes: [LimitsModule]! """ - A list of edges which contains the `StorageModule` and cursor to aid in pagination. + A list of edges which contains the `LimitsModule` and cursor to aid in pagination. """ - edges: [StorageModuleEdge]! + edges: [LimitsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `StorageModule` you could get from the connection.""" + """The count of *all* `LimitsModule` you could get from the connection.""" totalCount: Int! } -type StorageModule { +type LimitsModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - bucketsTableId: UUID! - filesTableId: UUID! - bucketsTableName: String! - filesTableName: String! + publicSchemaName: String + privateSchemaName: String + tableId: UUID! + tableName: String! + defaultTableId: UUID! + defaultTableName: String! + limitIncrementFunction: String! + limitDecrementFunction: String! + limitIncrementTrigger: String! + limitDecrementTrigger: String! + limitUpdateTrigger: String! + limitCheckFunction: String! + limitCreditsTableId: UUID + eventsTableId: UUID + creditCodesTableId: UUID + creditCodeItemsTableId: UUID + creditRedemptionsTableId: UUID + aggregateTableId: UUID + limitCapsTableId: UUID + limitCapsDefaultsTableId: UUID + capCheckTrigger: String! + resolveCapFunction: String! + limitWarningsTableId: UUID + limitWarningStateTableId: UUID + limitCheckSoftFunction: String! + limitAggregateCheckSoftFunction: String! scope: String! prefix: String! - policies: JSON - provisions: JSON entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean! - hasPathShares: Boolean! - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean! - hasContentHash: Boolean! - hasCustomKeys: Boolean! - hasAuditLog: Boolean! - hasConfirmUpload: Boolean! - confirmUploadDelay: Interval! - fileEventsTableId: UUID + actorTableId: UUID! apiName: String privateApiName: String } -""" -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 `StorageModule` edge in the connection.""" -type StorageModuleEdge { +"""A `LimitsModule` edge in the connection.""" +type LimitsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `StorageModule` at the end of the edge.""" - node: StorageModule + """The `LimitsModule` at the end of the edge.""" + node: LimitsModule } """ -A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `LimitsModule` object types. All fields are combined with a logical ‘and.’ """ -input StorageModuleFilter { +input LimitsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -10519,95 +10373,95 @@ input StorageModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `bucketsTableId` field.""" - bucketsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `filesTableId` field.""" - filesTableId: UUIDFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `bucketsTableName` field.""" - bucketsTableName: StringFilter + """Filter by the object’s `tableId` field.""" + tableId: UUIDFilter - """Filter by the object’s `filesTableName` field.""" - filesTableName: StringFilter + """Filter by the object’s `tableName` field.""" + tableName: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `defaultTableId` field.""" + defaultTableId: UUIDFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `defaultTableName` field.""" + defaultTableName: StringFilter - """Filter by the object’s `policies` field.""" - policies: JSONFilter + """Filter by the object’s `limitIncrementFunction` field.""" + limitIncrementFunction: StringFilter - """Filter by the object’s `provisions` field.""" - provisions: JSONFilter + """Filter by the object’s `limitDecrementFunction` field.""" + limitDecrementFunction: StringFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `limitIncrementTrigger` field.""" + limitIncrementTrigger: StringFilter - """Filter by the object’s `endpoint` field.""" - endpoint: StringFilter + """Filter by the object’s `limitDecrementTrigger` field.""" + limitDecrementTrigger: StringFilter - """Filter by the object’s `publicUrlPrefix` field.""" - publicUrlPrefix: StringFilter + """Filter by the object’s `limitUpdateTrigger` field.""" + limitUpdateTrigger: StringFilter - """Filter by the object’s `provider` field.""" - provider: StringFilter + """Filter by the object’s `limitCheckFunction` field.""" + limitCheckFunction: StringFilter - """Filter by the object’s `allowedOrigins` field.""" - allowedOrigins: StringListFilter + """Filter by the object’s `limitCreditsTableId` field.""" + limitCreditsTableId: UUIDFilter - """Filter by the object’s `restrictReads` field.""" - restrictReads: BooleanFilter + """Filter by the object’s `eventsTableId` field.""" + eventsTableId: UUIDFilter - """Filter by the object’s `hasPathShares` field.""" - hasPathShares: BooleanFilter + """Filter by the object’s `creditCodesTableId` field.""" + creditCodesTableId: UUIDFilter - """Filter by the object’s `pathSharesTableId` field.""" - pathSharesTableId: UUIDFilter + """Filter by the object’s `creditCodeItemsTableId` field.""" + creditCodeItemsTableId: UUIDFilter - """Filter by the object’s `uploadUrlExpirySeconds` field.""" - uploadUrlExpirySeconds: IntFilter + """Filter by the object’s `creditRedemptionsTableId` field.""" + creditRedemptionsTableId: UUIDFilter - """Filter by the object’s `downloadUrlExpirySeconds` field.""" - downloadUrlExpirySeconds: IntFilter + """Filter by the object’s `aggregateTableId` field.""" + aggregateTableId: UUIDFilter - """Filter by the object’s `defaultMaxFileSize` field.""" - defaultMaxFileSize: BigIntFilter + """Filter by the object’s `limitCapsTableId` field.""" + limitCapsTableId: UUIDFilter - """Filter by the object’s `maxFilenameLength` field.""" - maxFilenameLength: IntFilter + """Filter by the object’s `limitCapsDefaultsTableId` field.""" + limitCapsDefaultsTableId: UUIDFilter - """Filter by the object’s `cacheTtlSeconds` field.""" - cacheTtlSeconds: IntFilter + """Filter by the object’s `capCheckTrigger` field.""" + capCheckTrigger: StringFilter - """Filter by the object’s `maxBulkFiles` field.""" - maxBulkFiles: IntFilter + """Filter by the object’s `resolveCapFunction` field.""" + resolveCapFunction: StringFilter - """Filter by the object’s `maxBulkTotalSize` field.""" - maxBulkTotalSize: BigIntFilter + """Filter by the object’s `limitWarningsTableId` field.""" + limitWarningsTableId: UUIDFilter - """Filter by the object’s `hasVersioning` field.""" - hasVersioning: BooleanFilter + """Filter by the object’s `limitWarningStateTableId` field.""" + limitWarningStateTableId: UUIDFilter - """Filter by the object’s `hasContentHash` field.""" - hasContentHash: BooleanFilter + """Filter by the object’s `limitCheckSoftFunction` field.""" + limitCheckSoftFunction: StringFilter - """Filter by the object’s `hasCustomKeys` field.""" - hasCustomKeys: BooleanFilter + """Filter by the object’s `limitAggregateCheckSoftFunction` field.""" + limitAggregateCheckSoftFunction: StringFilter - """Filter by the object’s `hasAuditLog` field.""" - hasAuditLog: BooleanFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `hasConfirmUpload` field.""" - hasConfirmUpload: BooleanFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `confirmUploadDelay` field.""" - confirmUploadDelay: IntervalFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `fileEventsTableId` field.""" - fileEventsTableId: UUIDFilter + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -10616,59 +10470,17 @@ input StorageModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [StorageModuleFilter!] + and: [LimitsModuleFilter!] """Checks for any expressions in this list.""" - or: [StorageModuleFilter!] + or: [LimitsModuleFilter!] """Negates the expression.""" - not: StorageModuleFilter -} - -""" -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 + not: LimitsModuleFilter } -"""Methods to use when ordering `StorageModule`.""" -enum StorageModuleOrderBy { +"""Methods to use when ordering `LimitsModule`.""" +enum LimitsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -10680,146 +10492,148 @@ enum StorageModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - BUCKETS_TABLE_ID_ASC - BUCKETS_TABLE_ID_DESC - FILES_TABLE_ID_ASC - FILES_TABLE_ID_DESC - BUCKETS_TABLE_NAME_ASC - BUCKETS_TABLE_NAME_DESC - FILES_TABLE_NAME_ASC - FILES_TABLE_NAME_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + TABLE_ID_ASC + TABLE_ID_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + DEFAULT_TABLE_ID_ASC + DEFAULT_TABLE_ID_DESC + DEFAULT_TABLE_NAME_ASC + DEFAULT_TABLE_NAME_DESC + LIMIT_INCREMENT_FUNCTION_ASC + LIMIT_INCREMENT_FUNCTION_DESC + LIMIT_DECREMENT_FUNCTION_ASC + LIMIT_DECREMENT_FUNCTION_DESC + LIMIT_INCREMENT_TRIGGER_ASC + LIMIT_INCREMENT_TRIGGER_DESC + LIMIT_DECREMENT_TRIGGER_ASC + LIMIT_DECREMENT_TRIGGER_DESC + LIMIT_UPDATE_TRIGGER_ASC + LIMIT_UPDATE_TRIGGER_DESC + LIMIT_CHECK_FUNCTION_ASC + LIMIT_CHECK_FUNCTION_DESC + LIMIT_CREDITS_TABLE_ID_ASC + LIMIT_CREDITS_TABLE_ID_DESC + EVENTS_TABLE_ID_ASC + EVENTS_TABLE_ID_DESC + CREDIT_CODES_TABLE_ID_ASC + CREDIT_CODES_TABLE_ID_DESC + CREDIT_CODE_ITEMS_TABLE_ID_ASC + CREDIT_CODE_ITEMS_TABLE_ID_DESC + CREDIT_REDEMPTIONS_TABLE_ID_ASC + CREDIT_REDEMPTIONS_TABLE_ID_DESC + AGGREGATE_TABLE_ID_ASC + AGGREGATE_TABLE_ID_DESC + LIMIT_CAPS_TABLE_ID_ASC + LIMIT_CAPS_TABLE_ID_DESC + LIMIT_CAPS_DEFAULTS_TABLE_ID_ASC + LIMIT_CAPS_DEFAULTS_TABLE_ID_DESC + CAP_CHECK_TRIGGER_ASC + CAP_CHECK_TRIGGER_DESC + RESOLVE_CAP_FUNCTION_ASC + RESOLVE_CAP_FUNCTION_DESC + LIMIT_WARNINGS_TABLE_ID_ASC + LIMIT_WARNINGS_TABLE_ID_DESC + LIMIT_WARNING_STATE_TABLE_ID_ASC + LIMIT_WARNING_STATE_TABLE_ID_DESC + LIMIT_CHECK_SOFT_FUNCTION_ASC + LIMIT_CHECK_SOFT_FUNCTION_DESC + LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_ASC + LIMIT_AGGREGATE_CHECK_SOFT_FUNCTION_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC - POLICIES_ASC - POLICIES_DESC - PROVISIONS_ASC - PROVISIONS_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - ENDPOINT_ASC - ENDPOINT_DESC - PUBLIC_URL_PREFIX_ASC - PUBLIC_URL_PREFIX_DESC - PROVIDER_ASC - PROVIDER_DESC - ALLOWED_ORIGINS_ASC - ALLOWED_ORIGINS_DESC - RESTRICT_READS_ASC - RESTRICT_READS_DESC - HAS_PATH_SHARES_ASC - HAS_PATH_SHARES_DESC - PATH_SHARES_TABLE_ID_ASC - PATH_SHARES_TABLE_ID_DESC - UPLOAD_URL_EXPIRY_SECONDS_ASC - UPLOAD_URL_EXPIRY_SECONDS_DESC - DOWNLOAD_URL_EXPIRY_SECONDS_ASC - DOWNLOAD_URL_EXPIRY_SECONDS_DESC - DEFAULT_MAX_FILE_SIZE_ASC - DEFAULT_MAX_FILE_SIZE_DESC - MAX_FILENAME_LENGTH_ASC - MAX_FILENAME_LENGTH_DESC - CACHE_TTL_SECONDS_ASC - CACHE_TTL_SECONDS_DESC - MAX_BULK_FILES_ASC - MAX_BULK_FILES_DESC - MAX_BULK_TOTAL_SIZE_ASC - MAX_BULK_TOTAL_SIZE_DESC - HAS_VERSIONING_ASC - HAS_VERSIONING_DESC - HAS_CONTENT_HASH_ASC - HAS_CONTENT_HASH_DESC - HAS_CUSTOM_KEYS_ASC - HAS_CUSTOM_KEYS_DESC - HAS_AUDIT_LOG_ASC - HAS_AUDIT_LOG_DESC - HAS_CONFIRM_UPLOAD_ASC - HAS_CONFIRM_UPLOAD_DESC - CONFIRM_UPLOAD_DELAY_ASC - CONFIRM_UPLOAD_DELAY_DESC - FILE_EVENTS_TABLE_ID_ASC - FILE_EVENTS_TABLE_ID_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC PRIVATE_API_NAME_DESC } -"""A connection to a list of `EventsModule` values.""" -type EventsModuleConnection { - """A list of `EventsModule` objects.""" - nodes: [EventsModule]! +"""A connection to a list of `MembershipsModule` values.""" +type MembershipsModuleConnection { + """A list of `MembershipsModule` objects.""" + nodes: [MembershipsModule]! """ - A list of edges which contains the `EventsModule` and cursor to aid in pagination. + A list of edges which contains the `MembershipsModule` and cursor to aid in pagination. """ - edges: [EventsModuleEdge]! + edges: [MembershipsModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `EventsModule` you could get from the connection.""" + """ + The count of *all* `MembershipsModule` you could get from the connection. + """ totalCount: Int! } -type EventsModule { +type MembershipsModule { id: UUID! databaseId: UUID! schemaId: UUID! privateSchemaId: UUID! - eventsTableId: UUID! - eventsTableName: String! - eventAggregatesTableId: UUID! - eventAggregatesTableName: String! - eventTypesTableId: UUID! - eventTypesTableName: String! - levelsTableId: UUID! - levelsTableName: String! - levelRequirementsTableId: UUID! - levelRequirementsTableName: String! - levelGrantsTableId: UUID! - levelGrantsTableName: String! - achievementRewardsTableId: UUID! - achievementRewardsTableName: String! - recordEvent: String! - removeEvent: String! - tgEvent: String! - tgEventToggle: String! - tgEventToggleBool: String! - tgEventBool: String! - upsertAggregate: String! - tgUpdateAggregates: String! - pruneEvents: String! - stepsRequired: String! - levelAchieved: String! - tgCheckAchievements: String! - grantAchievement: String! - tgAchievementReward: String! - interval: String! - retention: String - premake: Int! + publicSchemaName: String + privateSchemaName: String + membershipsTableId: UUID! + membershipsTableName: String! + membersTableId: UUID! + membersTableName: String! + membershipDefaultsTableId: UUID! + membershipDefaultsTableName: String! + membershipSettingsTableId: UUID + membershipSettingsTableName: String! + grantsTableId: UUID! + grantsTableName: String! + actorTableId: UUID! + limitsTableId: UUID! + defaultLimitsTableId: UUID! + permissionsTableId: UUID! + defaultPermissionsTableId: UUID! + sprtTableId: UUID! + adminGrantsTableId: UUID! + adminGrantsTableName: String! + ownerGrantsTableId: UUID! + ownerGrantsTableName: String! scope: String! prefix: String! entityTableId: UUID - actorTableId: UUID! + entityTableOwnerId: UUID + getOrgFn: String + actorMaskCheck: String! + actorPermCheck: String! + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + memberProfilesTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID apiName: String privateApiName: String } -"""A `EventsModule` edge in the connection.""" -type EventsModuleEdge { +"""A `MembershipsModule` edge in the connection.""" +type MembershipsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `EventsModule` at the end of the edge.""" - node: EventsModule + """The `MembershipsModule` at the end of the edge.""" + node: MembershipsModule } """ -A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipsModule` object types. All fields are combined with a logical ‘and.’ """ -input EventsModuleFilter { +input MembershipsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -10832,110 +10646,110 @@ input EventsModuleFilter { """Filter by the object’s `privateSchemaId` field.""" privateSchemaId: UUIDFilter - """Filter by the object’s `eventsTableId` field.""" - eventsTableId: UUIDFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter - """Filter by the object’s `eventsTableName` field.""" - eventsTableName: StringFilter + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter - """Filter by the object’s `eventAggregatesTableId` field.""" - eventAggregatesTableId: UUIDFilter + """Filter by the object’s `membershipsTableId` field.""" + membershipsTableId: UUIDFilter - """Filter by the object’s `eventAggregatesTableName` field.""" - eventAggregatesTableName: StringFilter + """Filter by the object’s `membershipsTableName` field.""" + membershipsTableName: StringFilter - """Filter by the object’s `eventTypesTableId` field.""" - eventTypesTableId: UUIDFilter + """Filter by the object’s `membersTableId` field.""" + membersTableId: UUIDFilter - """Filter by the object’s `eventTypesTableName` field.""" - eventTypesTableName: StringFilter + """Filter by the object’s `membersTableName` field.""" + membersTableName: StringFilter - """Filter by the object’s `levelsTableId` field.""" - levelsTableId: UUIDFilter + """Filter by the object’s `membershipDefaultsTableId` field.""" + membershipDefaultsTableId: UUIDFilter - """Filter by the object’s `levelsTableName` field.""" - levelsTableName: StringFilter + """Filter by the object’s `membershipDefaultsTableName` field.""" + membershipDefaultsTableName: StringFilter - """Filter by the object’s `levelRequirementsTableId` field.""" - levelRequirementsTableId: UUIDFilter + """Filter by the object’s `membershipSettingsTableId` field.""" + membershipSettingsTableId: UUIDFilter - """Filter by the object’s `levelRequirementsTableName` field.""" - levelRequirementsTableName: StringFilter + """Filter by the object’s `membershipSettingsTableName` field.""" + membershipSettingsTableName: StringFilter - """Filter by the object’s `levelGrantsTableId` field.""" - levelGrantsTableId: UUIDFilter + """Filter by the object’s `grantsTableId` field.""" + grantsTableId: UUIDFilter - """Filter by the object’s `levelGrantsTableName` field.""" - levelGrantsTableName: StringFilter + """Filter by the object’s `grantsTableName` field.""" + grantsTableName: StringFilter - """Filter by the object’s `achievementRewardsTableId` field.""" - achievementRewardsTableId: UUIDFilter + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter - """Filter by the object’s `achievementRewardsTableName` field.""" - achievementRewardsTableName: StringFilter + """Filter by the object’s `limitsTableId` field.""" + limitsTableId: UUIDFilter - """Filter by the object’s `recordEvent` field.""" - recordEvent: StringFilter + """Filter by the object’s `defaultLimitsTableId` field.""" + defaultLimitsTableId: UUIDFilter - """Filter by the object’s `removeEvent` field.""" - removeEvent: StringFilter + """Filter by the object’s `permissionsTableId` field.""" + permissionsTableId: UUIDFilter - """Filter by the object’s `tgEvent` field.""" - tgEvent: StringFilter + """Filter by the object’s `defaultPermissionsTableId` field.""" + defaultPermissionsTableId: UUIDFilter - """Filter by the object’s `tgEventToggle` field.""" - tgEventToggle: StringFilter + """Filter by the object’s `sprtTableId` field.""" + sprtTableId: UUIDFilter - """Filter by the object’s `tgEventToggleBool` field.""" - tgEventToggleBool: StringFilter + """Filter by the object’s `adminGrantsTableId` field.""" + adminGrantsTableId: UUIDFilter - """Filter by the object’s `tgEventBool` field.""" - tgEventBool: StringFilter + """Filter by the object’s `adminGrantsTableName` field.""" + adminGrantsTableName: StringFilter - """Filter by the object’s `upsertAggregate` field.""" - upsertAggregate: StringFilter + """Filter by the object’s `ownerGrantsTableId` field.""" + ownerGrantsTableId: UUIDFilter - """Filter by the object’s `tgUpdateAggregates` field.""" - tgUpdateAggregates: StringFilter + """Filter by the object’s `ownerGrantsTableName` field.""" + ownerGrantsTableName: StringFilter - """Filter by the object’s `pruneEvents` field.""" - pruneEvents: StringFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `stepsRequired` field.""" - stepsRequired: StringFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `levelAchieved` field.""" - levelAchieved: StringFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `tgCheckAchievements` field.""" - tgCheckAchievements: StringFilter + """Filter by the object’s `entityTableOwnerId` field.""" + entityTableOwnerId: UUIDFilter - """Filter by the object’s `grantAchievement` field.""" - grantAchievement: StringFilter + """Filter by the object’s `getOrgFn` field.""" + getOrgFn: StringFilter - """Filter by the object’s `tgAchievementReward` field.""" - tgAchievementReward: StringFilter + """Filter by the object’s `actorMaskCheck` field.""" + actorMaskCheck: StringFilter - """Filter by the object’s `interval` field.""" - interval: StringFilter + """Filter by the object’s `actorPermCheck` field.""" + actorPermCheck: StringFilter - """Filter by the object’s `retention` field.""" - retention: StringFilter + """Filter by the object’s `entityIdsByMask` field.""" + entityIdsByMask: StringFilter - """Filter by the object’s `premake` field.""" - premake: IntFilter + """Filter by the object’s `entityIdsByPerm` field.""" + entityIdsByPerm: StringFilter - """Filter by the object’s `scope` field.""" - scope: StringFilter + """Filter by the object’s `entityIdsFunction` field.""" + entityIdsFunction: StringFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `memberProfilesTableId` field.""" + memberProfilesTableId: UUIDFilter - """Filter by the object’s `entityTableId` field.""" - entityTableId: UUIDFilter + """Filter by the object’s `permissionDefaultPermissionsTableId` field.""" + permissionDefaultPermissionsTableId: UUIDFilter - """Filter by the object’s `actorTableId` field.""" - actorTableId: UUIDFilter + """Filter by the object’s `permissionDefaultGrantsTableId` field.""" + permissionDefaultGrantsTableId: UUIDFilter """Filter by the object’s `apiName` field.""" apiName: StringFilter @@ -10944,17 +10758,17 @@ input EventsModuleFilter { privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [EventsModuleFilter!] + and: [MembershipsModuleFilter!] """Checks for any expressions in this list.""" - or: [EventsModuleFilter!] + or: [MembershipsModuleFilter!] """Negates the expression.""" - not: EventsModuleFilter + not: MembershipsModuleFilter } -"""Methods to use when ordering `EventsModule`.""" -enum EventsModuleOrderBy { +"""Methods to use when ordering `MembershipsModule`.""" +enum MembershipsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -10966,76 +10780,76 @@ enum EventsModuleOrderBy { SCHEMA_ID_DESC PRIVATE_SCHEMA_ID_ASC PRIVATE_SCHEMA_ID_DESC - EVENTS_TABLE_ID_ASC - EVENTS_TABLE_ID_DESC - EVENTS_TABLE_NAME_ASC - EVENTS_TABLE_NAME_DESC - EVENT_AGGREGATES_TABLE_ID_ASC - EVENT_AGGREGATES_TABLE_ID_DESC - EVENT_AGGREGATES_TABLE_NAME_ASC - EVENT_AGGREGATES_TABLE_NAME_DESC - EVENT_TYPES_TABLE_ID_ASC - EVENT_TYPES_TABLE_ID_DESC - EVENT_TYPES_TABLE_NAME_ASC - EVENT_TYPES_TABLE_NAME_DESC - LEVELS_TABLE_ID_ASC - LEVELS_TABLE_ID_DESC - LEVELS_TABLE_NAME_ASC - LEVELS_TABLE_NAME_DESC - LEVEL_REQUIREMENTS_TABLE_ID_ASC - LEVEL_REQUIREMENTS_TABLE_ID_DESC - LEVEL_REQUIREMENTS_TABLE_NAME_ASC - LEVEL_REQUIREMENTS_TABLE_NAME_DESC - LEVEL_GRANTS_TABLE_ID_ASC - LEVEL_GRANTS_TABLE_ID_DESC - LEVEL_GRANTS_TABLE_NAME_ASC - LEVEL_GRANTS_TABLE_NAME_DESC - ACHIEVEMENT_REWARDS_TABLE_ID_ASC - ACHIEVEMENT_REWARDS_TABLE_ID_DESC - ACHIEVEMENT_REWARDS_TABLE_NAME_ASC - ACHIEVEMENT_REWARDS_TABLE_NAME_DESC - RECORD_EVENT_ASC - RECORD_EVENT_DESC - REMOVE_EVENT_ASC - REMOVE_EVENT_DESC - TG_EVENT_ASC - TG_EVENT_DESC - TG_EVENT_TOGGLE_ASC - TG_EVENT_TOGGLE_DESC - TG_EVENT_TOGGLE_BOOL_ASC - TG_EVENT_TOGGLE_BOOL_DESC - TG_EVENT_BOOL_ASC - TG_EVENT_BOOL_DESC - UPSERT_AGGREGATE_ASC - UPSERT_AGGREGATE_DESC - TG_UPDATE_AGGREGATES_ASC - TG_UPDATE_AGGREGATES_DESC - PRUNE_EVENTS_ASC - PRUNE_EVENTS_DESC - STEPS_REQUIRED_ASC - STEPS_REQUIRED_DESC - LEVEL_ACHIEVED_ASC - LEVEL_ACHIEVED_DESC - TG_CHECK_ACHIEVEMENTS_ASC - TG_CHECK_ACHIEVEMENTS_DESC - GRANT_ACHIEVEMENT_ASC - GRANT_ACHIEVEMENT_DESC - TG_ACHIEVEMENT_REWARD_ASC - TG_ACHIEVEMENT_REWARD_DESC - INTERVAL_ASC - INTERVAL_DESC - RETENTION_ASC - RETENTION_DESC - PREMAKE_ASC - PREMAKE_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + MEMBERSHIPS_TABLE_ID_ASC + MEMBERSHIPS_TABLE_ID_DESC + MEMBERSHIPS_TABLE_NAME_ASC + MEMBERSHIPS_TABLE_NAME_DESC + MEMBERS_TABLE_ID_ASC + MEMBERS_TABLE_ID_DESC + MEMBERS_TABLE_NAME_ASC + MEMBERS_TABLE_NAME_DESC + MEMBERSHIP_DEFAULTS_TABLE_ID_ASC + MEMBERSHIP_DEFAULTS_TABLE_ID_DESC + MEMBERSHIP_DEFAULTS_TABLE_NAME_ASC + MEMBERSHIP_DEFAULTS_TABLE_NAME_DESC + MEMBERSHIP_SETTINGS_TABLE_ID_ASC + MEMBERSHIP_SETTINGS_TABLE_ID_DESC + MEMBERSHIP_SETTINGS_TABLE_NAME_ASC + MEMBERSHIP_SETTINGS_TABLE_NAME_DESC + GRANTS_TABLE_ID_ASC + GRANTS_TABLE_ID_DESC + GRANTS_TABLE_NAME_ASC + GRANTS_TABLE_NAME_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + LIMITS_TABLE_ID_ASC + LIMITS_TABLE_ID_DESC + DEFAULT_LIMITS_TABLE_ID_ASC + DEFAULT_LIMITS_TABLE_ID_DESC + PERMISSIONS_TABLE_ID_ASC + PERMISSIONS_TABLE_ID_DESC + DEFAULT_PERMISSIONS_TABLE_ID_ASC + DEFAULT_PERMISSIONS_TABLE_ID_DESC + SPRT_TABLE_ID_ASC + SPRT_TABLE_ID_DESC + ADMIN_GRANTS_TABLE_ID_ASC + ADMIN_GRANTS_TABLE_ID_DESC + ADMIN_GRANTS_TABLE_NAME_ASC + ADMIN_GRANTS_TABLE_NAME_DESC + OWNER_GRANTS_TABLE_ID_ASC + OWNER_GRANTS_TABLE_ID_DESC + OWNER_GRANTS_TABLE_NAME_ASC + OWNER_GRANTS_TABLE_NAME_DESC SCOPE_ASC SCOPE_DESC PREFIX_ASC PREFIX_DESC ENTITY_TABLE_ID_ASC ENTITY_TABLE_ID_DESC - ACTOR_TABLE_ID_ASC - ACTOR_TABLE_ID_DESC + ENTITY_TABLE_OWNER_ID_ASC + ENTITY_TABLE_OWNER_ID_DESC + GET_ORG_FN_ASC + GET_ORG_FN_DESC + ACTOR_MASK_CHECK_ASC + ACTOR_MASK_CHECK_DESC + ACTOR_PERM_CHECK_ASC + ACTOR_PERM_CHECK_DESC + ENTITY_IDS_BY_MASK_ASC + ENTITY_IDS_BY_MASK_DESC + ENTITY_IDS_BY_PERM_ASC + ENTITY_IDS_BY_PERM_DESC + ENTITY_IDS_FUNCTION_ASC + ENTITY_IDS_FUNCTION_DESC + MEMBER_PROFILES_TABLE_ID_ASC + MEMBER_PROFILES_TABLE_ID_DESC + PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC + PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC + PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC + PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC API_NAME_ASC API_NAME_DESC PRIVATE_API_NAME_ASC @@ -11291,231 +11105,862 @@ type EntityTypeProvision { tableProvision: JSON """ - Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. - This is the ID used in entity_types, memberships_module, and all module tables. + Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + This is the ID used in entity_types, memberships_module, and all module tables. + """ + outMembershipType: Int + + """ + Output: the UUID of the created entity table. Populated by the trigger. + Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + """ + outEntityTableId: UUID + + """ + Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. + """ + outEntityTableName: String + + """ + Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + Populated by the trigger. Useful for verifying which modules were provisioned. + """ + outInstalledModules: [String] + + """ + Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. + """ + outStorageModuleId: UUID + + """ + Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. + """ + outBucketsTableId: UUID + + """ + Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + """ + outFilesTableId: UUID + outPathSharesTableId: UUID + + """ + Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + (i.e. the invites_module row was created in a previous run). + """ + outInvitesModuleId: UUID + + """ + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""A `EntityTypeProvision` edge in the connection.""" +type EntityTypeProvisionEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `EntityTypeProvision` at the end of the edge.""" + node: EntityTypeProvision +} + +""" +A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ +""" +input EntityTypeProvisionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `parentEntity` field.""" + parentEntity: StringFilter + + """Filter by the object’s `tableName` field.""" + tableName: StringFilter + + """Filter by the object’s `isVisible` field.""" + isVisible: BooleanFilter + + """Filter by the object’s `hasLimits` field.""" + hasLimits: BooleanFilter + + """Filter by the object’s `hasProfiles` field.""" + hasProfiles: BooleanFilter + + """Filter by the object’s `hasLevels` field.""" + hasLevels: BooleanFilter + + """Filter by the object’s `hasInvites` field.""" + hasInvites: BooleanFilter + + """Filter by the object’s `hasInviteAchievements` field.""" + hasInviteAchievements: BooleanFilter + + """Filter by the object’s `storage` field.""" + storage: JSONFilter + + """Filter by the object’s `namespaces` field.""" + namespaces: JSONFilter + + """Filter by the object’s `functions` field.""" + functions: JSONFilter + + """Filter by the object’s `graphs` field.""" + graphs: JSONFilter + + """Filter by the object’s `agents` field.""" + agents: JSONFilter + + """Filter by the object’s `skipEntityPolicies` field.""" + skipEntityPolicies: BooleanFilter + + """Filter by the object’s `tableProvision` field.""" + tableProvision: JSONFilter + + """Filter by the object’s `outMembershipType` field.""" + outMembershipType: IntFilter + + """Filter by the object’s `outEntityTableId` field.""" + outEntityTableId: UUIDFilter + + """Filter by the object’s `outEntityTableName` field.""" + outEntityTableName: StringFilter + + """Filter by the object’s `outInstalledModules` field.""" + outInstalledModules: StringListFilter + + """Filter by the object’s `outStorageModuleId` field.""" + outStorageModuleId: UUIDFilter + + """Filter by the object’s `outBucketsTableId` field.""" + outBucketsTableId: UUIDFilter + + """Filter by the object’s `outFilesTableId` field.""" + outFilesTableId: UUIDFilter + + """Filter by the object’s `outPathSharesTableId` field.""" + outPathSharesTableId: UUIDFilter + + """Filter by the object’s `outInvitesModuleId` field.""" + outInvitesModuleId: UUIDFilter + + """Filter by the object’s `outNamespaceModuleId` field.""" + outNamespaceModuleId: UUIDFilter + + """Filter by the object’s `outNamespacesTableId` field.""" + outNamespacesTableId: UUIDFilter + + """Filter by the object’s `outNamespaceEventsTableId` field.""" + outNamespaceEventsTableId: UUIDFilter + + """Filter by the object’s `outFunctionModuleId` field.""" + outFunctionModuleId: UUIDFilter + + """Filter by the object’s `outDefinitionsTableId` field.""" + outDefinitionsTableId: UUIDFilter + + """Filter by the object’s `outInvocationsTableId` field.""" + outInvocationsTableId: UUIDFilter + + """Filter by the object’s `outExecutionLogsTableId` field.""" + outExecutionLogsTableId: UUIDFilter + + """Filter by the object’s `outSecretDefinitionsTableId` field.""" + outSecretDefinitionsTableId: UUIDFilter + + """Filter by the object’s `outGraphModuleId` field.""" + outGraphModuleId: UUIDFilter + + """Filter by the object’s `outGraphsTableId` field.""" + outGraphsTableId: UUIDFilter + + """Filter by the object’s `outAgentModuleId` field.""" + outAgentModuleId: UUIDFilter + + """Checks for all expressions in this list.""" + and: [EntityTypeProvisionFilter!] + + """Checks for any expressions in this list.""" + or: [EntityTypeProvisionFilter!] + + """Negates the expression.""" + not: EntityTypeProvisionFilter +} + +"""Methods to use when ordering `EntityTypeProvision`.""" +enum EntityTypeProvisionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + NAME_ASC + NAME_DESC + PREFIX_ASC + PREFIX_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PARENT_ENTITY_ASC + PARENT_ENTITY_DESC + TABLE_NAME_ASC + TABLE_NAME_DESC + IS_VISIBLE_ASC + IS_VISIBLE_DESC + HAS_LIMITS_ASC + HAS_LIMITS_DESC + HAS_PROFILES_ASC + HAS_PROFILES_DESC + HAS_LEVELS_ASC + HAS_LEVELS_DESC + HAS_INVITES_ASC + HAS_INVITES_DESC + HAS_INVITE_ACHIEVEMENTS_ASC + HAS_INVITE_ACHIEVEMENTS_DESC + STORAGE_ASC + STORAGE_DESC + NAMESPACES_ASC + NAMESPACES_DESC + FUNCTIONS_ASC + FUNCTIONS_DESC + GRAPHS_ASC + GRAPHS_DESC + AGENTS_ASC + AGENTS_DESC + SKIP_ENTITY_POLICIES_ASC + SKIP_ENTITY_POLICIES_DESC + TABLE_PROVISION_ASC + TABLE_PROVISION_DESC + OUT_MEMBERSHIP_TYPE_ASC + OUT_MEMBERSHIP_TYPE_DESC + OUT_ENTITY_TABLE_ID_ASC + OUT_ENTITY_TABLE_ID_DESC + OUT_ENTITY_TABLE_NAME_ASC + OUT_ENTITY_TABLE_NAME_DESC + OUT_INSTALLED_MODULES_ASC + OUT_INSTALLED_MODULES_DESC + OUT_STORAGE_MODULE_ID_ASC + OUT_STORAGE_MODULE_ID_DESC + OUT_BUCKETS_TABLE_ID_ASC + OUT_BUCKETS_TABLE_ID_DESC + OUT_FILES_TABLE_ID_ASC + OUT_FILES_TABLE_ID_DESC + OUT_PATH_SHARES_TABLE_ID_ASC + OUT_PATH_SHARES_TABLE_ID_DESC + OUT_INVITES_MODULE_ID_ASC + OUT_INVITES_MODULE_ID_DESC + OUT_NAMESPACE_MODULE_ID_ASC + OUT_NAMESPACE_MODULE_ID_DESC + OUT_NAMESPACES_TABLE_ID_ASC + OUT_NAMESPACES_TABLE_ID_DESC + OUT_NAMESPACE_EVENTS_TABLE_ID_ASC + OUT_NAMESPACE_EVENTS_TABLE_ID_DESC + OUT_FUNCTION_MODULE_ID_ASC + OUT_FUNCTION_MODULE_ID_DESC + OUT_DEFINITIONS_TABLE_ID_ASC + OUT_DEFINITIONS_TABLE_ID_DESC + OUT_INVOCATIONS_TABLE_ID_ASC + OUT_INVOCATIONS_TABLE_ID_DESC + OUT_EXECUTION_LOGS_TABLE_ID_ASC + OUT_EXECUTION_LOGS_TABLE_ID_DESC + OUT_SECRET_DEFINITIONS_TABLE_ID_ASC + OUT_SECRET_DEFINITIONS_TABLE_ID_DESC + OUT_GRAPH_MODULE_ID_ASC + OUT_GRAPH_MODULE_ID_DESC + OUT_GRAPHS_TABLE_ID_ASC + OUT_GRAPHS_TABLE_ID_DESC + OUT_AGENT_MODULE_ID_ASC + OUT_AGENT_MODULE_ID_DESC +} + +"""A connection to a list of `StorageModule` values.""" +type StorageModuleConnection { + """A list of `StorageModule` objects.""" + nodes: [StorageModule]! + + """ + A list of edges which contains the `StorageModule` and cursor to aid in pagination. + """ + edges: [StorageModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `StorageModule` you could get from the connection.""" + totalCount: Int! +} + +type StorageModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + bucketsTableId: UUID! + filesTableId: UUID! + bucketsTableName: String! + filesTableName: String! + scope: String! + prefix: String! + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean! + hasPathShares: Boolean! + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean! + hasContentHash: Boolean! + hasCustomKeys: Boolean! + hasAuditLog: Boolean! + hasConfirmUpload: Boolean! + confirmUploadDelay: Interval! + fileEventsTableId: UUID + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +""" +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 `StorageModule` edge in the connection.""" +type StorageModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `StorageModule` at the end of the edge.""" + node: StorageModule +} + +""" +A filter to be used against `StorageModule` object types. All fields are combined with a logical ‘and.’ +""" +input StorageModuleFilter { + """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 `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `bucketsTableId` field.""" + bucketsTableId: UUIDFilter + + """Filter by the object’s `filesTableId` field.""" + filesTableId: UUIDFilter + + """Filter by the object’s `bucketsTableName` field.""" + bucketsTableName: StringFilter + + """Filter by the object’s `filesTableName` field.""" + filesTableName: StringFilter + + """Filter by the object’s `scope` field.""" + scope: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `policies` field.""" + policies: JSONFilter + + """Filter by the object’s `provisions` field.""" + provisions: JSONFilter + + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter + + """Filter by the object’s `endpoint` field.""" + endpoint: StringFilter + + """Filter by the object’s `publicUrlPrefix` field.""" + publicUrlPrefix: StringFilter + + """Filter by the object’s `provider` field.""" + 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 `hasPathShares` field.""" + hasPathShares: BooleanFilter + + """Filter by the object’s `pathSharesTableId` field.""" + pathSharesTableId: UUIDFilter + + """Filter by the object’s `uploadUrlExpirySeconds` field.""" + uploadUrlExpirySeconds: IntFilter + + """Filter by the object’s `downloadUrlExpirySeconds` field.""" + downloadUrlExpirySeconds: IntFilter + + """Filter by the object’s `defaultMaxFileSize` field.""" + defaultMaxFileSize: BigIntFilter + + """Filter by the object’s `maxFilenameLength` field.""" + maxFilenameLength: IntFilter + + """Filter by the object’s `cacheTtlSeconds` field.""" + cacheTtlSeconds: IntFilter + + """Filter by the object’s `maxBulkFiles` field.""" + maxBulkFiles: IntFilter + + """Filter by the object’s `maxBulkTotalSize` field.""" + maxBulkTotalSize: BigIntFilter + + """Filter by the object’s `hasVersioning` field.""" + hasVersioning: BooleanFilter + + """Filter by the object’s `hasContentHash` field.""" + hasContentHash: BooleanFilter + + """Filter by the object’s `hasCustomKeys` field.""" + hasCustomKeys: BooleanFilter + + """Filter by the object’s `hasAuditLog` field.""" + hasAuditLog: BooleanFilter + + """Filter by the object’s `hasConfirmUpload` field.""" + hasConfirmUpload: BooleanFilter + + """Filter by the object’s `confirmUploadDelay` field.""" + confirmUploadDelay: IntervalFilter + + """Filter by the object’s `fileEventsTableId` field.""" + fileEventsTableId: UUIDFilter + + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter + + """Filter by the object’s `apiName` field.""" + apiName: StringFilter + + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter + + """Checks for all expressions in this list.""" + and: [StorageModuleFilter!] + + """Checks for any expressions in this list.""" + or: [StorageModuleFilter!] + + """Negates the expression.""" + not: StorageModuleFilter +} + +""" +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). """ - outMembershipType: Int + isNull: Boolean - """ - Output: the UUID of the created entity table. Populated by the trigger. - Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. - """ - outEntityTableId: UUID + """Equal to the specified value.""" + equalTo: BigInt - """ - Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. - """ - outEntityTableName: String + """Not equal to the specified value.""" + notEqualTo: BigInt """ - Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). - Populated by the trigger. Useful for verifying which modules were provisioned. + Not equal to the specified value, treating null like an ordinary value. """ - outInstalledModules: [String] + distinctFrom: BigInt - """ - Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. - """ - outStorageModuleId: UUID + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt - """ - Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. - """ - outBucketsTableId: UUID + """Included in the specified list.""" + in: [BigInt!] - """ - Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. - """ - outFilesTableId: UUID - outPathSharesTableId: UUID + """Not included in the specified list.""" + notIn: [BigInt!] - """ - Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - (i.e. the invites_module row was created in a previous run). - """ - outInvitesModuleId: UUID + """Less than the specified value.""" + lessThan: BigInt - """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespaceModuleId: UUID + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt - """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. - """ - outNamespacesTableId: UUID + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt +} + +"""Methods to use when ordering `StorageModule`.""" +enum StorageModuleOrderBy { + 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 + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + BUCKETS_TABLE_ID_ASC + BUCKETS_TABLE_ID_DESC + FILES_TABLE_ID_ASC + FILES_TABLE_ID_DESC + BUCKETS_TABLE_NAME_ASC + BUCKETS_TABLE_NAME_DESC + FILES_TABLE_NAME_ASC + FILES_TABLE_NAME_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + POLICIES_ASC + POLICIES_DESC + PROVISIONS_ASC + PROVISIONS_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ENDPOINT_ASC + ENDPOINT_DESC + PUBLIC_URL_PREFIX_ASC + PUBLIC_URL_PREFIX_DESC + PROVIDER_ASC + PROVIDER_DESC + ALLOWED_ORIGINS_ASC + ALLOWED_ORIGINS_DESC + RESTRICT_READS_ASC + RESTRICT_READS_DESC + HAS_PATH_SHARES_ASC + HAS_PATH_SHARES_DESC + PATH_SHARES_TABLE_ID_ASC + PATH_SHARES_TABLE_ID_DESC + UPLOAD_URL_EXPIRY_SECONDS_ASC + UPLOAD_URL_EXPIRY_SECONDS_DESC + DOWNLOAD_URL_EXPIRY_SECONDS_ASC + DOWNLOAD_URL_EXPIRY_SECONDS_DESC + DEFAULT_MAX_FILE_SIZE_ASC + DEFAULT_MAX_FILE_SIZE_DESC + MAX_FILENAME_LENGTH_ASC + MAX_FILENAME_LENGTH_DESC + CACHE_TTL_SECONDS_ASC + CACHE_TTL_SECONDS_DESC + MAX_BULK_FILES_ASC + MAX_BULK_FILES_DESC + MAX_BULK_TOTAL_SIZE_ASC + MAX_BULK_TOTAL_SIZE_DESC + HAS_VERSIONING_ASC + HAS_VERSIONING_DESC + HAS_CONTENT_HASH_ASC + HAS_CONTENT_HASH_DESC + HAS_CUSTOM_KEYS_ASC + HAS_CUSTOM_KEYS_DESC + HAS_AUDIT_LOG_ASC + HAS_AUDIT_LOG_DESC + HAS_CONFIRM_UPLOAD_ASC + HAS_CONFIRM_UPLOAD_DESC + CONFIRM_UPLOAD_DELAY_ASC + CONFIRM_UPLOAD_DELAY_DESC + FILE_EVENTS_TABLE_ID_ASC + FILE_EVENTS_TABLE_ID_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC +} + +"""A connection to a list of `EventsModule` values.""" +type EventsModuleConnection { + """A list of `EventsModule` objects.""" + nodes: [EventsModule]! """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + A list of edges which contains the `EventsModule` and cursor to aid in pagination. """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID + edges: [EventsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `EventsModule` you could get from the connection.""" + totalCount: Int! } -"""A `EntityTypeProvision` edge in the connection.""" -type EntityTypeProvisionEdge { +type EventsModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + publicSchemaName: String + privateSchemaName: String + eventsTableId: UUID! + eventsTableName: String! + eventAggregatesTableId: UUID! + eventAggregatesTableName: String! + eventTypesTableId: UUID! + eventTypesTableName: String! + levelsTableId: UUID! + levelsTableName: String! + levelRequirementsTableId: UUID! + levelRequirementsTableName: String! + levelGrantsTableId: UUID! + levelGrantsTableName: String! + achievementRewardsTableId: UUID! + achievementRewardsTableName: String! + recordEvent: String! + removeEvent: String! + tgEvent: String! + tgEventToggle: String! + tgEventToggleBool: String! + tgEventBool: String! + upsertAggregate: String! + tgUpdateAggregates: String! + pruneEvents: String! + stepsRequired: String! + levelAchieved: String! + tgCheckAchievements: String! + grantAchievement: String! + tgAchievementReward: String! + interval: String! + retention: String + premake: Int! + scope: String! + prefix: String! + entityTableId: UUID + actorTableId: UUID! + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +"""A `EventsModule` edge in the connection.""" +type EventsModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `EntityTypeProvision` at the end of the edge.""" - node: EntityTypeProvision + """The `EventsModule` at the end of the edge.""" + node: EventsModule } """ -A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `EventsModule` object types. All fields are combined with a logical ‘and.’ """ -input EntityTypeProvisionFilter { +input EventsModuleFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `databaseId` field.""" databaseId: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `publicSchemaName` field.""" + publicSchemaName: StringFilter + + """Filter by the object’s `privateSchemaName` field.""" + privateSchemaName: StringFilter + + """Filter by the object’s `eventsTableId` field.""" + eventsTableId: UUIDFilter - """Filter by the object’s `parentEntity` field.""" - parentEntity: StringFilter + """Filter by the object’s `eventsTableName` field.""" + eventsTableName: StringFilter - """Filter by the object’s `tableName` field.""" - tableName: StringFilter + """Filter by the object’s `eventAggregatesTableId` field.""" + eventAggregatesTableId: UUIDFilter - """Filter by the object’s `isVisible` field.""" - isVisible: BooleanFilter + """Filter by the object’s `eventAggregatesTableName` field.""" + eventAggregatesTableName: StringFilter - """Filter by the object’s `hasLimits` field.""" - hasLimits: BooleanFilter + """Filter by the object’s `eventTypesTableId` field.""" + eventTypesTableId: UUIDFilter - """Filter by the object’s `hasProfiles` field.""" - hasProfiles: BooleanFilter + """Filter by the object’s `eventTypesTableName` field.""" + eventTypesTableName: StringFilter - """Filter by the object’s `hasLevels` field.""" - hasLevels: BooleanFilter + """Filter by the object’s `levelsTableId` field.""" + levelsTableId: UUIDFilter - """Filter by the object’s `hasInvites` field.""" - hasInvites: BooleanFilter + """Filter by the object’s `levelsTableName` field.""" + levelsTableName: StringFilter - """Filter by the object’s `hasInviteAchievements` field.""" - hasInviteAchievements: BooleanFilter + """Filter by the object’s `levelRequirementsTableId` field.""" + levelRequirementsTableId: UUIDFilter - """Filter by the object’s `storage` field.""" - storage: JSONFilter + """Filter by the object’s `levelRequirementsTableName` field.""" + levelRequirementsTableName: StringFilter - """Filter by the object’s `namespaces` field.""" - namespaces: JSONFilter + """Filter by the object’s `levelGrantsTableId` field.""" + levelGrantsTableId: UUIDFilter - """Filter by the object’s `functions` field.""" - functions: JSONFilter + """Filter by the object’s `levelGrantsTableName` field.""" + levelGrantsTableName: StringFilter - """Filter by the object’s `graphs` field.""" - graphs: JSONFilter + """Filter by the object’s `achievementRewardsTableId` field.""" + achievementRewardsTableId: UUIDFilter - """Filter by the object’s `agents` field.""" - agents: JSONFilter + """Filter by the object’s `achievementRewardsTableName` field.""" + achievementRewardsTableName: StringFilter - """Filter by the object’s `skipEntityPolicies` field.""" - skipEntityPolicies: BooleanFilter + """Filter by the object’s `recordEvent` field.""" + recordEvent: StringFilter - """Filter by the object’s `tableProvision` field.""" - tableProvision: JSONFilter + """Filter by the object’s `removeEvent` field.""" + removeEvent: StringFilter - """Filter by the object’s `outMembershipType` field.""" - outMembershipType: IntFilter + """Filter by the object’s `tgEvent` field.""" + tgEvent: StringFilter - """Filter by the object’s `outEntityTableId` field.""" - outEntityTableId: UUIDFilter + """Filter by the object’s `tgEventToggle` field.""" + tgEventToggle: StringFilter - """Filter by the object’s `outEntityTableName` field.""" - outEntityTableName: StringFilter + """Filter by the object’s `tgEventToggleBool` field.""" + tgEventToggleBool: StringFilter - """Filter by the object’s `outInstalledModules` field.""" - outInstalledModules: StringListFilter + """Filter by the object’s `tgEventBool` field.""" + tgEventBool: StringFilter - """Filter by the object’s `outStorageModuleId` field.""" - outStorageModuleId: UUIDFilter + """Filter by the object’s `upsertAggregate` field.""" + upsertAggregate: StringFilter - """Filter by the object’s `outBucketsTableId` field.""" - outBucketsTableId: UUIDFilter + """Filter by the object’s `tgUpdateAggregates` field.""" + tgUpdateAggregates: StringFilter - """Filter by the object’s `outFilesTableId` field.""" - outFilesTableId: UUIDFilter + """Filter by the object’s `pruneEvents` field.""" + pruneEvents: StringFilter - """Filter by the object’s `outPathSharesTableId` field.""" - outPathSharesTableId: UUIDFilter + """Filter by the object’s `stepsRequired` field.""" + stepsRequired: StringFilter - """Filter by the object’s `outInvitesModuleId` field.""" - outInvitesModuleId: UUIDFilter + """Filter by the object’s `levelAchieved` field.""" + levelAchieved: StringFilter - """Filter by the object’s `outNamespaceModuleId` field.""" - outNamespaceModuleId: UUIDFilter + """Filter by the object’s `tgCheckAchievements` field.""" + tgCheckAchievements: StringFilter - """Filter by the object’s `outNamespacesTableId` field.""" - outNamespacesTableId: UUIDFilter + """Filter by the object’s `grantAchievement` field.""" + grantAchievement: StringFilter - """Filter by the object’s `outNamespaceEventsTableId` field.""" - outNamespaceEventsTableId: UUIDFilter + """Filter by the object’s `tgAchievementReward` field.""" + tgAchievementReward: StringFilter - """Filter by the object’s `outFunctionModuleId` field.""" - outFunctionModuleId: UUIDFilter + """Filter by the object’s `interval` field.""" + interval: StringFilter - """Filter by the object’s `outDefinitionsTableId` field.""" - outDefinitionsTableId: UUIDFilter + """Filter by the object’s `retention` field.""" + retention: StringFilter - """Filter by the object’s `outInvocationsTableId` field.""" - outInvocationsTableId: UUIDFilter + """Filter by the object’s `premake` field.""" + premake: IntFilter - """Filter by the object’s `outExecutionLogsTableId` field.""" - outExecutionLogsTableId: UUIDFilter + """Filter by the object’s `scope` field.""" + scope: StringFilter - """Filter by the object’s `outSecretDefinitionsTableId` field.""" - outSecretDefinitionsTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `outRequirementsTableId` field.""" - outRequirementsTableId: UUIDFilter + """Filter by the object’s `entityTableId` field.""" + entityTableId: UUIDFilter - """Filter by the object’s `outConfigRequirementsTableId` field.""" - outConfigRequirementsTableId: UUIDFilter + """Filter by the object’s `actorTableId` field.""" + actorTableId: UUIDFilter - """Filter by the object’s `outGraphModuleId` field.""" - outGraphModuleId: UUIDFilter + """Filter by the object’s `defaultPermissions` field.""" + defaultPermissions: StringListFilter - """Filter by the object’s `outGraphsTableId` field.""" - outGraphsTableId: UUIDFilter + """Filter by the object’s `apiName` field.""" + apiName: StringFilter - """Filter by the object’s `outAgentModuleId` field.""" - outAgentModuleId: UUIDFilter + """Filter by the object’s `privateApiName` field.""" + privateApiName: StringFilter """Checks for all expressions in this list.""" - and: [EntityTypeProvisionFilter!] + and: [EventsModuleFilter!] """Checks for any expressions in this list.""" - or: [EntityTypeProvisionFilter!] + or: [EventsModuleFilter!] """Negates the expression.""" - not: EntityTypeProvisionFilter + not: EventsModuleFilter } -"""Methods to use when ordering `EntityTypeProvision`.""" -enum EntityTypeProvisionOrderBy { +"""Methods to use when ordering `EventsModule`.""" +enum EventsModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -11523,86 +11968,90 @@ enum EntityTypeProvisionOrderBy { ID_DESC DATABASE_ID_ASC DATABASE_ID_DESC - NAME_ASC - NAME_DESC - PREFIX_ASC - PREFIX_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PARENT_ENTITY_ASC - PARENT_ENTITY_DESC - TABLE_NAME_ASC - TABLE_NAME_DESC - IS_VISIBLE_ASC - IS_VISIBLE_DESC - HAS_LIMITS_ASC - HAS_LIMITS_DESC - HAS_PROFILES_ASC - HAS_PROFILES_DESC - HAS_LEVELS_ASC - HAS_LEVELS_DESC - HAS_INVITES_ASC - HAS_INVITES_DESC - HAS_INVITE_ACHIEVEMENTS_ASC - HAS_INVITE_ACHIEVEMENTS_DESC - STORAGE_ASC - STORAGE_DESC - NAMESPACES_ASC - NAMESPACES_DESC - FUNCTIONS_ASC - FUNCTIONS_DESC - GRAPHS_ASC - GRAPHS_DESC - AGENTS_ASC - AGENTS_DESC - SKIP_ENTITY_POLICIES_ASC - SKIP_ENTITY_POLICIES_DESC - TABLE_PROVISION_ASC - TABLE_PROVISION_DESC - OUT_MEMBERSHIP_TYPE_ASC - OUT_MEMBERSHIP_TYPE_DESC - OUT_ENTITY_TABLE_ID_ASC - OUT_ENTITY_TABLE_ID_DESC - OUT_ENTITY_TABLE_NAME_ASC - OUT_ENTITY_TABLE_NAME_DESC - OUT_INSTALLED_MODULES_ASC - OUT_INSTALLED_MODULES_DESC - OUT_STORAGE_MODULE_ID_ASC - OUT_STORAGE_MODULE_ID_DESC - OUT_BUCKETS_TABLE_ID_ASC - OUT_BUCKETS_TABLE_ID_DESC - OUT_FILES_TABLE_ID_ASC - OUT_FILES_TABLE_ID_DESC - OUT_PATH_SHARES_TABLE_ID_ASC - OUT_PATH_SHARES_TABLE_ID_DESC - OUT_INVITES_MODULE_ID_ASC - OUT_INVITES_MODULE_ID_DESC - OUT_NAMESPACE_MODULE_ID_ASC - OUT_NAMESPACE_MODULE_ID_DESC - OUT_NAMESPACES_TABLE_ID_ASC - OUT_NAMESPACES_TABLE_ID_DESC - OUT_NAMESPACE_EVENTS_TABLE_ID_ASC - OUT_NAMESPACE_EVENTS_TABLE_ID_DESC - OUT_FUNCTION_MODULE_ID_ASC - OUT_FUNCTION_MODULE_ID_DESC - OUT_DEFINITIONS_TABLE_ID_ASC - OUT_DEFINITIONS_TABLE_ID_DESC - OUT_INVOCATIONS_TABLE_ID_ASC - OUT_INVOCATIONS_TABLE_ID_DESC - OUT_EXECUTION_LOGS_TABLE_ID_ASC - OUT_EXECUTION_LOGS_TABLE_ID_DESC - OUT_SECRET_DEFINITIONS_TABLE_ID_ASC - OUT_SECRET_DEFINITIONS_TABLE_ID_DESC - OUT_REQUIREMENTS_TABLE_ID_ASC - OUT_REQUIREMENTS_TABLE_ID_DESC - OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC - OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC - OUT_GRAPH_MODULE_ID_ASC - OUT_GRAPH_MODULE_ID_DESC - OUT_GRAPHS_TABLE_ID_ASC - OUT_GRAPHS_TABLE_ID_DESC - OUT_AGENT_MODULE_ID_ASC - OUT_AGENT_MODULE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PUBLIC_SCHEMA_NAME_ASC + PUBLIC_SCHEMA_NAME_DESC + PRIVATE_SCHEMA_NAME_ASC + PRIVATE_SCHEMA_NAME_DESC + EVENTS_TABLE_ID_ASC + EVENTS_TABLE_ID_DESC + EVENTS_TABLE_NAME_ASC + EVENTS_TABLE_NAME_DESC + EVENT_AGGREGATES_TABLE_ID_ASC + EVENT_AGGREGATES_TABLE_ID_DESC + EVENT_AGGREGATES_TABLE_NAME_ASC + EVENT_AGGREGATES_TABLE_NAME_DESC + EVENT_TYPES_TABLE_ID_ASC + EVENT_TYPES_TABLE_ID_DESC + EVENT_TYPES_TABLE_NAME_ASC + EVENT_TYPES_TABLE_NAME_DESC + LEVELS_TABLE_ID_ASC + LEVELS_TABLE_ID_DESC + LEVELS_TABLE_NAME_ASC + LEVELS_TABLE_NAME_DESC + LEVEL_REQUIREMENTS_TABLE_ID_ASC + LEVEL_REQUIREMENTS_TABLE_ID_DESC + LEVEL_REQUIREMENTS_TABLE_NAME_ASC + LEVEL_REQUIREMENTS_TABLE_NAME_DESC + LEVEL_GRANTS_TABLE_ID_ASC + LEVEL_GRANTS_TABLE_ID_DESC + LEVEL_GRANTS_TABLE_NAME_ASC + LEVEL_GRANTS_TABLE_NAME_DESC + ACHIEVEMENT_REWARDS_TABLE_ID_ASC + ACHIEVEMENT_REWARDS_TABLE_ID_DESC + ACHIEVEMENT_REWARDS_TABLE_NAME_ASC + ACHIEVEMENT_REWARDS_TABLE_NAME_DESC + RECORD_EVENT_ASC + RECORD_EVENT_DESC + REMOVE_EVENT_ASC + REMOVE_EVENT_DESC + TG_EVENT_ASC + TG_EVENT_DESC + TG_EVENT_TOGGLE_ASC + TG_EVENT_TOGGLE_DESC + TG_EVENT_TOGGLE_BOOL_ASC + TG_EVENT_TOGGLE_BOOL_DESC + TG_EVENT_BOOL_ASC + TG_EVENT_BOOL_DESC + UPSERT_AGGREGATE_ASC + UPSERT_AGGREGATE_DESC + TG_UPDATE_AGGREGATES_ASC + TG_UPDATE_AGGREGATES_DESC + PRUNE_EVENTS_ASC + PRUNE_EVENTS_DESC + STEPS_REQUIRED_ASC + STEPS_REQUIRED_DESC + LEVEL_ACHIEVED_ASC + LEVEL_ACHIEVED_DESC + TG_CHECK_ACHIEVEMENTS_ASC + TG_CHECK_ACHIEVEMENTS_DESC + GRANT_ACHIEVEMENT_ASC + GRANT_ACHIEVEMENT_DESC + TG_ACHIEVEMENT_REWARD_ASC + TG_ACHIEVEMENT_REWARD_DESC + INTERVAL_ASC + INTERVAL_DESC + RETENTION_ASC + RETENTION_DESC + PREMAKE_ASC + PREMAKE_DESC + SCOPE_ASC + SCOPE_DESC + PREFIX_ASC + PREFIX_DESC + ENTITY_TABLE_ID_ASC + ENTITY_TABLE_ID_DESC + ACTOR_TABLE_ID_ASC + ACTOR_TABLE_ID_DESC + DEFAULT_PERMISSIONS_ASC + DEFAULT_PERMISSIONS_DESC + API_NAME_ASC + API_NAME_DESC + PRIVATE_API_NAME_ASC + PRIVATE_API_NAME_DESC } """Root meta schema type""" @@ -11985,14 +12434,6 @@ type Mutation { input: CreateCryptoAddressesModuleInput! ): CreateCryptoAddressesModulePayload - """Creates a single `IdentityProvidersModule`.""" - createIdentityProvidersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateIdentityProvidersModuleInput! - ): CreateIdentityProvidersModulePayload - """Creates a single `DenormalizedTableField`.""" createDenormalizedTableField( """ @@ -12001,6 +12442,14 @@ type Mutation { input: CreateDenormalizedTableFieldInput! ): CreateDenormalizedTableFieldPayload + """Creates a single `IdentityProvidersModule`.""" + createIdentityProvidersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateIdentityProvidersModuleInput! + ): CreateIdentityProvidersModulePayload + """Creates a single `RlsModule`.""" createRlsModule( """ @@ -12025,14 +12474,6 @@ type Mutation { input: CreateCryptoAuthModuleInput! ): CreateCryptoAuthModulePayload - """Creates a single `RateLimitMetersModule`.""" - createRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateRateLimitMetersModuleInput! - ): CreateRateLimitMetersModulePayload - """Creates a single `BlueprintConstruction`.""" createBlueprintConstruction( """ @@ -12049,22 +12490,6 @@ type Mutation { input: CreateSessionsModuleInput! ): CreateSessionsModulePayload - """Creates a single `ConfigSecretsModule`.""" - createConfigSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateConfigSecretsModuleInput! - ): CreateConfigSecretsModulePayload - - """Creates a single `MerkleStoreModule`.""" - createMerkleStoreModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateMerkleStoreModuleInput! - ): CreateMerkleStoreModulePayload - """Creates a single `SecureTableProvision`.""" createSecureTableProvision( """ @@ -12073,13 +12498,13 @@ type Mutation { input: CreateSecureTableProvisionInput! ): CreateSecureTableProvisionPayload - """Creates a single `InvitesModule`.""" - createInvitesModule( + """Creates a single `MerkleStoreModule`.""" + createMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateInvitesModuleInput! - ): CreateInvitesModulePayload + input: CreateMerkleStoreModuleInput! + ): CreateMerkleStoreModulePayload """Creates a single `DatabaseProvisionModule`.""" createDatabaseProvisionModule( @@ -12089,13 +12514,21 @@ type Mutation { input: CreateDatabaseProvisionModuleInput! ): CreateDatabaseProvisionModulePayload - """Creates a single `NamespaceModule`.""" - createNamespaceModule( + """Creates a single `ConfigSecretsModule`.""" + createConfigSecretsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateNamespaceModuleInput! - ): CreateNamespaceModulePayload + input: CreateConfigSecretsModuleInput! + ): CreateConfigSecretsModulePayload + + """Creates a single `RateLimitMetersModule`.""" + createRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRateLimitMetersModuleInput! + ): CreateRateLimitMetersModulePayload """Creates a single `RealtimeModule`.""" createRealtimeModule( @@ -12113,13 +12546,37 @@ type Mutation { input: CreateWebauthnAuthModuleInput! ): CreateWebauthnAuthModulePayload - """Creates a single `GraphModule`.""" - createGraphModule( + """Creates a single `FunctionInvocationModule`.""" + createFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateGraphModuleInput! - ): CreateGraphModulePayload + input: CreateFunctionInvocationModuleInput! + ): CreateFunctionInvocationModulePayload + + """Creates a single `FunctionModule`.""" + createFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateFunctionModuleInput! + ): CreateFunctionModulePayload + + """Creates a single `InvitesModule`.""" + createInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateInvitesModuleInput! + ): CreateInvitesModulePayload + + """Creates a single `NamespaceModule`.""" + createNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateNamespaceModuleInput! + ): CreateNamespaceModulePayload """Creates a single `ComputeLogModule`.""" createComputeLogModule( @@ -12129,6 +12586,14 @@ type Mutation { input: CreateComputeLogModuleInput! ): CreateComputeLogModulePayload + """Creates a single `GraphModule`.""" + createGraphModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateGraphModuleInput! + ): CreateGraphModulePayload + """Creates a single `InferenceLogModule`.""" createInferenceLogModule( """ @@ -12153,29 +12618,29 @@ type Mutation { input: CreateTransferLogModuleInput! ): CreateTransferLogModulePayload - """Creates a single `DbUsageModule`.""" - createDbUsageModule( + """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: CreateDbUsageModuleInput! - ): CreateDbUsageModulePayload + input: CreatePlansModuleInput! + ): CreatePlansModulePayload - """Creates a single `NotificationsModule`.""" - createNotificationsModule( + """Creates a single `BillingProviderModule`.""" + createBillingProviderModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateNotificationsModuleInput! - ): CreateNotificationsModulePayload + input: CreateBillingProviderModuleInput! + ): CreateBillingProviderModulePayload - """Creates a single `PlansModule`.""" - createPlansModule( + """Creates a single `DbUsageModule`.""" + createDbUsageModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreatePlansModuleInput! - ): CreatePlansModulePayload + input: CreateDbUsageModuleInput! + ): CreateDbUsageModulePayload """Creates a single `HierarchyModule`.""" createHierarchyModule( @@ -12185,21 +12650,21 @@ type Mutation { input: CreateHierarchyModuleInput! ): CreateHierarchyModulePayload - """Creates a single `BillingModule`.""" - createBillingModule( + """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: CreateBillingModuleInput! - ): CreateBillingModulePayload + input: CreatePermissionsModuleInput! + ): CreatePermissionsModulePayload - """Creates a single `BillingProviderModule`.""" - createBillingProviderModule( + """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: CreateBillingProviderModuleInput! - ): CreateBillingProviderModulePayload + input: CreateNotificationsModuleInput! + ): CreateNotificationsModulePayload """Creates a single `ProfilesModule`.""" createProfilesModule( @@ -12209,13 +12674,13 @@ type Mutation { input: CreateProfilesModuleInput! ): CreateProfilesModulePayload - """Creates a single `PermissionsModule`.""" - createPermissionsModule( + """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: CreatePermissionsModuleInput! - ): CreatePermissionsModulePayload + input: CreateBillingModuleInput! + ): CreateBillingModulePayload """Creates a single `RelationProvision`.""" createRelationProvision( @@ -12233,14 +12698,6 @@ type Mutation { input: CreateBlueprintTemplateInput! ): CreateBlueprintTemplatePayload - """Creates a single `FunctionModule`.""" - createFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateFunctionModuleInput! - ): CreateFunctionModulePayload - """Creates a single `UserAuthModule`.""" createUserAuthModule( """ @@ -12273,6 +12730,14 @@ type Mutation { input: CreateMembershipsModuleInput! ): CreateMembershipsModulePayload + """Creates a single `EntityTypeProvision`.""" + createEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEntityTypeProvisionInput! + ): CreateEntityTypeProvisionPayload + """Creates a single `StorageModule`.""" createStorageModule( """ @@ -12289,14 +12754,6 @@ type Mutation { input: CreateEventsModuleInput! ): CreateEventsModulePayload - """Creates a single `EntityTypeProvision`.""" - createEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEntityTypeProvisionInput! - ): CreateEntityTypeProvisionPayload - """Updates a single `DefaultIdsModule` using a unique key and a patch.""" updateDefaultIdsModule( """ @@ -12450,24 +12907,24 @@ type Mutation { ): UpdateCryptoAddressesModulePayload """ - Updates a single `IdentityProvidersModule` using a unique key and a patch. + Updates a single `DenormalizedTableField` using a unique key and a patch. """ - updateIdentityProvidersModule( + updateDenormalizedTableField( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateIdentityProvidersModuleInput! - ): UpdateIdentityProvidersModulePayload + input: UpdateDenormalizedTableFieldInput! + ): UpdateDenormalizedTableFieldPayload """ - Updates a single `DenormalizedTableField` using a unique key and a patch. + Updates a single `IdentityProvidersModule` using a unique key and a patch. """ - updateDenormalizedTableField( + updateIdentityProvidersModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateDenormalizedTableFieldInput! - ): UpdateDenormalizedTableFieldPayload + input: UpdateIdentityProvidersModuleInput! + ): UpdateIdentityProvidersModulePayload """Updates a single `RlsModule` using a unique key and a patch.""" updateRlsModule( @@ -12489,19 +12946,9 @@ type Mutation { updateCryptoAuthModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateCryptoAuthModuleInput! - ): UpdateCryptoAuthModulePayload - - """ - Updates a single `RateLimitMetersModule` using a unique key and a patch. - """ - updateRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateRateLimitMetersModuleInput! - ): UpdateRateLimitMetersModulePayload + """ + input: UpdateCryptoAuthModuleInput! + ): UpdateCryptoAuthModulePayload """ Updates a single `BlueprintConstruction` using a unique key and a patch. @@ -12521,22 +12968,6 @@ type Mutation { input: UpdateSessionsModuleInput! ): UpdateSessionsModulePayload - """Updates a single `ConfigSecretsModule` using a unique key and a patch.""" - updateConfigSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateConfigSecretsModuleInput! - ): UpdateConfigSecretsModulePayload - - """Updates a single `MerkleStoreModule` using a unique key and a patch.""" - updateMerkleStoreModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateMerkleStoreModuleInput! - ): UpdateMerkleStoreModulePayload - """ Updates a single `SecureTableProvision` using a unique key and a patch. """ @@ -12547,13 +12978,13 @@ type Mutation { input: UpdateSecureTableProvisionInput! ): UpdateSecureTableProvisionPayload - """Updates a single `InvitesModule` using a unique key and a patch.""" - updateInvitesModule( + """Updates a single `MerkleStoreModule` using a unique key and a patch.""" + updateMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateInvitesModuleInput! - ): UpdateInvitesModulePayload + input: UpdateMerkleStoreModuleInput! + ): UpdateMerkleStoreModulePayload """ Updates a single `DatabaseProvisionModule` using a unique key and a patch. @@ -12565,13 +12996,23 @@ type Mutation { input: UpdateDatabaseProvisionModuleInput! ): UpdateDatabaseProvisionModulePayload - """Updates a single `NamespaceModule` using a unique key and a patch.""" - updateNamespaceModule( + """Updates a single `ConfigSecretsModule` using a unique key and a patch.""" + updateConfigSecretsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateNamespaceModuleInput! - ): UpdateNamespaceModulePayload + input: UpdateConfigSecretsModuleInput! + ): UpdateConfigSecretsModulePayload + + """ + Updates a single `RateLimitMetersModule` using a unique key and a patch. + """ + updateRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRateLimitMetersModuleInput! + ): UpdateRateLimitMetersModulePayload """Updates a single `RealtimeModule` using a unique key and a patch.""" updateRealtimeModule( @@ -12589,13 +13030,39 @@ type Mutation { input: UpdateWebauthnAuthModuleInput! ): UpdateWebauthnAuthModulePayload - """Updates a single `GraphModule` using a unique key and a patch.""" - updateGraphModule( + """ + Updates a single `FunctionInvocationModule` using a unique key and a patch. + """ + updateFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateGraphModuleInput! - ): UpdateGraphModulePayload + input: UpdateFunctionInvocationModuleInput! + ): UpdateFunctionInvocationModulePayload + + """Updates a single `FunctionModule` using a unique key and a patch.""" + updateFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateFunctionModuleInput! + ): UpdateFunctionModulePayload + + """Updates a single `InvitesModule` using a unique key and a patch.""" + updateInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateInvitesModuleInput! + ): UpdateInvitesModulePayload + + """Updates a single `NamespaceModule` using a unique key and a patch.""" + updateNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNamespaceModuleInput! + ): UpdateNamespaceModulePayload """Updates a single `ComputeLogModule` using a unique key and a patch.""" updateComputeLogModule( @@ -12605,6 +13072,14 @@ type Mutation { input: UpdateComputeLogModuleInput! ): UpdateComputeLogModulePayload + """Updates a single `GraphModule` using a unique key and a patch.""" + updateGraphModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateGraphModuleInput! + ): UpdateGraphModulePayload + """Updates a single `InferenceLogModule` using a unique key and a patch.""" updateInferenceLogModule( """ @@ -12629,29 +13104,31 @@ type Mutation { input: UpdateTransferLogModuleInput! ): UpdateTransferLogModulePayload - """Updates a single `DbUsageModule` using a unique key and a patch.""" - updateDbUsageModule( + """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: UpdateDbUsageModuleInput! - ): UpdateDbUsageModulePayload + input: UpdatePlansModuleInput! + ): UpdatePlansModulePayload - """Updates a single `NotificationsModule` using a unique key and a patch.""" - updateNotificationsModule( + """ + Updates a single `BillingProviderModule` using a unique key and a patch. + """ + updateBillingProviderModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateNotificationsModuleInput! - ): UpdateNotificationsModulePayload + input: UpdateBillingProviderModuleInput! + ): UpdateBillingProviderModulePayload - """Updates a single `PlansModule` using a unique key and a patch.""" - updatePlansModule( + """Updates a single `DbUsageModule` using a unique key and a patch.""" + updateDbUsageModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdatePlansModuleInput! - ): UpdatePlansModulePayload + input: UpdateDbUsageModuleInput! + ): UpdateDbUsageModulePayload """Updates a single `HierarchyModule` using a unique key and a patch.""" updateHierarchyModule( @@ -12661,23 +13138,21 @@ type Mutation { input: UpdateHierarchyModuleInput! ): UpdateHierarchyModulePayload - """Updates a single `BillingModule` using a unique key and a patch.""" - updateBillingModule( + """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: UpdateBillingModuleInput! - ): UpdateBillingModulePayload + input: UpdatePermissionsModuleInput! + ): UpdatePermissionsModulePayload - """ - Updates a single `BillingProviderModule` using a unique key and a patch. - """ - updateBillingProviderModule( + """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: UpdateBillingProviderModuleInput! - ): UpdateBillingProviderModulePayload + input: UpdateNotificationsModuleInput! + ): UpdateNotificationsModulePayload """Updates a single `ProfilesModule` using a unique key and a patch.""" updateProfilesModule( @@ -12687,13 +13162,13 @@ type Mutation { input: UpdateProfilesModuleInput! ): UpdateProfilesModulePayload - """Updates a single `PermissionsModule` using a unique key and a patch.""" - updatePermissionsModule( + """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: UpdatePermissionsModuleInput! - ): UpdatePermissionsModulePayload + input: UpdateBillingModuleInput! + ): UpdateBillingModulePayload """Updates a single `RelationProvision` using a unique key and a patch.""" updateRelationProvision( @@ -12711,14 +13186,6 @@ type Mutation { input: UpdateBlueprintTemplateInput! ): UpdateBlueprintTemplatePayload - """Updates a single `FunctionModule` using a unique key and a patch.""" - updateFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateFunctionModuleInput! - ): UpdateFunctionModulePayload - """Updates a single `UserAuthModule` using a unique key and a patch.""" updateUserAuthModule( """ @@ -12751,6 +13218,14 @@ type Mutation { input: UpdateMembershipsModuleInput! ): UpdateMembershipsModulePayload + """Updates a single `EntityTypeProvision` using a unique key and a patch.""" + updateEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEntityTypeProvisionInput! + ): UpdateEntityTypeProvisionPayload + """Updates a single `StorageModule` using a unique key and a patch.""" updateStorageModule( """ @@ -12767,14 +13242,6 @@ type Mutation { input: UpdateEventsModuleInput! ): UpdateEventsModulePayload - """Updates a single `EntityTypeProvision` using a unique key and a patch.""" - updateEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEntityTypeProvisionInput! - ): UpdateEntityTypeProvisionPayload - """Deletes a single `DefaultIdsModule` using a unique key.""" deleteDefaultIdsModule( """ @@ -12911,14 +13378,6 @@ type Mutation { input: DeleteCryptoAddressesModuleInput! ): DeleteCryptoAddressesModulePayload - """Deletes a single `IdentityProvidersModule` using a unique key.""" - deleteIdentityProvidersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIdentityProvidersModuleInput! - ): DeleteIdentityProvidersModulePayload - """Deletes a single `DenormalizedTableField` using a unique key.""" deleteDenormalizedTableField( """ @@ -12927,6 +13386,14 @@ type Mutation { input: DeleteDenormalizedTableFieldInput! ): DeleteDenormalizedTableFieldPayload + """Deletes a single `IdentityProvidersModule` using a unique key.""" + deleteIdentityProvidersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteIdentityProvidersModuleInput! + ): DeleteIdentityProvidersModulePayload + """Deletes a single `RlsModule` using a unique key.""" deleteRlsModule( """ @@ -12951,14 +13418,6 @@ type Mutation { input: DeleteCryptoAuthModuleInput! ): DeleteCryptoAuthModulePayload - """Deletes a single `RateLimitMetersModule` using a unique key.""" - deleteRateLimitMetersModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteRateLimitMetersModuleInput! - ): DeleteRateLimitMetersModulePayload - """Deletes a single `BlueprintConstruction` using a unique key.""" deleteBlueprintConstruction( """ @@ -12975,22 +13434,6 @@ type Mutation { input: DeleteSessionsModuleInput! ): DeleteSessionsModulePayload - """Deletes a single `ConfigSecretsModule` using a unique key.""" - deleteConfigSecretsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteConfigSecretsModuleInput! - ): DeleteConfigSecretsModulePayload - - """Deletes a single `MerkleStoreModule` using a unique key.""" - deleteMerkleStoreModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteMerkleStoreModuleInput! - ): DeleteMerkleStoreModulePayload - """Deletes a single `SecureTableProvision` using a unique key.""" deleteSecureTableProvision( """ @@ -12999,13 +13442,13 @@ type Mutation { input: DeleteSecureTableProvisionInput! ): DeleteSecureTableProvisionPayload - """Deletes a single `InvitesModule` using a unique key.""" - deleteInvitesModule( + """Deletes a single `MerkleStoreModule` using a unique key.""" + deleteMerkleStoreModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteInvitesModuleInput! - ): DeleteInvitesModulePayload + input: DeleteMerkleStoreModuleInput! + ): DeleteMerkleStoreModulePayload """Deletes a single `DatabaseProvisionModule` using a unique key.""" deleteDatabaseProvisionModule( @@ -13015,13 +13458,21 @@ type Mutation { input: DeleteDatabaseProvisionModuleInput! ): DeleteDatabaseProvisionModulePayload - """Deletes a single `NamespaceModule` using a unique key.""" - deleteNamespaceModule( + """Deletes a single `ConfigSecretsModule` using a unique key.""" + deleteConfigSecretsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteNamespaceModuleInput! - ): DeleteNamespaceModulePayload + input: DeleteConfigSecretsModuleInput! + ): DeleteConfigSecretsModulePayload + + """Deletes a single `RateLimitMetersModule` using a unique key.""" + deleteRateLimitMetersModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRateLimitMetersModuleInput! + ): DeleteRateLimitMetersModulePayload """Deletes a single `RealtimeModule` using a unique key.""" deleteRealtimeModule( @@ -13039,21 +13490,53 @@ type Mutation { input: DeleteWebauthnAuthModuleInput! ): DeleteWebauthnAuthModulePayload - """Deletes a single `GraphModule` using a unique key.""" - deleteGraphModule( + """Deletes a single `FunctionInvocationModule` using a unique key.""" + deleteFunctionInvocationModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteGraphModuleInput! - ): DeleteGraphModulePayload + input: DeleteFunctionInvocationModuleInput! + ): DeleteFunctionInvocationModulePayload + + """Deletes a single `FunctionModule` using a unique key.""" + deleteFunctionModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteFunctionModuleInput! + ): DeleteFunctionModulePayload + + """Deletes a single `InvitesModule` using a unique key.""" + deleteInvitesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteInvitesModuleInput! + ): DeleteInvitesModulePayload + + """Deletes a single `NamespaceModule` using a unique key.""" + deleteNamespaceModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNamespaceModuleInput! + ): DeleteNamespaceModulePayload """Deletes a single `ComputeLogModule` using a unique key.""" deleteComputeLogModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteComputeLogModuleInput! - ): DeleteComputeLogModulePayload + input: DeleteComputeLogModuleInput! + ): DeleteComputeLogModulePayload + + """Deletes a single `GraphModule` using a unique key.""" + deleteGraphModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteGraphModuleInput! + ): DeleteGraphModulePayload """Deletes a single `InferenceLogModule` using a unique key.""" deleteInferenceLogModule( @@ -13079,29 +13562,29 @@ type Mutation { input: DeleteTransferLogModuleInput! ): DeleteTransferLogModulePayload - """Deletes a single `DbUsageModule` using a unique key.""" - deleteDbUsageModule( + """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: DeleteDbUsageModuleInput! - ): DeleteDbUsageModulePayload + input: DeletePlansModuleInput! + ): DeletePlansModulePayload - """Deletes a single `NotificationsModule` using a unique key.""" - deleteNotificationsModule( + """Deletes a single `BillingProviderModule` using a unique key.""" + deleteBillingProviderModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteNotificationsModuleInput! - ): DeleteNotificationsModulePayload + input: DeleteBillingProviderModuleInput! + ): DeleteBillingProviderModulePayload - """Deletes a single `PlansModule` using a unique key.""" - deletePlansModule( + """Deletes a single `DbUsageModule` using a unique key.""" + deleteDbUsageModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeletePlansModuleInput! - ): DeletePlansModulePayload + input: DeleteDbUsageModuleInput! + ): DeleteDbUsageModulePayload """Deletes a single `HierarchyModule` using a unique key.""" deleteHierarchyModule( @@ -13111,21 +13594,21 @@ type Mutation { input: DeleteHierarchyModuleInput! ): DeleteHierarchyModulePayload - """Deletes a single `BillingModule` using a unique key.""" - deleteBillingModule( + """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: DeleteBillingModuleInput! - ): DeleteBillingModulePayload + input: DeletePermissionsModuleInput! + ): DeletePermissionsModulePayload - """Deletes a single `BillingProviderModule` using a unique key.""" - deleteBillingProviderModule( + """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: DeleteBillingProviderModuleInput! - ): DeleteBillingProviderModulePayload + input: DeleteNotificationsModuleInput! + ): DeleteNotificationsModulePayload """Deletes a single `ProfilesModule` using a unique key.""" deleteProfilesModule( @@ -13135,13 +13618,13 @@ type Mutation { input: DeleteProfilesModuleInput! ): DeleteProfilesModulePayload - """Deletes a single `PermissionsModule` using a unique key.""" - deletePermissionsModule( + """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: DeletePermissionsModuleInput! - ): DeletePermissionsModulePayload + input: DeleteBillingModuleInput! + ): DeleteBillingModulePayload """Deletes a single `RelationProvision` using a unique key.""" deleteRelationProvision( @@ -13159,14 +13642,6 @@ type Mutation { input: DeleteBlueprintTemplateInput! ): DeleteBlueprintTemplatePayload - """Deletes a single `FunctionModule` using a unique key.""" - deleteFunctionModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteFunctionModuleInput! - ): DeleteFunctionModulePayload - """Deletes a single `UserAuthModule` using a unique key.""" deleteUserAuthModule( """ @@ -13199,6 +13674,14 @@ type Mutation { input: DeleteMembershipsModuleInput! ): DeleteMembershipsModulePayload + """Deletes a single `EntityTypeProvision` using a unique key.""" + deleteEntityTypeProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEntityTypeProvisionInput! + ): DeleteEntityTypeProvisionPayload + """Deletes a single `StorageModule` using a unique key.""" deleteStorageModule( """ @@ -13215,14 +13698,6 @@ type Mutation { input: DeleteEventsModuleInput! ): DeleteEventsModulePayload - """Deletes a single `EntityTypeProvision` using a unique key.""" - deleteEntityTypeProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEntityTypeProvisionInput! - ): DeleteEntityTypeProvisionPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures @@ -14318,6 +14793,57 @@ input CryptoAddressesModuleInput { privateApiName: String } +"""The output of our create `DenormalizedTableField` mutation.""" +type CreateDenormalizedTableFieldPayload { + """ + The 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 created 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 create `DenormalizedTableField` mutation.""" +input CreateDenormalizedTableFieldInput { + """ + 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 `DenormalizedTableField` to be created by this mutation.""" + denormalizedTableField: DenormalizedTableFieldInput! +} + +"""An input for mutations affecting `DenormalizedTableField`""" +input DenormalizedTableFieldInput { + id: UUID + databaseId: UUID! + tableId: UUID! + fieldId: UUID! + setIds: [UUID] + refTableId: UUID! + refFieldId: UUID! + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int +} + """The output of our create `IdentityProvidersModule` mutation.""" type CreateIdentityProvidersModulePayload { """ @@ -14363,6 +14889,8 @@ input IdentityProvidersModuleInput { Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. """ privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID tableName: String apiName: String @@ -14372,57 +14900,6 @@ input IdentityProvidersModuleInput { entityTableId: UUID } -"""The output of our create `DenormalizedTableField` mutation.""" -type CreateDenormalizedTableFieldPayload { - """ - The 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 created 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 create `DenormalizedTableField` mutation.""" -input CreateDenormalizedTableFieldInput { - """ - 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 `DenormalizedTableField` to be created by this mutation.""" - denormalizedTableField: DenormalizedTableFieldInput! -} - -"""An input for mutations affecting `DenormalizedTableField`""" -input DenormalizedTableFieldInput { - id: UUID - databaseId: UUID! - tableId: UUID! - fieldId: UUID! - setIds: [UUID] - refTableId: UUID! - refFieldId: UUID! - refIds: [UUID] - useUpdates: Boolean - updateDefaults: Boolean - funcName: String - funcOrder: Int -} - """The output of our create `RlsModule` mutation.""" type CreateRlsModulePayload { """ @@ -14590,79 +15067,26 @@ input CreateCryptoAuthModuleInput { """ clientMutationId: String - """The `CryptoAuthModule` to be created by this mutation.""" - cryptoAuthModule: CryptoAuthModuleInput! -} - -"""An input for mutations affecting `CryptoAuthModule`""" -input CryptoAuthModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - usersTableId: UUID - secretsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - addressesTableId: UUID - userField: String! - cryptoNetwork: String - signInRequestChallenge: String - signInRecordFailure: String - signUpWithKey: String - signInWithChallenge: String -} - -"""The output of our create `RateLimitMetersModule` mutation.""" -type CreateRateLimitMetersModulePayload { - """ - The 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 `RateLimitMetersModule` that was created by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge -} - -"""All input for the create `RateLimitMetersModule` mutation.""" -input CreateRateLimitMetersModuleInput { - """ - 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 `RateLimitMetersModule` to be created by this mutation.""" - rateLimitMetersModule: RateLimitMetersModuleInput! -} - -"""An input for mutations affecting `RateLimitMetersModule`""" -input RateLimitMetersModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String - apiName: String - privateApiName: String + """The `CryptoAuthModule` to be created by this mutation.""" + cryptoAuthModule: CryptoAuthModuleInput! +} + +"""An input for mutations affecting `CryptoAuthModule`""" +input CryptoAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + usersTableId: UUID + secretsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + addressesTableId: UUID + userField: String! + cryptoNetwork: String + signInRequestChallenge: String + signInRecordFailure: String + signUpWithKey: String + signInWithChallenge: String } """The output of our create `BlueprintConstruction` mutation.""" @@ -14798,6 +15222,227 @@ input SessionsModuleInput { authSettingsTable: String } +"""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 `MerkleStoreModule` mutation.""" +type CreateMerkleStoreModulePayload { + """ + The 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 `MerkleStoreModule` that was created by this mutation.""" + merkleStoreModule: MerkleStoreModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" + merkleStoreModuleEdge( + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleEdge +} + +"""All input for the create `MerkleStoreModule` mutation.""" +input CreateMerkleStoreModuleInput { + """ + 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 `MerkleStoreModule` to be created by this mutation.""" + merkleStoreModule: MerkleStoreModuleInput! +} + +"""An input for mutations affecting `MerkleStoreModule`""" +input MerkleStoreModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + objectTableId: UUID + storeTableId: UUID + commitTableId: UUID + refTableId: UUID + prefix: String + apiName: String + privateApiName: String + scope: String + functionPrefix: String + createdAt: Datetime +} + +"""The output of our create `DatabaseProvisionModule` mutation.""" +type CreateDatabaseProvisionModulePayload { + """ + The 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 `DatabaseProvisionModule` that was created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge +} + +"""All input for the create `DatabaseProvisionModule` mutation.""" +input CreateDatabaseProvisionModuleInput { + """ + 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 `DatabaseProvisionModule` to be created by this mutation.""" + databaseProvisionModule: DatabaseProvisionModuleInput! +} + +"""An input for mutations affecting `DatabaseProvisionModule`""" +input DatabaseProvisionModuleInput { + id: UUID + + """The name for the new database""" + databaseName: String! + + """UUID of the user who owns this database""" + ownerId: UUID! + + """ + Subdomain prefix for the database. If null, auto-generated using unique_names + random chars + """ + subdomain: String + + """Base domain for the database (e.g., example.com)""" + domain: String! + + """ + JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + """ + modules: JSON + + """Additional configuration options for provisioning""" + options: JSON + + """ + When true, copies the owner user and password hash from source database to the newly provisioned database + """ + bootstrapUser: Boolean + + """Current status: pending, in_progress, completed, or failed""" + status: String + errorMessage: String + + """The ID of the provisioned database (set by trigger before RLS check)""" + databaseId: UUID + createdAt: Datetime + updatedAt: Datetime + completedAt: Datetime +} + """The output of our create `ConfigSecretsModule` mutation.""" type CreateConfigSecretsModulePayload { """ @@ -14839,6 +15484,8 @@ input ConfigSecretsModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID configDefinitionsTableId: UUID tableName: String @@ -14852,279 +15499,339 @@ input ConfigSecretsModuleInput { hasConfig: Boolean } -"""The output of our create `MerkleStoreModule` mutation.""" -type CreateMerkleStoreModulePayload { +"""The output of our create `RateLimitMetersModule` mutation.""" +type CreateRateLimitMetersModulePayload { """ The 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 `MerkleStoreModule` that was created by this mutation.""" - merkleStoreModule: MerkleStoreModule + """The `RateLimitMetersModule` that was created by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" - merkleStoreModuleEdge( - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleEdge + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge } -"""All input for the create `MerkleStoreModule` mutation.""" -input CreateMerkleStoreModuleInput { +"""All input for the create `RateLimitMetersModule` mutation.""" +input CreateRateLimitMetersModuleInput { """ 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 `MerkleStoreModule` to be created by this mutation.""" - merkleStoreModule: MerkleStoreModuleInput! + """The `RateLimitMetersModule` to be created by this mutation.""" + rateLimitMetersModule: RateLimitMetersModuleInput! } -"""An input for mutations affecting `MerkleStoreModule`""" -input MerkleStoreModuleInput { +"""An input for mutations affecting `RateLimitMetersModule`""" +input RateLimitMetersModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - objectTableId: UUID - storeTableId: UUID - commitTableId: UUID - refTableId: UUID + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String prefix: String + defaultPermissions: [String] apiName: String privateApiName: String - scope: String - createdAt: Datetime } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { +"""The output of our create `RealtimeModule` mutation.""" +type CreateRealtimeModulePayload { """ The 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 `RealtimeModule` that was created by this mutation.""" + realtimeModule: RealtimeModule """ 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 `RealtimeModule`. May be used by Relay 1.""" + realtimeModuleEdge( + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RealtimeModuleEdge } -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { +"""All input for the create `RealtimeModule` mutation.""" +input CreateRealtimeModuleInput { """ 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 `RealtimeModule` to be created by this mutation.""" + realtimeModule: RealtimeModuleInput! } -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" +"""An input for mutations affecting `RealtimeModule`""" +input RealtimeModuleInput { 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 + privateSchemaId: UUID + subscriptionsSchemaId: UUID + changeLogTableId: UUID + listenerNodeTableId: UUID + sourceRegistryTableId: UUID + retentionHours: Int + premake: Int + interval: String + notifyChannel: String + apiName: String + privateApiName: String +} +"""The output of our create `WebauthnAuthModule` mutation.""" +type CreateWebauthnAuthModulePayload { """ - 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. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - tableName: String + clientMutationId: 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 + """The `WebauthnAuthModule` that was created by this mutation.""" + webauthnAuthModule: WebauthnAuthModule """ - 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. + Our root query field type. Allows us to run any query from our mutation payload. """ - useRls: Boolean + query: Query - """ - 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] + """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" + webauthnAuthModuleEdge( + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleEdge +} +"""All input for the create `WebauthnAuthModule` mutation.""" +input CreateWebauthnAuthModuleInput { """ - 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[]. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - grants: JSON + clientMutationId: String - """ - 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 + """The `WebauthnAuthModule` to be created by this mutation.""" + webauthnAuthModule: WebauthnAuthModuleInput! +} - """ - 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] +"""An input for mutations affecting `WebauthnAuthModule`""" +input WebauthnAuthModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + usersTableId: UUID + credentialsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + sessionSecretsTableId: UUID + authSettingsTableId: UUID + rpId: String + rpName: String + originAllowlist: [String] + attestationType: String + requireUserVerification: Boolean + residentKey: String + challengeExpiry: IntervalInput } -"""The output of our create `InvitesModule` mutation.""" -type CreateInvitesModulePayload { +"""The output of our create `FunctionInvocationModule` mutation.""" +type CreateFunctionInvocationModulePayload { """ The 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 `InvitesModule` that was created by this mutation.""" - invitesModule: InvitesModule + """The `FunctionInvocationModule` that was created by this mutation.""" + functionInvocationModule: FunctionInvocationModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InvitesModule`. May be used by Relay 1.""" - invitesModuleEdge( - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InvitesModuleEdge + """An edge for our `FunctionInvocationModule`. May be used by Relay 1.""" + functionInvocationModuleEdge( + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleEdge } -"""All input for the create `InvitesModule` mutation.""" -input CreateInvitesModuleInput { +"""All input for the create `FunctionInvocationModule` mutation.""" +input CreateFunctionInvocationModuleInput { """ 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 `InvitesModule` to be created by this mutation.""" - invitesModule: InvitesModuleInput! + """The `FunctionInvocationModule` to be created by this mutation.""" + functionInvocationModule: FunctionInvocationModuleInput! } -"""An input for mutations affecting `InvitesModule`""" -input InvitesModuleInput { +"""An input for mutations affecting `FunctionInvocationModule`""" +input FunctionInvocationModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - emailsTableId: UUID - usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String + publicSchemaName: String + privateSchemaName: String + invocationsTableId: UUID + executionLogsTableId: UUID + invocationsTableName: String + executionLogsTableName: String + apiName: String + privateApiName: String scope: String prefix: String entityTableId: UUID - apiName: String - privateApiName: String + policies: JSON + provisions: JSON + defaultPermissions: [String] } -"""The output of our create `DatabaseProvisionModule` mutation.""" -type CreateDatabaseProvisionModulePayload { +"""The output of our create `FunctionModule` mutation.""" +type CreateFunctionModulePayload { """ The 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 `DatabaseProvisionModule` that was created by this mutation.""" - databaseProvisionModule: DatabaseProvisionModule + """The `FunctionModule` that was created by this mutation.""" + functionModule: FunctionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" - databaseProvisionModuleEdge( - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleEdge + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge } -"""All input for the create `DatabaseProvisionModule` mutation.""" -input CreateDatabaseProvisionModuleInput { +"""All input for the create `FunctionModule` mutation.""" +input CreateFunctionModuleInput { """ 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 `DatabaseProvisionModule` to be created by this mutation.""" - databaseProvisionModule: DatabaseProvisionModuleInput! + """The `FunctionModule` to be created by this mutation.""" + functionModule: FunctionModuleInput! } -"""An input for mutations affecting `DatabaseProvisionModule`""" -input DatabaseProvisionModuleInput { +"""An input for mutations affecting `FunctionModule`""" +input FunctionModuleInput { id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + definitionsTableId: UUID + secretDefinitionsTableId: UUID + definitionsTableName: String + secretDefinitionsTableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] +} - """The name for the new database""" - databaseName: String! - - """UUID of the user who owns this database""" - ownerId: UUID! - +"""The output of our create `InvitesModule` mutation.""" +type CreateInvitesModulePayload { """ - Subdomain prefix for the database. If null, auto-generated using unique_names + random chars + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - subdomain: String + clientMutationId: String - """Base domain for the database (e.g., example.com)""" - domain: String! + """The `InvitesModule` that was created by this mutation.""" + invitesModule: InvitesModule """ - JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) + Our root query field type. Allows us to run any query from our mutation payload. """ - modules: JSON + query: Query - """Additional configuration options for provisioning""" - options: JSON + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge +} +"""All input for the create `InvitesModule` mutation.""" +input CreateInvitesModuleInput { """ - When true, copies the owner user and password hash from source database to the newly provisioned database + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - bootstrapUser: Boolean + clientMutationId: String - """Current status: pending, in_progress, completed, or failed""" - status: String - errorMessage: String + """The `InvitesModule` to be created by this mutation.""" + invitesModule: InvitesModuleInput! +} - """The ID of the provisioned database (set by trigger before RLS check)""" - databaseId: UUID - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime +"""An input for mutations affecting `InvitesModule`""" +input InvitesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + scope: String + prefix: String + entityTableId: UUID + apiName: String + privateApiName: String } """The output of our create `NamespaceModule` mutation.""" @@ -15181,116 +15888,67 @@ input NamespaceModuleInput { entityTableId: UUID policies: JSON provisions: JSON + defaultPermissions: [String] } -"""The output of our create `RealtimeModule` mutation.""" -type CreateRealtimeModulePayload { +"""The output of our create `ComputeLogModule` mutation.""" +type CreateComputeLogModulePayload { """ The 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 `RealtimeModule` that was created by this mutation.""" - realtimeModule: RealtimeModule + """The `ComputeLogModule` that was created by this mutation.""" + computeLogModule: ComputeLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RealtimeModule`. May be used by Relay 1.""" - realtimeModuleEdge( - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RealtimeModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge } -"""All input for the create `RealtimeModule` mutation.""" -input CreateRealtimeModuleInput { +"""All input for the create `ComputeLogModule` mutation.""" +input CreateComputeLogModuleInput { """ 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 `RealtimeModule` to be created by this mutation.""" - realtimeModule: RealtimeModuleInput! + """The `ComputeLogModule` to be created by this mutation.""" + computeLogModule: ComputeLogModuleInput! } -"""An input for mutations affecting `RealtimeModule`""" -input RealtimeModuleInput { +"""An input for mutations affecting `ComputeLogModule`""" +input ComputeLogModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - subscriptionsSchemaId: UUID - changeLogTableId: UUID - listenerNodeTableId: UUID - sourceRegistryTableId: UUID - retentionHours: Int - premake: Int + publicSchemaName: String + privateSchemaName: String + computeLogTableId: UUID + computeLogTableName: String + usageDailyTableId: UUID + usageDailyTableName: String interval: String - notifyChannel: String + retention: String + premake: Int + scope: String + actorFkTableId: UUID + entityFkTableId: UUID + prefix: String apiName: String privateApiName: String } -"""The output of our create `WebauthnAuthModule` mutation.""" -type CreateWebauthnAuthModulePayload { - """ - The 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 `WebauthnAuthModule` that was created by this mutation.""" - webauthnAuthModule: WebauthnAuthModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" - webauthnAuthModuleEdge( - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleEdge -} - -"""All input for the create `WebauthnAuthModule` mutation.""" -input CreateWebauthnAuthModuleInput { - """ - 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 `WebauthnAuthModule` to be created by this mutation.""" - webauthnAuthModule: WebauthnAuthModuleInput! -} - -"""An input for mutations affecting `WebauthnAuthModule`""" -input WebauthnAuthModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - usersTableId: UUID - credentialsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - sessionSecretsTableId: UUID - authSettingsTableId: UUID - rpId: String - rpName: String - originAllowlist: [String] - attestationType: String - requireUserVerification: Boolean - residentKey: String - challengeExpiry: IntervalInput -} - """The output of our create `GraphModule` mutation.""" type CreateGraphModulePayload { """ @@ -15345,65 +16003,10 @@ input GraphModuleInput { entityTableId: UUID policies: JSON provisions: JSON + defaultPermissions: [String] createdAt: Datetime } -"""The output of our create `ComputeLogModule` mutation.""" -type CreateComputeLogModulePayload { - """ - The 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 `ComputeLogModule` that was created by this mutation.""" - computeLogModule: ComputeLogModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge -} - -"""All input for the create `ComputeLogModule` mutation.""" -input CreateComputeLogModuleInput { - """ - 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 `ComputeLogModule` to be created by this mutation.""" - computeLogModule: ComputeLogModuleInput! -} - -"""An input for mutations affecting `ComputeLogModule`""" -input ComputeLogModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - computeLogTableId: UUID - computeLogTableName: String - usageDailyTableId: UUID - usageDailyTableName: String - interval: String - retention: String - premake: Int - scope: String - actorFkTableId: UUID - entityFkTableId: UUID - prefix: String - apiName: String - privateApiName: String -} - """The output of our create `InferenceLogModule` mutation.""" type CreateInferenceLogModulePayload { """ @@ -15445,6 +16048,8 @@ input InferenceLogModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String inferenceLogTableId: UUID inferenceLogTableName: String usageDailyTableId: UUID @@ -15501,6 +16106,8 @@ input StorageLogModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String storageLogTableId: UUID storageLogTableName: String usageDailyTableId: UUID @@ -15557,6 +16164,8 @@ input TransferLogModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String transferLogTableId: UUID transferLogTableName: String usageDailyTableId: UUID @@ -15572,176 +16181,184 @@ input TransferLogModuleInput { privateApiName: String } -"""The output of our create `DbUsageModule` mutation.""" -type CreateDbUsageModulePayload { +"""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 `DbUsageModule` that was created by this mutation.""" - dbUsageModule: DbUsageModule + """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 `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """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 `DbUsageModule` mutation.""" -input CreateDbUsageModuleInput { +"""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 `DbUsageModule` to be created by this mutation.""" - dbUsageModule: DbUsageModuleInput! + """The `PlansModule` to be created by this mutation.""" + plansModule: PlansModuleInput! } -"""An input for mutations affecting `DbUsageModule`""" -input DbUsageModuleInput { +"""An input for mutations affecting `PlansModule`""" +input PlansModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String - interval: String - retention: String - premake: Int - scope: String + publicSchemaName: String + privateSchemaName: String + plansTableId: UUID + plansTableName: String + planLimitsTableId: UUID + planLimitsTableName: String + planPricingTableId: UUID + planOverridesTableId: UUID + planMeterLimitsTableId: UUID + planCapsTableId: UUID + applyPlanFunction: String + applyPlanAggregateFunction: String + applyBillingPlanFunction: String + applyPlanCapsFunction: String prefix: String apiName: String privateApiName: String } -"""The output of our create `NotificationsModule` mutation.""" -type CreateNotificationsModulePayload { +"""The output of our create `BillingProviderModule` mutation.""" +type CreateBillingProviderModulePayload { """ The 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 created by this mutation.""" - notificationsModule: NotificationsModule + """The `BillingProviderModule` that was created by this mutation.""" + billingProviderModule: BillingProviderModule """ 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 + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the create `NotificationsModule` mutation.""" -input CreateNotificationsModuleInput { +"""All input for the create `BillingProviderModule` mutation.""" +input CreateBillingProviderModuleInput { """ 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 `NotificationsModule` to be created by this mutation.""" - notificationsModule: NotificationsModuleInput! + """The `BillingProviderModule` to be created by this mutation.""" + billingProviderModule: BillingProviderModuleInput! } -"""An input for mutations affecting `NotificationsModule`""" -input NotificationsModuleInput { +"""An input for mutations affecting `BillingProviderModule`""" +input BillingProviderModuleInput { 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 + provider: String + productsTableId: UUID + pricesTableId: UUID + subscriptionsTableId: UUID + billingCustomersTableId: UUID + billingCustomersTableName: String + billingProductsTableId: UUID + billingProductsTableName: String + billingPricesTableId: UUID + billingPricesTableName: String + billingSubscriptionsTableId: UUID + billingSubscriptionsTableName: String + billingWebhookEventsTableId: UUID + billingWebhookEventsTableName: String + processBillingEventFunction: String + prefix: String apiName: String privateApiName: String } -"""The output of our create `PlansModule` mutation.""" -type CreatePlansModulePayload { +"""The output of our create `DbUsageModule` mutation.""" +type CreateDbUsageModulePayload { """ The 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 + """The `DbUsageModule` that was created by this mutation.""" + dbUsageModule: DbUsageModule """ 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 + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge } -"""All input for the create `PlansModule` mutation.""" -input CreatePlansModuleInput { +"""All input for the create `DbUsageModule` mutation.""" +input CreateDbUsageModuleInput { """ 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! + """The `DbUsageModule` to be created by this mutation.""" + dbUsageModule: DbUsageModuleInput! } -"""An input for mutations affecting `PlansModule`""" -input PlansModuleInput { +"""An input for mutations affecting `DbUsageModule`""" +input DbUsageModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - plansTableId: UUID - plansTableName: String - planLimitsTableId: UUID - planLimitsTableName: String - planPricingTableId: UUID - planOverridesTableId: UUID - planMeterLimitsTableId: UUID - planCapsTableId: UUID - applyPlanFunction: String - applyPlanAggregateFunction: String - applyBillingPlanFunction: String - applyPlanCapsFunction: String + publicSchemaName: String + privateSchemaName: String + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String prefix: String + defaultPermissions: [String] apiName: String privateApiName: String } @@ -15803,127 +16420,128 @@ input HierarchyModuleInput { getSubordinatesFunction: String getManagersFunction: String isManagerOfFunction: String + defaultPermissions: [String] createdAt: Datetime } -"""The output of our create `BillingModule` mutation.""" -type CreateBillingModulePayload { +"""The output of our create `PermissionsModule` mutation.""" +type CreatePermissionsModulePayload { """ The 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 created by this mutation.""" - billingModule: BillingModule + """The `PermissionsModule` that was created 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 `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge + """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 create `BillingModule` mutation.""" -input CreateBillingModuleInput { +"""All input for the create `PermissionsModule` mutation.""" +input CreatePermissionsModuleInput { """ 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 `BillingModule` to be created by this mutation.""" - billingModule: BillingModuleInput! + """The `PermissionsModule` to be created by this mutation.""" + permissionsModule: PermissionsModuleInput! } -"""An input for mutations affecting `BillingModule`""" -input BillingModuleInput { +"""An input for mutations affecting `PermissionsModule`""" +input PermissionsModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - meterDefaultsTableId: UUID - meterDefaultsTableName: String - recordUsageFunction: String + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int + scope: String prefix: String + entityTableId: UUID + actorTableId: UUID + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String apiName: String privateApiName: String } -"""The output of our create `BillingProviderModule` mutation.""" -type CreateBillingProviderModulePayload { +"""The output of our create `NotificationsModule` mutation.""" +type CreateNotificationsModulePayload { """ The 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 `BillingProviderModule` that was created by this mutation.""" - billingProviderModule: BillingProviderModule + """The `NotificationsModule` that was created 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 `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge + """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 create `BillingProviderModule` mutation.""" -input CreateBillingProviderModuleInput { +"""All input for the create `NotificationsModule` mutation.""" +input CreateNotificationsModuleInput { """ 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 `BillingProviderModule` to be created by this mutation.""" - billingProviderModule: BillingProviderModuleInput! + """The `NotificationsModule` to be created by this mutation.""" + notificationsModule: NotificationsModuleInput! } -"""An input for mutations affecting `BillingProviderModule`""" -input BillingProviderModuleInput { +"""An input for mutations affecting `NotificationsModule`""" +input NotificationsModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - provider: String - productsTableId: UUID - pricesTableId: UUID - subscriptionsTableId: UUID - billingCustomersTableId: UUID - billingCustomersTableName: String - billingProductsTableId: UUID - billingProductsTableName: String - billingPricesTableId: UUID - billingPricesTableName: String - billingSubscriptionsTableId: UUID - billingSubscriptionsTableName: String - billingWebhookEventsTableId: UUID - billingWebhookEventsTableName: String - processBillingEventFunction: String - prefix: String + publicSchemaName: String + privateSchemaName: String + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + suppressionsTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean + defaultPermissions: [String] apiName: String privateApiName: String } @@ -15969,6 +16587,8 @@ input ProfilesModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID tableName: String profilePermissionsTableId: UUID @@ -15989,60 +16609,66 @@ input ProfilesModuleInput { privateApiName: String } -"""The output of our create `PermissionsModule` mutation.""" -type CreatePermissionsModulePayload { +"""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 `PermissionsModule` that was created by this mutation.""" - permissionsModule: PermissionsModule + """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 `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """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 `PermissionsModule` mutation.""" -input CreatePermissionsModuleInput { +"""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 `PermissionsModule` to be created by this mutation.""" - permissionsModule: PermissionsModuleInput! + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! } -"""An input for mutations affecting `PermissionsModule`""" -input PermissionsModuleInput { +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - scope: String + publicSchemaName: String + privateSchemaName: String + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: String prefix: String - entityTableId: UUID - actorTableId: UUID - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String + defaultPermissions: [String] apiName: String privateApiName: String } @@ -16376,71 +17002,6 @@ input BlueprintTemplateInput { updatedAt: Datetime } -"""The output of our create `FunctionModule` mutation.""" -type CreateFunctionModulePayload { - """ - The 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 `FunctionModule` that was created by this mutation.""" - functionModule: FunctionModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge -} - -"""All input for the create `FunctionModule` mutation.""" -input CreateFunctionModuleInput { - """ - 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 `FunctionModule` to be created by this mutation.""" - functionModule: FunctionModuleInput! -} - -"""An input for mutations affecting `FunctionModule`""" -input FunctionModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID - invocationsTableId: UUID - executionLogsTableId: UUID - secretDefinitionsTableId: UUID - requirementsTableId: UUID - configDefinitionsTableId: UUID - configRequirementsTableId: UUID - definitionsTableName: String - invocationsTableName: String - executionLogsTableName: String - secretDefinitionsTableName: String - requirementsTableName: String - configRequirementsTableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON -} - """The output of our create `UserAuthModule` mutation.""" type CreateUserAuthModulePayload { """ @@ -16549,6 +17110,8 @@ input AgentModuleInput { databaseId: UUID! schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String threadTableId: UUID messageTableId: UUID taskTableId: UUID @@ -16568,6 +17131,7 @@ input AgentModuleInput { hasPlans: Boolean hasResources: Boolean hasAgents: Boolean + shared: Boolean apiName: String privateApiName: String scope: String @@ -16576,6 +17140,7 @@ input AgentModuleInput { policies: JSON resources: JSON provisions: JSON + defaultPermissions: [String] } """The output of our create `LimitsModule` mutation.""" @@ -16609,275 +17174,126 @@ input CreateLimitsModuleInput { """ 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 - limitCreditsTableId: UUID - eventsTableId: UUID - creditCodesTableId: UUID - creditCodeItemsTableId: UUID - creditRedemptionsTableId: UUID - aggregateTableId: UUID - limitCapsTableId: UUID - limitCapsDefaultsTableId: UUID - capCheckTrigger: String - resolveCapFunction: String - limitWarningsTableId: UUID - limitWarningStateTableId: UUID - limitCheckSoftFunction: String - limitAggregateCheckSoftFunction: String - scope: String - prefix: String - entityTableId: UUID - actorTableId: UUID - apiName: String - privateApiName: String -} - -"""The output of our create `MembershipsModule` mutation.""" -type CreateMembershipsModulePayload { - """ - The 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 `MembershipsModule` that was created by this mutation.""" - membershipsModule: MembershipsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipsModule`. May be used by Relay 1.""" - membershipsModuleEdge( - """The method to use when ordering `MembershipsModule`.""" - orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipsModuleEdge -} - -"""All input for the create `MembershipsModule` mutation.""" -input CreateMembershipsModuleInput { - """ - 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 `MembershipsModule` to be created by this mutation.""" - membershipsModule: MembershipsModuleInput! -} - -"""An input for mutations affecting `MembershipsModule`""" -input MembershipsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - membershipsTableId: UUID - membershipsTableName: String - membersTableId: UUID - membersTableName: String - membershipDefaultsTableId: UUID - membershipDefaultsTableName: String - membershipSettingsTableId: UUID - membershipSettingsTableName: String - grantsTableId: UUID - grantsTableName: String - actorTableId: UUID - limitsTableId: UUID - defaultLimitsTableId: UUID - permissionsTableId: UUID - defaultPermissionsTableId: UUID - sprtTableId: UUID - adminGrantsTableId: UUID - adminGrantsTableName: String - ownerGrantsTableId: UUID - ownerGrantsTableName: String - scope: String - prefix: String - entityTableId: UUID - entityTableOwnerId: UUID - getOrgFn: String - actorMaskCheck: String - actorPermCheck: String - entityIdsByMask: String - entityIdsByPerm: String - entityIdsFunction: String - memberProfilesTableId: UUID - apiName: String - privateApiName: String -} - -"""The output of our create `StorageModule` mutation.""" -type CreateStorageModulePayload { - """ - The 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 `StorageModule` that was created by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the create `StorageModule` mutation.""" -input CreateStorageModuleInput { - """ - 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 `StorageModule` to be created by this mutation.""" - storageModule: StorageModuleInput! + """The `LimitsModule` to be created by this mutation.""" + limitsModule: LimitsModuleInput! } -"""An input for mutations affecting `StorageModule`""" -input StorageModuleInput { +"""An input for mutations affecting `LimitsModule`""" +input LimitsModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + limitIncrementFunction: String + limitDecrementFunction: String + limitIncrementTrigger: String + limitDecrementTrigger: String + limitUpdateTrigger: String + limitCheckFunction: String + limitCreditsTableId: UUID + eventsTableId: UUID + creditCodesTableId: UUID + creditCodeItemsTableId: UUID + creditRedemptionsTableId: UUID + aggregateTableId: UUID + limitCapsTableId: UUID + limitCapsDefaultsTableId: UUID + capCheckTrigger: String + resolveCapFunction: String + limitWarningsTableId: UUID + limitWarningStateTableId: UUID + limitCheckSoftFunction: String + limitAggregateCheckSoftFunction: String scope: String prefix: String - policies: JSON - provisions: JSON entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID + actorTableId: UUID apiName: String privateApiName: String } -"""The output of our create `EventsModule` mutation.""" -type CreateEventsModulePayload { +"""The output of our create `MembershipsModule` mutation.""" +type CreateMembershipsModulePayload { """ The 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 `EventsModule` that was created by this mutation.""" - eventsModule: EventsModule + """The `MembershipsModule` that was created by this mutation.""" + membershipsModule: MembershipsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge + """An edge for our `MembershipsModule`. May be used by Relay 1.""" + membershipsModuleEdge( + """The method to use when ordering `MembershipsModule`.""" + orderBy: [MembershipsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipsModuleEdge } -"""All input for the create `EventsModule` mutation.""" -input CreateEventsModuleInput { +"""All input for the create `MembershipsModule` mutation.""" +input CreateMembershipsModuleInput { """ 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 `EventsModule` to be created by this mutation.""" - eventsModule: EventsModuleInput! + """The `MembershipsModule` to be created by this mutation.""" + membershipsModule: MembershipsModuleInput! } -"""An input for mutations affecting `EventsModule`""" -input EventsModuleInput { +"""An input for mutations affecting `MembershipsModule`""" +input MembershipsModuleInput { id: UUID databaseId: UUID! schemaId: UUID privateSchemaId: UUID - eventsTableId: UUID - eventsTableName: String - eventAggregatesTableId: UUID - eventAggregatesTableName: String - eventTypesTableId: UUID - eventTypesTableName: String - levelsTableId: UUID - levelsTableName: String - levelRequirementsTableId: UUID - levelRequirementsTableName: String - levelGrantsTableId: UUID - levelGrantsTableName: String - achievementRewardsTableId: UUID - achievementRewardsTableName: String - recordEvent: String - removeEvent: String - tgEvent: String - tgEventToggle: String - tgEventToggleBool: String - tgEventBool: String - upsertAggregate: String - tgUpdateAggregates: String - pruneEvents: String - stepsRequired: String - levelAchieved: String - tgCheckAchievements: String - grantAchievement: String - tgAchievementReward: String - interval: String - retention: String - premake: Int + publicSchemaName: String + privateSchemaName: String + membershipsTableId: UUID + membershipsTableName: String + membersTableId: UUID + membersTableName: String + membershipDefaultsTableId: UUID + membershipDefaultsTableName: String + membershipSettingsTableId: UUID + membershipSettingsTableName: String + grantsTableId: UUID + grantsTableName: String + actorTableId: UUID + limitsTableId: UUID + defaultLimitsTableId: UUID + permissionsTableId: UUID + defaultPermissionsTableId: UUID + sprtTableId: UUID + adminGrantsTableId: UUID + adminGrantsTableName: String + ownerGrantsTableId: UUID + ownerGrantsTableName: String scope: String prefix: String entityTableId: UUID - actorTableId: UUID + entityTableOwnerId: UUID + getOrgFn: String + actorMaskCheck: String + actorPermCheck: String + entityIdsByMask: String + entityIdsByPerm: String + entityIdsFunction: String + memberProfilesTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID apiName: String privateApiName: String } @@ -17184,32 +17600,191 @@ input EntityTypeProvisionInput { outInvitesModuleId: UUID """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""The output of our create `StorageModule` mutation.""" +type CreateStorageModulePayload { + """ + The 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 `StorageModule` that was created by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the create `StorageModule` mutation.""" +input CreateStorageModuleInput { + """ + 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 `StorageModule` to be created by this mutation.""" + storageModule: StorageModuleInput! +} + +"""An input for mutations affecting `StorageModule`""" +input StorageModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + scope: String + prefix: String + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID + defaultPermissions: [String] + apiName: String + privateApiName: String +} + +"""The output of our create `EventsModule` mutation.""" +type CreateEventsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outNamespaceModuleId: UUID + clientMutationId: String + + """The `EventsModule` that was created by this mutation.""" + eventsModule: EventsModule """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. + Our root query field type. Allows us to run any query from our mutation payload. """ - outNamespacesTableId: UUID + query: Query + + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge +} +"""All input for the create `EventsModule` mutation.""" +input CreateEventsModuleInput { """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID + clientMutationId: String + + """The `EventsModule` to be created by this mutation.""" + eventsModule: EventsModuleInput! +} + +"""An input for mutations affecting `EventsModule`""" +input EventsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + eventsTableId: UUID + eventsTableName: String + eventAggregatesTableId: UUID + eventAggregatesTableName: String + eventTypesTableId: UUID + eventTypesTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + levelRequirementsTableName: String + levelGrantsTableId: UUID + levelGrantsTableName: String + achievementRewardsTableId: UUID + achievementRewardsTableName: String + recordEvent: String + removeEvent: String + tgEvent: String + tgEventToggle: String + tgEventToggleBool: String + tgEventBool: String + upsertAggregate: String + tgUpdateAggregates: String + pruneEvents: String + stepsRequired: String + levelAchieved: String + tgCheckAchievements: String + grantAchievement: String + tgAchievementReward: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + entityTableId: UUID + actorTableId: UUID + defaultPermissions: [String] + apiName: String + privateApiName: String } """The output of our update `DefaultIdsModule` mutation.""" @@ -18093,31 +18668,31 @@ input CryptoAddressesModulePatch { privateApiName: String } -"""The output of our update `IdentityProvidersModule` mutation.""" -type UpdateIdentityProvidersModulePayload { +"""The output of our update `DenormalizedTableField` mutation.""" +type UpdateDenormalizedTableFieldPayload { """ The 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 `IdentityProvidersModule` that was updated by this mutation.""" - identityProvidersModule: IdentityProvidersModule + """The `DenormalizedTableField` that was updated 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 `IdentityProvidersModule`. May be used by Relay 1.""" - identityProvidersModuleEdge( - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleEdge + """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 `updateIdentityProvidersModule` mutation.""" -input UpdateIdentityProvidersModuleInput { +"""All input for the `updateDenormalizedTableField` mutation.""" +input UpdateDenormalizedTableFieldInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -18126,57 +18701,54 @@ input UpdateIdentityProvidersModuleInput { id: UUID! """ - An object where the defined keys will be set on the `IdentityProvidersModule` being updated. + An object where the defined keys will be set on the `DenormalizedTableField` being updated. """ - identityProvidersModulePatch: IdentityProvidersModulePatch! + denormalizedTableFieldPatch: DenormalizedTableFieldPatch! } """ -Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. +Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. """ -input IdentityProvidersModulePatch { +input DenormalizedTableFieldPatch { id: UUID databaseId: UUID - schemaId: UUID - - """ - Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. - """ - privateSchemaId: UUID tableId: UUID - tableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID + fieldId: UUID + setIds: [UUID] + refTableId: UUID + refFieldId: UUID + refIds: [UUID] + useUpdates: Boolean + updateDefaults: Boolean + funcName: String + funcOrder: Int } -"""The output of our update `DenormalizedTableField` mutation.""" -type UpdateDenormalizedTableFieldPayload { +"""The output of our update `IdentityProvidersModule` mutation.""" +type UpdateIdentityProvidersModulePayload { """ The 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 updated by this mutation.""" - denormalizedTableField: DenormalizedTableField + """The `IdentityProvidersModule` that was updated by this mutation.""" + identityProvidersModule: IdentityProvidersModule """ 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 + """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" + identityProvidersModuleEdge( + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleEdge } -"""All input for the `updateDenormalizedTableField` mutation.""" -input UpdateDenormalizedTableFieldInput { +"""All input for the `updateIdentityProvidersModule` mutation.""" +input UpdateIdentityProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -18185,27 +18757,32 @@ input UpdateDenormalizedTableFieldInput { id: UUID! """ - An object where the defined keys will be set on the `DenormalizedTableField` being updated. + An object where the defined keys will be set on the `IdentityProvidersModule` being updated. """ - denormalizedTableFieldPatch: DenormalizedTableFieldPatch! + identityProvidersModulePatch: IdentityProvidersModulePatch! } """ -Represents an update to a `DenormalizedTableField`. Fields that are set will be updated. +Represents an update to a `IdentityProvidersModule`. Fields that are set will be updated. """ -input DenormalizedTableFieldPatch { +input IdentityProvidersModulePatch { id: UUID databaseId: UUID + schemaId: UUID + + """ + Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. + """ + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID - fieldId: UUID - setIds: [UUID] - refTableId: UUID - refFieldId: UUID - refIds: [UUID] - useUpdates: Boolean - updateDefaults: Boolean - funcName: String - funcOrder: Int + tableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID } """The output of our update `RlsModule` mutation.""" @@ -18374,71 +18951,13 @@ type UpdateCryptoAuthModulePayload { """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" cryptoAuthModuleEdge( - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleEdge -} - -"""All input for the `updateCryptoAuthModule` mutation.""" -input UpdateCryptoAuthModuleInput { - """ - 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 `CryptoAuthModule` being updated. - """ - cryptoAuthModulePatch: CryptoAuthModulePatch! -} - -""" -Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. -""" -input CryptoAuthModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - usersTableId: UUID - secretsTableId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - addressesTableId: UUID - userField: String - cryptoNetwork: String - signInRequestChallenge: String - signInRecordFailure: String - signUpWithKey: String - signInWithChallenge: String -} - -"""The output of our update `RateLimitMetersModule` mutation.""" -type UpdateRateLimitMetersModulePayload { - """ - The 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 `RateLimitMetersModule` that was updated by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge } -"""All input for the `updateRateLimitMetersModule` mutation.""" -input UpdateRateLimitMetersModuleInput { +"""All input for the `updateCryptoAuthModule` mutation.""" +input UpdateCryptoAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -18447,29 +18966,29 @@ input UpdateRateLimitMetersModuleInput { id: UUID! """ - An object where the defined keys will be set on the `RateLimitMetersModule` being updated. + An object where the defined keys will be set on the `CryptoAuthModule` being updated. """ - rateLimitMetersModulePatch: RateLimitMetersModulePatch! + cryptoAuthModulePatch: CryptoAuthModulePatch! } """ -Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. +Represents an update to a `CryptoAuthModule`. Fields that are set will be updated. """ -input RateLimitMetersModulePatch { +input CryptoAuthModulePatch { id: UUID databaseId: UUID schemaId: UUID - privateSchemaId: UUID - rateLimitStateTableId: UUID - rateLimitStateTableName: String - rateLimitOverridesTableId: UUID - rateLimitOverridesTableName: String - rateWindowLimitsTableId: UUID - rateWindowLimitsTableName: String - checkRateLimitFunction: String - prefix: String - apiName: String - privateApiName: String + usersTableId: UUID + secretsTableId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + addressesTableId: UUID + userField: String + cryptoNetwork: String + signInRequestChallenge: String + signInRecordFailure: String + signUpWithKey: String + signInWithChallenge: String } """The output of our update `BlueprintConstruction` mutation.""" @@ -18617,124 +19136,6 @@ input SessionsModulePatch { authSettingsTable: String } -"""The output of our update `ConfigSecretsModule` mutation.""" -type UpdateConfigSecretsModulePayload { - """ - The 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 `ConfigSecretsModule` that was updated by this mutation.""" - configSecretsModule: ConfigSecretsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ConfigSecretsModule`. May be used by Relay 1.""" - configSecretsModuleEdge( - """The method to use when ordering `ConfigSecretsModule`.""" - orderBy: [ConfigSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ConfigSecretsModuleEdge -} - -"""All input for the `updateConfigSecretsModule` mutation.""" -input UpdateConfigSecretsModuleInput { - """ - 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 `ConfigSecretsModule` being updated. - """ - configSecretsModulePatch: ConfigSecretsModulePatch! -} - -""" -Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. -""" -input ConfigSecretsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - configDefinitionsTableId: UUID - tableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON - hasConfig: Boolean -} - -"""The output of our update `MerkleStoreModule` mutation.""" -type UpdateMerkleStoreModulePayload { - """ - The 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 `MerkleStoreModule` that was updated by this mutation.""" - merkleStoreModule: MerkleStoreModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" - merkleStoreModuleEdge( - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleEdge -} - -"""All input for the `updateMerkleStoreModule` mutation.""" -input UpdateMerkleStoreModuleInput { - """ - 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 `MerkleStoreModule` being updated. - """ - merkleStoreModulePatch: MerkleStoreModulePatch! -} - -""" -Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. -""" -input MerkleStoreModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - objectTableId: UUID - storeTableId: UUID - commitTableId: UUID - refTableId: UUID - prefix: String - apiName: String - privateApiName: String - scope: String - createdAt: Datetime -} - """The output of our update `SecureTableProvision` mutation.""" type UpdateSecureTableProvisionPayload { """ @@ -18831,31 +19232,31 @@ input SecureTableProvisionPatch { outFields: [UUID] } -"""The output of our update `InvitesModule` mutation.""" -type UpdateInvitesModulePayload { +"""The output of our update `MerkleStoreModule` mutation.""" +type UpdateMerkleStoreModulePayload { """ The 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 `InvitesModule` that was updated by this mutation.""" - invitesModule: InvitesModule + """The `MerkleStoreModule` that was updated by this mutation.""" + merkleStoreModule: MerkleStoreModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InvitesModule`. May be used by Relay 1.""" - invitesModuleEdge( - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InvitesModuleEdge + """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" + merkleStoreModuleEdge( + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleEdge } -"""All input for the `updateInvitesModule` mutation.""" -input UpdateInvitesModuleInput { +"""All input for the `updateMerkleStoreModule` mutation.""" +input UpdateMerkleStoreModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -18864,31 +19265,31 @@ input UpdateInvitesModuleInput { id: UUID! """ - An object where the defined keys will be set on the `InvitesModule` being updated. + An object where the defined keys will be set on the `MerkleStoreModule` being updated. """ - invitesModulePatch: InvitesModulePatch! + merkleStoreModulePatch: MerkleStoreModulePatch! } """ -Represents an update to a `InvitesModule`. Fields that are set will be updated. +Represents an update to a `MerkleStoreModule`. Fields that are set will be updated. """ -input InvitesModulePatch { +input MerkleStoreModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - emailsTableId: UUID - usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String - scope: String + publicSchemaName: String + privateSchemaName: String + objectTableId: UUID + storeTableId: UUID + commitTableId: UUID + refTableId: UUID prefix: String - entityTableId: UUID apiName: String privateApiName: String + scope: String + functionPrefix: String + createdAt: Datetime } """The output of our update `DatabaseProvisionModule` mutation.""" @@ -18973,31 +19374,92 @@ input DatabaseProvisionModulePatch { completedAt: Datetime } -"""The output of our update `NamespaceModule` mutation.""" -type UpdateNamespaceModulePayload { +"""The output of our update `ConfigSecretsModule` mutation.""" +type UpdateConfigSecretsModulePayload { + """ + The 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 `ConfigSecretsModule` that was updated by this mutation.""" + configSecretsModule: ConfigSecretsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ConfigSecretsModule`. May be used by Relay 1.""" + configSecretsModuleEdge( + """The method to use when ordering `ConfigSecretsModule`.""" + orderBy: [ConfigSecretsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ConfigSecretsModuleEdge +} + +"""All input for the `updateConfigSecretsModule` mutation.""" +input UpdateConfigSecretsModuleInput { + """ + 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 `ConfigSecretsModule` being updated. + """ + configSecretsModulePatch: ConfigSecretsModulePatch! +} + +""" +Represents an update to a `ConfigSecretsModule`. Fields that are set will be updated. +""" +input ConfigSecretsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + tableId: UUID + configDefinitionsTableId: UUID + tableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + hasConfig: Boolean +} + +"""The output of our update `RateLimitMetersModule` mutation.""" +type UpdateRateLimitMetersModulePayload { """ The 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 `NamespaceModule` that was updated by this mutation.""" - namespaceModule: NamespaceModule + """The `RateLimitMetersModule` that was updated by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NamespaceModule`. May be used by Relay 1.""" - namespaceModuleEdge( - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceModuleEdge + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge } -"""All input for the `updateNamespaceModule` mutation.""" -input UpdateNamespaceModuleInput { +"""All input for the `updateRateLimitMetersModule` mutation.""" +input UpdateRateLimitMetersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19006,32 +19468,32 @@ input UpdateNamespaceModuleInput { id: UUID! """ - An object where the defined keys will be set on the `NamespaceModule` being updated. + An object where the defined keys will be set on the `RateLimitMetersModule` being updated. """ - namespaceModulePatch: NamespaceModulePatch! + rateLimitMetersModulePatch: RateLimitMetersModulePatch! } """ -Represents an update to a `NamespaceModule`. Fields that are set will be updated. +Represents an update to a `RateLimitMetersModule`. Fields that are set will be updated. """ -input NamespaceModulePatch { +input RateLimitMetersModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String - namespacesTableId: UUID - namespaceEventsTableId: UUID - namespacesTableName: String - namespaceEventsTableName: String + rateLimitStateTableId: UUID + rateLimitStateTableName: String + rateLimitOverridesTableId: UUID + rateLimitOverridesTableName: String + rateWindowLimitsTableId: UUID + rateWindowLimitsTableName: String + checkRateLimitFunction: String + prefix: String + defaultPermissions: [String] apiName: String privateApiName: String - scope: String - prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON } """The output of our update `RealtimeModule` mutation.""" @@ -19152,31 +19614,31 @@ input WebauthnAuthModulePatch { challengeExpiry: IntervalInput } -"""The output of our update `GraphModule` mutation.""" -type UpdateGraphModulePayload { +"""The output of our update `FunctionInvocationModule` mutation.""" +type UpdateFunctionInvocationModulePayload { """ The 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 `GraphModule` that was updated by this mutation.""" - graphModule: GraphModule + """The `FunctionInvocationModule` that was updated by this mutation.""" + functionInvocationModule: FunctionInvocationModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `GraphModule`. May be used by Relay 1.""" - graphModuleEdge( - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): GraphModuleEdge + """An edge for our `FunctionInvocationModule`. May be used by Relay 1.""" + functionInvocationModuleEdge( + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleEdge } -"""All input for the `updateGraphModule` mutation.""" -input UpdateGraphModuleInput { +"""All input for the `updateFunctionInvocationModule` mutation.""" +input UpdateFunctionInvocationModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19185,33 +19647,219 @@ input UpdateGraphModuleInput { id: UUID! """ - An object where the defined keys will be set on the `GraphModule` being updated. + An object where the defined keys will be set on the `FunctionInvocationModule` being updated. """ - graphModulePatch: GraphModulePatch! + functionInvocationModulePatch: FunctionInvocationModulePatch! } """ -Represents an update to a `GraphModule`. Fields that are set will be updated. +Represents an update to a `FunctionInvocationModule`. Fields that are set will be updated. """ -input GraphModulePatch { +input FunctionInvocationModulePatch { id: UUID databaseId: UUID - publicSchemaId: UUID + schemaId: UUID privateSchemaId: UUID publicSchemaName: String privateSchemaName: String + invocationsTableId: UUID + executionLogsTableId: UUID + invocationsTableName: String + executionLogsTableName: String + apiName: String + privateApiName: String scope: String prefix: String - merkleStoreModuleId: UUID - graphsTableId: UUID - executionsTableId: UUID - outputsTableId: UUID + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] +} + +"""The output of our update `FunctionModule` mutation.""" +type UpdateFunctionModulePayload { + """ + The 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 `FunctionModule` that was updated by this mutation.""" + functionModule: FunctionModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge +} + +"""All input for the `updateFunctionModule` mutation.""" +input UpdateFunctionModuleInput { + """ + 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 `FunctionModule` being updated. + """ + functionModulePatch: FunctionModulePatch! +} + +""" +Represents an update to a `FunctionModule`. Fields that are set will be updated. +""" +input FunctionModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + definitionsTableId: UUID + secretDefinitionsTableId: UUID + definitionsTableName: String + secretDefinitionsTableName: String + apiName: String + privateApiName: String + scope: String + prefix: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] +} + +"""The output of our update `InvitesModule` mutation.""" +type UpdateInvitesModulePayload { + """ + The 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 `InvitesModule` that was updated by this mutation.""" + invitesModule: InvitesModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge +} + +"""All input for the `updateInvitesModule` mutation.""" +input UpdateInvitesModuleInput { + """ + 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 `InvitesModule` being updated. + """ + invitesModulePatch: InvitesModulePatch! +} + +""" +Represents an update to a `InvitesModule`. Fields that are set will be updated. +""" +input InvitesModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + scope: String + prefix: String + entityTableId: UUID + apiName: String + privateApiName: String +} + +"""The output of our update `NamespaceModule` mutation.""" +type UpdateNamespaceModulePayload { + """ + The 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 `NamespaceModule` that was updated by this mutation.""" + namespaceModule: NamespaceModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NamespaceModule`. May be used by Relay 1.""" + namespaceModuleEdge( + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceModuleEdge +} + +"""All input for the `updateNamespaceModule` mutation.""" +input UpdateNamespaceModuleInput { + """ + 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 `NamespaceModule` being updated. + """ + namespaceModulePatch: NamespaceModulePatch! +} + +""" +Represents an update to a `NamespaceModule`. Fields that are set will be updated. +""" +input NamespaceModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + namespacesTableId: UUID + namespaceEventsTableId: UUID + namespacesTableName: String + namespaceEventsTableName: String apiName: String privateApiName: String + scope: String + prefix: String entityTableId: UUID policies: JSON provisions: JSON - createdAt: Datetime + defaultPermissions: [String] } """The output of our update `ComputeLogModule` mutation.""" @@ -19260,6 +19908,8 @@ input ComputeLogModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String computeLogTableId: UUID computeLogTableName: String usageDailyTableId: UUID @@ -19275,6 +19925,69 @@ input ComputeLogModulePatch { privateApiName: String } +"""The output of our update `GraphModule` mutation.""" +type UpdateGraphModulePayload { + """ + The 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 `GraphModule` that was updated by this mutation.""" + graphModule: GraphModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `GraphModule`. May be used by Relay 1.""" + graphModuleEdge( + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): GraphModuleEdge +} + +"""All input for the `updateGraphModule` mutation.""" +input UpdateGraphModuleInput { + """ + 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 `GraphModule` being updated. + """ + graphModulePatch: GraphModulePatch! +} + +""" +Represents an update to a `GraphModule`. Fields that are set will be updated. +""" +input GraphModulePatch { + id: UUID + databaseId: UUID + publicSchemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + scope: String + prefix: String + merkleStoreModuleId: UUID + graphsTableId: UUID + executionsTableId: UUID + outputsTableId: UUID + apiName: String + privateApiName: String + entityTableId: UUID + policies: JSON + provisions: JSON + defaultPermissions: [String] + createdAt: Datetime +} + """The output of our update `InferenceLogModule` mutation.""" type UpdateInferenceLogModulePayload { """ @@ -19321,6 +20034,8 @@ input InferenceLogModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String inferenceLogTableId: UUID inferenceLogTableName: String usageDailyTableId: UUID @@ -19382,6 +20097,8 @@ input StorageLogModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String storageLogTableId: UUID storageLogTableName: String usageDailyTableId: UUID @@ -19443,6 +20160,8 @@ input TransferLogModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String transferLogTableId: UUID transferLogTableName: String usageDailyTableId: UUID @@ -19458,31 +20177,31 @@ input TransferLogModulePatch { privateApiName: String } -"""The output of our update `DbUsageModule` mutation.""" -type UpdateDbUsageModulePayload { +"""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 `DbUsageModule` that was updated by this mutation.""" - dbUsageModule: DbUsageModule + """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 `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """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 `updateDbUsageModule` mutation.""" -input UpdateDbUsageModuleInput { +"""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. @@ -19491,61 +20210,63 @@ input UpdateDbUsageModuleInput { id: UUID! """ - An object where the defined keys will be set on the `DbUsageModule` being updated. + An object where the defined keys will be set on the `PlansModule` being updated. """ - dbUsageModulePatch: DbUsageModulePatch! + plansModulePatch: PlansModulePatch! } """ -Represents an update to a `DbUsageModule`. Fields that are set will be updated. +Represents an update to a `PlansModule`. Fields that are set will be updated. """ -input DbUsageModulePatch { +input PlansModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - tableStatsLogTableId: UUID - tableStatsLogTableName: String - tableStatsDailyTableId: UUID - tableStatsDailyTableName: String - queryStatsLogTableId: UUID - queryStatsLogTableName: String - queryStatsDailyTableId: UUID - queryStatsDailyTableName: String - interval: String - retention: String - premake: Int - scope: String + publicSchemaName: String + privateSchemaName: String + plansTableId: UUID + plansTableName: String + planLimitsTableId: UUID + planLimitsTableName: String + planPricingTableId: UUID + planOverridesTableId: UUID + planMeterLimitsTableId: UUID + planCapsTableId: UUID + applyPlanFunction: String + applyPlanAggregateFunction: String + applyBillingPlanFunction: String + applyPlanCapsFunction: String prefix: String apiName: String privateApiName: String } -"""The output of our update `NotificationsModule` mutation.""" -type UpdateNotificationsModulePayload { +"""The output of our update `BillingProviderModule` mutation.""" +type UpdateBillingProviderModulePayload { """ The 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 + """The `BillingProviderModule` that was updated by this mutation.""" + billingProviderModule: BillingProviderModule """ 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 + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the `updateNotificationsModule` mutation.""" -input UpdateNotificationsModuleInput { +"""All input for the `updateBillingProviderModule` mutation.""" +input UpdateBillingProviderModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19554,61 +20275,64 @@ input UpdateNotificationsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `NotificationsModule` being updated. + An object where the defined keys will be set on the `BillingProviderModule` being updated. """ - notificationsModulePatch: NotificationsModulePatch! + billingProviderModulePatch: BillingProviderModulePatch! } """ -Represents an update to a `NotificationsModule`. Fields that are set will be updated. +Represents an update to a `BillingProviderModule`. Fields that are set will be updated. """ -input NotificationsModulePatch { +input BillingProviderModulePatch { 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 + provider: String + productsTableId: UUID + pricesTableId: UUID + subscriptionsTableId: UUID + billingCustomersTableId: UUID + billingCustomersTableName: String + billingProductsTableId: UUID + billingProductsTableName: String + billingPricesTableId: UUID + billingPricesTableName: String + billingSubscriptionsTableId: UUID + billingSubscriptionsTableName: String + billingWebhookEventsTableId: UUID + billingWebhookEventsTableName: String + processBillingEventFunction: String + prefix: String apiName: String privateApiName: String } -"""The output of our update `PlansModule` mutation.""" -type UpdatePlansModulePayload { +"""The output of our update `DbUsageModule` mutation.""" +type UpdateDbUsageModulePayload { """ The 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 + """The `DbUsageModule` that was updated by this mutation.""" + dbUsageModule: DbUsageModule """ 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 + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge } -"""All input for the `updatePlansModule` mutation.""" -input UpdatePlansModuleInput { +"""All input for the `updateDbUsageModule` mutation.""" +input UpdateDbUsageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -19617,32 +20341,35 @@ input UpdatePlansModuleInput { id: UUID! """ - An object where the defined keys will be set on the `PlansModule` being updated. + An object where the defined keys will be set on the `DbUsageModule` being updated. """ - plansModulePatch: PlansModulePatch! + dbUsageModulePatch: DbUsageModulePatch! } """ -Represents an update to a `PlansModule`. Fields that are set will be updated. +Represents an update to a `DbUsageModule`. Fields that are set will be updated. """ -input PlansModulePatch { +input DbUsageModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - plansTableId: UUID - plansTableName: String - planLimitsTableId: UUID - planLimitsTableName: String - planPricingTableId: UUID - planOverridesTableId: UUID - planMeterLimitsTableId: UUID - planCapsTableId: UUID - applyPlanFunction: String - applyPlanAggregateFunction: String - applyBillingPlanFunction: String - applyPlanCapsFunction: String + publicSchemaName: String + privateSchemaName: String + tableStatsLogTableId: UUID + tableStatsLogTableName: String + tableStatsDailyTableId: UUID + tableStatsDailyTableName: String + queryStatsLogTableId: UUID + queryStatsLogTableName: String + queryStatsDailyTableId: UUID + queryStatsDailyTableName: String + interval: String + retention: String + premake: Int + scope: String prefix: String + defaultPermissions: [String] apiName: String privateApiName: String } @@ -19709,34 +20436,35 @@ input HierarchyModulePatch { getSubordinatesFunction: String getManagersFunction: String isManagerOfFunction: String + defaultPermissions: [String] createdAt: Datetime } -"""The output of our update `BillingModule` mutation.""" -type UpdateBillingModulePayload { +"""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 `BillingModule` that was updated by this mutation.""" - billingModule: BillingModule - + """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 `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge + """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 `updateBillingModule` mutation.""" -input UpdateBillingModuleInput { +"""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. @@ -19745,64 +20473,63 @@ input UpdateBillingModuleInput { id: UUID! """ - An object where the defined keys will be set on the `BillingModule` being updated. + An object where the defined keys will be set on the `PermissionsModule` being updated. """ - billingModulePatch: BillingModulePatch! + permissionsModulePatch: PermissionsModulePatch! } """ -Represents an update to a `BillingModule`. Fields that are set will be updated. +Represents an update to a `PermissionsModule`. Fields that are set will be updated. """ -input BillingModulePatch { +input PermissionsModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - metersTableId: UUID - metersTableName: String - planSubscriptionsTableId: UUID - planSubscriptionsTableName: String - ledgerTableId: UUID - ledgerTableName: String - balancesTableId: UUID - balancesTableName: String - meterCreditsTableId: UUID - meterCreditsTableName: String - meterSourcesTableId: UUID - meterSourcesTableName: String - meterDefaultsTableId: UUID - meterDefaultsTableName: String - recordUsageFunction: String + publicSchemaName: String + privateSchemaName: String + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int + scope: String prefix: String + entityTableId: UUID + actorTableId: UUID + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String apiName: String privateApiName: String } -"""The output of our update `BillingProviderModule` mutation.""" -type UpdateBillingProviderModulePayload { +"""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 `BillingProviderModule` that was updated by this mutation.""" - billingProviderModule: BillingProviderModule + """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 `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge + """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 `updateBillingProviderModule` mutation.""" -input UpdateBillingProviderModuleInput { +"""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. @@ -19811,35 +20538,36 @@ input UpdateBillingProviderModuleInput { id: UUID! """ - An object where the defined keys will be set on the `BillingProviderModule` being updated. + An object where the defined keys will be set on the `NotificationsModule` being updated. """ - billingProviderModulePatch: BillingProviderModulePatch! + notificationsModulePatch: NotificationsModulePatch! } """ -Represents an update to a `BillingProviderModule`. Fields that are set will be updated. +Represents an update to a `NotificationsModule`. Fields that are set will be updated. """ -input BillingProviderModulePatch { +input NotificationsModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - provider: String - productsTableId: UUID - pricesTableId: UUID - subscriptionsTableId: UUID - billingCustomersTableId: UUID - billingCustomersTableName: String - billingProductsTableId: UUID - billingProductsTableName: String - billingPricesTableId: UUID - billingPricesTableName: String - billingSubscriptionsTableId: UUID - billingSubscriptionsTableName: String - billingWebhookEventsTableId: UUID - billingWebhookEventsTableName: String - processBillingEventFunction: String - prefix: String + publicSchemaName: String + privateSchemaName: String + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + suppressionsTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean + defaultPermissions: [String] apiName: String privateApiName: String } @@ -19890,6 +20618,8 @@ input ProfilesModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID tableName: String profilePermissionsTableId: UUID @@ -19910,31 +20640,31 @@ input ProfilesModulePatch { privateApiName: String } -"""The output of our update `PermissionsModule` mutation.""" -type UpdatePermissionsModulePayload { +"""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 `PermissionsModule` that was updated by this mutation.""" - permissionsModule: PermissionsModule + """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 `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """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 `updatePermissionsModule` mutation.""" -input UpdatePermissionsModuleInput { +"""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. @@ -19943,32 +20673,38 @@ input UpdatePermissionsModuleInput { id: UUID! """ - An object where the defined keys will be set on the `PermissionsModule` being updated. + An object where the defined keys will be set on the `BillingModule` being updated. """ - permissionsModulePatch: PermissionsModulePatch! + billingModulePatch: BillingModulePatch! } """ -Represents an update to a `PermissionsModule`. Fields that are set will be updated. +Represents an update to a `BillingModule`. Fields that are set will be updated. """ -input PermissionsModulePatch { +input BillingModulePatch { id: UUID databaseId: UUID schemaId: UUID privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - scope: String + publicSchemaName: String + privateSchemaName: String + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + meterCreditsTableId: UUID + meterCreditsTableName: String + meterSourcesTableId: UUID + meterSourcesTableName: String + meterDefaultsTableId: UUID + meterDefaultsTableName: String + recordUsageFunction: String prefix: String - entityTableId: UUID - actorTableId: UUID - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String + defaultPermissions: [String] apiName: String privateApiName: String } @@ -20300,90 +21036,20 @@ input BlueprintTemplatePatch { forkedFromId: UUID """ - UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. - """ - definitionHash: UUID - - """ - JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. - """ - tableHashes: JSON - - """Timestamp when this template was created.""" - createdAt: Datetime - - """Timestamp when this template was last modified.""" - updatedAt: Datetime -} - -"""The output of our update `FunctionModule` mutation.""" -type UpdateFunctionModulePayload { - """ - The 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 `FunctionModule` that was updated by this mutation.""" - functionModule: FunctionModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge -} - -"""All input for the `updateFunctionModule` mutation.""" -input UpdateFunctionModuleInput { - """ - 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 `FunctionModule` being updated. - """ - functionModulePatch: FunctionModulePatch! -} - -""" -Represents an update to a `FunctionModule`. Fields that are set will be updated. -""" -input FunctionModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - publicSchemaName: String - privateSchemaName: String - definitionsTableId: UUID - invocationsTableId: UUID - executionLogsTableId: UUID - secretDefinitionsTableId: UUID - requirementsTableId: UUID - configDefinitionsTableId: UUID - configRequirementsTableId: UUID - definitionsTableName: String - invocationsTableName: String - executionLogsTableName: String - secretDefinitionsTableName: String - requirementsTableName: String - configRequirementsTableName: String - apiName: String - privateApiName: String - scope: String - prefix: String - entityTableId: UUID - policies: JSON - provisions: JSON + UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. + """ + definitionHash: UUID + + """ + JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. + """ + tableHashes: JSON + + """Timestamp when this template was created.""" + createdAt: Datetime + + """Timestamp when this template was last modified.""" + updatedAt: Datetime } """The output of our update `UserAuthModule` mutation.""" @@ -20504,6 +21170,8 @@ input AgentModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String threadTableId: UUID messageTableId: UUID taskTableId: UUID @@ -20523,6 +21191,7 @@ input AgentModulePatch { hasPlans: Boolean hasResources: Boolean hasAgents: Boolean + shared: Boolean apiName: String privateApiName: String scope: String @@ -20531,6 +21200,7 @@ input AgentModulePatch { policies: JSON resources: JSON provisions: JSON + defaultPermissions: [String] } """The output of our update `LimitsModule` mutation.""" @@ -20579,6 +21249,8 @@ input LimitsModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String tableId: UUID tableName: String defaultTableId: UUID @@ -20657,6 +21329,8 @@ input MembershipsModulePatch { databaseId: UUID schemaId: UUID privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String membershipsTableId: UUID membershipsTableName: String membersTableId: UUID @@ -20688,171 +21362,8 @@ input MembershipsModulePatch { entityIdsByPerm: String entityIdsFunction: String memberProfilesTableId: UUID - apiName: String - privateApiName: String -} - -"""The output of our update `StorageModule` mutation.""" -type UpdateStorageModulePayload { - """ - The 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 `StorageModule` that was updated by this mutation.""" - storageModule: StorageModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge -} - -"""All input for the `updateStorageModule` mutation.""" -input UpdateStorageModuleInput { - """ - 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 `StorageModule` being updated. - """ - storageModulePatch: StorageModulePatch! -} - -""" -Represents an update to a `StorageModule`. Fields that are set will be updated. -""" -input StorageModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - bucketsTableId: UUID - filesTableId: UUID - bucketsTableName: String - filesTableName: String - scope: String - prefix: String - policies: JSON - provisions: JSON - entityTableId: UUID - endpoint: String - publicUrlPrefix: String - provider: String - allowedOrigins: [String] - restrictReads: Boolean - hasPathShares: Boolean - pathSharesTableId: UUID - uploadUrlExpirySeconds: Int - downloadUrlExpirySeconds: Int - defaultMaxFileSize: BigInt - maxFilenameLength: Int - cacheTtlSeconds: Int - maxBulkFiles: Int - maxBulkTotalSize: BigInt - hasVersioning: Boolean - hasContentHash: Boolean - hasCustomKeys: Boolean - hasAuditLog: Boolean - hasConfirmUpload: Boolean - confirmUploadDelay: IntervalInput - fileEventsTableId: UUID - apiName: String - privateApiName: String -} - -"""The output of our update `EventsModule` mutation.""" -type UpdateEventsModulePayload { - """ - The 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 `EventsModule` that was updated by this mutation.""" - eventsModule: EventsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge -} - -"""All input for the `updateEventsModule` mutation.""" -input UpdateEventsModuleInput { - """ - 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 `EventsModule` being updated. - """ - eventsModulePatch: EventsModulePatch! -} - -""" -Represents an update to a `EventsModule`. Fields that are set will be updated. -""" -input EventsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - eventsTableId: UUID - eventsTableName: String - eventAggregatesTableId: UUID - eventAggregatesTableName: String - eventTypesTableId: UUID - eventTypesTableName: String - levelsTableId: UUID - levelsTableName: String - levelRequirementsTableId: UUID - levelRequirementsTableName: String - levelGrantsTableId: UUID - levelGrantsTableName: String - achievementRewardsTableId: UUID - achievementRewardsTableName: String - recordEvent: String - removeEvent: String - tgEvent: String - tgEventToggle: String - tgEventToggleBool: String - tgEventBool: String - upsertAggregate: String - tgUpdateAggregates: String - pruneEvents: String - stepsRequired: String - levelAchieved: String - tgCheckAchievements: String - grantAchievement: String - tgAchievementReward: String - interval: String - retention: String - premake: Int - scope: String - prefix: String - entityTableId: UUID - actorTableId: UUID + permissionDefaultPermissionsTableId: UUID + permissionDefaultGrantsTableId: UUID apiName: String privateApiName: String } @@ -21153,45 +21664,214 @@ input EntityTypeProvisionPatch { outBucketsTableId: UUID """ - Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. + """ + outFilesTableId: UUID + outPathSharesTableId: UUID + + """ + Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + (i.e. the invites_module row was created in a previous run). + """ + outInvitesModuleId: UUID + + """ + Output: the UUID of the namespace_module row created (or found) for this entity type. + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceModuleId: UUID + + """ + Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespacesTableId: UUID + + """ + Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + """ + outNamespaceEventsTableId: UUID + outFunctionModuleId: UUID + outDefinitionsTableId: UUID + outInvocationsTableId: UUID + outExecutionLogsTableId: UUID + outSecretDefinitionsTableId: UUID + outGraphModuleId: UUID + outGraphsTableId: UUID + outAgentModuleId: UUID +} + +"""The output of our update `StorageModule` mutation.""" +type UpdateStorageModulePayload { + """ + The 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 `StorageModule` that was updated by this mutation.""" + storageModule: StorageModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge +} + +"""All input for the `updateStorageModule` mutation.""" +input UpdateStorageModuleInput { + """ + 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 `StorageModule` being updated. """ - outFilesTableId: UUID - outPathSharesTableId: UUID + storageModulePatch: StorageModulePatch! +} + +""" +Represents an update to a `StorageModule`. Fields that are set will be updated. +""" +input StorageModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + bucketsTableId: UUID + filesTableId: UUID + bucketsTableName: String + filesTableName: String + scope: String + prefix: String + policies: JSON + provisions: JSON + entityTableId: UUID + endpoint: String + publicUrlPrefix: String + provider: String + allowedOrigins: [String] + restrictReads: Boolean + hasPathShares: Boolean + pathSharesTableId: UUID + uploadUrlExpirySeconds: Int + downloadUrlExpirySeconds: Int + defaultMaxFileSize: BigInt + maxFilenameLength: Int + cacheTtlSeconds: Int + maxBulkFiles: Int + maxBulkTotalSize: BigInt + hasVersioning: Boolean + hasContentHash: Boolean + hasCustomKeys: Boolean + hasAuditLog: Boolean + hasConfirmUpload: Boolean + confirmUploadDelay: IntervalInput + fileEventsTableId: UUID + defaultPermissions: [String] + apiName: String + privateApiName: String +} +"""The output of our update `EventsModule` mutation.""" +type UpdateEventsModulePayload { """ - Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. - NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING - (i.e. the invites_module row was created in a previous run). + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - outInvitesModuleId: UUID + clientMutationId: String + + """The `EventsModule` that was updated by this mutation.""" + eventsModule: EventsModule """ - Output: the UUID of the namespace_module row created (or found) for this entity type. - Populated by the trigger when namespaces is non-NULL. NULL otherwise. + Our root query field type. Allows us to run any query from our mutation payload. """ - outNamespaceModuleId: UUID + query: Query + + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge +} +"""All input for the `updateEventsModule` mutation.""" +input UpdateEventsModuleInput { """ - Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). - Populated by the trigger when namespaces is non-NULL. NULL otherwise. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - outNamespacesTableId: UUID + clientMutationId: String + id: UUID! """ - Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). - Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + An object where the defined keys will be set on the `EventsModule` being updated. """ - outNamespaceEventsTableId: UUID - outFunctionModuleId: UUID - outDefinitionsTableId: UUID - outInvocationsTableId: UUID - outExecutionLogsTableId: UUID - outSecretDefinitionsTableId: UUID - outRequirementsTableId: UUID - outConfigRequirementsTableId: UUID - outGraphModuleId: UUID - outGraphsTableId: UUID - outAgentModuleId: UUID + eventsModulePatch: EventsModulePatch! +} + +""" +Represents an update to a `EventsModule`. Fields that are set will be updated. +""" +input EventsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + publicSchemaName: String + privateSchemaName: String + eventsTableId: UUID + eventsTableName: String + eventAggregatesTableId: UUID + eventAggregatesTableName: String + eventTypesTableId: UUID + eventTypesTableName: String + levelsTableId: UUID + levelsTableName: String + levelRequirementsTableId: UUID + levelRequirementsTableName: String + levelGrantsTableId: UUID + levelGrantsTableName: String + achievementRewardsTableId: UUID + achievementRewardsTableName: String + recordEvent: String + removeEvent: String + tgEvent: String + tgEventToggle: String + tgEventToggleBool: String + tgEventBool: String + upsertAggregate: String + tgUpdateAggregates: String + pruneEvents: String + stepsRequired: String + levelAchieved: String + tgCheckAchievements: String + grantAchievement: String + tgAchievementReward: String + interval: String + retention: String + premake: Int + scope: String + prefix: String + entityTableId: UUID + actorTableId: UUID + defaultPermissions: [String] + apiName: String + privateApiName: String } """The output of our delete `DefaultIdsModule` mutation.""" @@ -21755,31 +22435,31 @@ input DeleteCryptoAddressesModuleInput { id: UUID! } -"""The output of our delete `IdentityProvidersModule` mutation.""" -type DeleteIdentityProvidersModulePayload { +"""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 `IdentityProvidersModule` that was deleted by this mutation.""" - identityProvidersModule: IdentityProvidersModule + """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 `IdentityProvidersModule`. May be used by Relay 1.""" - identityProvidersModuleEdge( - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleEdge + """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 `deleteIdentityProvidersModule` mutation.""" -input DeleteIdentityProvidersModuleInput { +"""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. @@ -21788,31 +22468,31 @@ input DeleteIdentityProvidersModuleInput { id: UUID! } -"""The output of our delete `DenormalizedTableField` mutation.""" -type DeleteDenormalizedTableFieldPayload { +"""The output of our delete `IdentityProvidersModule` mutation.""" +type DeleteIdentityProvidersModulePayload { """ The 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 + """The `IdentityProvidersModule` that was deleted by this mutation.""" + identityProvidersModule: IdentityProvidersModule """ 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 + """An edge for our `IdentityProvidersModule`. May be used by Relay 1.""" + identityProvidersModuleEdge( + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleEdge } -"""All input for the `deleteDenormalizedTableField` mutation.""" -input DeleteDenormalizedTableFieldInput { +"""All input for the `deleteIdentityProvidersModule` mutation.""" +input DeleteIdentityProvidersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21905,15 +22585,83 @@ type DeleteCryptoAuthModulePayload { """ query: Query - """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" - cryptoAuthModuleEdge( - """The method to use when ordering `CryptoAuthModule`.""" - orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAuthModuleEdge + """An edge for our `CryptoAuthModule`. May be used by Relay 1.""" + cryptoAuthModuleEdge( + """The method to use when ordering `CryptoAuthModule`.""" + orderBy: [CryptoAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAuthModuleEdge +} + +"""All input for the `deleteCryptoAuthModule` mutation.""" +input DeleteCryptoAuthModuleInput { + """ + 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 `BlueprintConstruction` mutation.""" +type DeleteBlueprintConstructionPayload { + """ + The 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 `BlueprintConstruction` that was deleted by this mutation.""" + blueprintConstruction: BlueprintConstruction + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" + blueprintConstructionEdge( + """The method to use when ordering `BlueprintConstruction`.""" + orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] + ): BlueprintConstructionEdge +} + +"""All input for the `deleteBlueprintConstruction` mutation.""" +input DeleteBlueprintConstructionInput { + """ + 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 construction attempt.""" + id: UUID! +} + +"""The output of our delete `SessionsModule` mutation.""" +type DeleteSessionsModulePayload { + """ + The 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 `SessionsModule` that was deleted by this mutation.""" + sessionsModule: SessionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SessionsModule`. May be used by Relay 1.""" + sessionsModuleEdge( + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SessionsModuleEdge } -"""All input for the `deleteCryptoAuthModule` mutation.""" -input DeleteCryptoAuthModuleInput { +"""All input for the `deleteSessionsModule` mutation.""" +input DeleteSessionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -21922,99 +22670,99 @@ input DeleteCryptoAuthModuleInput { id: UUID! } -"""The output of our delete `RateLimitMetersModule` mutation.""" -type DeleteRateLimitMetersModulePayload { +"""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 `RateLimitMetersModule` that was deleted by this mutation.""" - rateLimitMetersModule: RateLimitMetersModule + """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 `RateLimitMetersModule`. May be used by Relay 1.""" - rateLimitMetersModuleEdge( - """The method to use when ordering `RateLimitMetersModule`.""" - orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitMetersModuleEdge + """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 `deleteRateLimitMetersModule` mutation.""" -input DeleteRateLimitMetersModuleInput { +"""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 `BlueprintConstruction` mutation.""" -type DeleteBlueprintConstructionPayload { +"""The output of our delete `MerkleStoreModule` mutation.""" +type DeleteMerkleStoreModulePayload { """ The 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 `BlueprintConstruction` that was deleted by this mutation.""" - blueprintConstruction: BlueprintConstruction + """The `MerkleStoreModule` that was deleted by this mutation.""" + merkleStoreModule: MerkleStoreModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `BlueprintConstruction`. May be used by Relay 1.""" - blueprintConstructionEdge( - """The method to use when ordering `BlueprintConstruction`.""" - orderBy: [BlueprintConstructionOrderBy!]! = [PRIMARY_KEY_ASC] - ): BlueprintConstructionEdge + """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" + merkleStoreModuleEdge( + """The method to use when ordering `MerkleStoreModule`.""" + orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): MerkleStoreModuleEdge } -"""All input for the `deleteBlueprintConstruction` mutation.""" -input DeleteBlueprintConstructionInput { +"""All input for the `deleteMerkleStoreModule` mutation.""" +input DeleteMerkleStoreModuleInput { """ 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 construction attempt.""" id: UUID! } -"""The output of our delete `SessionsModule` mutation.""" -type DeleteSessionsModulePayload { +"""The output of our delete `DatabaseProvisionModule` mutation.""" +type DeleteDatabaseProvisionModulePayload { """ The 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 `SessionsModule` that was deleted by this mutation.""" - sessionsModule: SessionsModule + """The `DatabaseProvisionModule` that was deleted by this mutation.""" + databaseProvisionModule: DatabaseProvisionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SessionsModule`. May be used by Relay 1.""" - sessionsModuleEdge( - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SessionsModuleEdge + """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" + databaseProvisionModuleEdge( + """The method to use when ordering `DatabaseProvisionModule`.""" + orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseProvisionModuleEdge } -"""All input for the `deleteSessionsModule` mutation.""" -input DeleteSessionsModuleInput { +"""All input for the `deleteDatabaseProvisionModule` mutation.""" +input DeleteDatabaseProvisionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22056,31 +22804,31 @@ input DeleteConfigSecretsModuleInput { id: UUID! } -"""The output of our delete `MerkleStoreModule` mutation.""" -type DeleteMerkleStoreModulePayload { +"""The output of our delete `RateLimitMetersModule` mutation.""" +type DeleteRateLimitMetersModulePayload { """ The 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 `MerkleStoreModule` that was deleted by this mutation.""" - merkleStoreModule: MerkleStoreModule + """The `RateLimitMetersModule` that was deleted by this mutation.""" + rateLimitMetersModule: RateLimitMetersModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MerkleStoreModule`. May be used by Relay 1.""" - merkleStoreModuleEdge( - """The method to use when ordering `MerkleStoreModule`.""" - orderBy: [MerkleStoreModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): MerkleStoreModuleEdge + """An edge for our `RateLimitMetersModule`. May be used by Relay 1.""" + rateLimitMetersModuleEdge( + """The method to use when ordering `RateLimitMetersModule`.""" + orderBy: [RateLimitMetersModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitMetersModuleEdge } -"""All input for the `deleteMerkleStoreModule` mutation.""" -input DeleteMerkleStoreModuleInput { +"""All input for the `deleteRateLimitMetersModule` mutation.""" +input DeleteRateLimitMetersModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22089,66 +22837,64 @@ input DeleteMerkleStoreModuleInput { id: UUID! } -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { +"""The output of our delete `RealtimeModule` mutation.""" +type DeleteRealtimeModulePayload { """ The 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 `RealtimeModule` that was deleted by this mutation.""" + realtimeModule: RealtimeModule """ 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 `RealtimeModule`. May be used by Relay 1.""" + realtimeModuleEdge( + """The method to use when ordering `RealtimeModule`.""" + orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RealtimeModuleEdge } -"""All input for the `deleteSecureTableProvision` mutation.""" -input DeleteSecureTableProvisionInput { +"""All input for the `deleteRealtimeModule` mutation.""" +input DeleteRealtimeModuleInput { """ 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 `InvitesModule` mutation.""" -type DeleteInvitesModulePayload { +"""The output of our delete `WebauthnAuthModule` mutation.""" +type DeleteWebauthnAuthModulePayload { """ The 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 `InvitesModule` that was deleted by this mutation.""" - invitesModule: InvitesModule + """The `WebauthnAuthModule` that was deleted by this mutation.""" + webauthnAuthModule: WebauthnAuthModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `InvitesModule`. May be used by Relay 1.""" - invitesModuleEdge( - """The method to use when ordering `InvitesModule`.""" - orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): InvitesModuleEdge + """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" + webauthnAuthModuleEdge( + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleEdge } -"""All input for the `deleteInvitesModule` mutation.""" -input DeleteInvitesModuleInput { +"""All input for the `deleteWebauthnAuthModule` mutation.""" +input DeleteWebauthnAuthModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22157,31 +22903,31 @@ input DeleteInvitesModuleInput { id: UUID! } -"""The output of our delete `DatabaseProvisionModule` mutation.""" -type DeleteDatabaseProvisionModulePayload { +"""The output of our delete `FunctionInvocationModule` mutation.""" +type DeleteFunctionInvocationModulePayload { """ The 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 `DatabaseProvisionModule` that was deleted by this mutation.""" - databaseProvisionModule: DatabaseProvisionModule + """The `FunctionInvocationModule` that was deleted by this mutation.""" + functionInvocationModule: FunctionInvocationModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseProvisionModule`. May be used by Relay 1.""" - databaseProvisionModuleEdge( - """The method to use when ordering `DatabaseProvisionModule`.""" - orderBy: [DatabaseProvisionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseProvisionModuleEdge + """An edge for our `FunctionInvocationModule`. May be used by Relay 1.""" + functionInvocationModuleEdge( + """The method to use when ordering `FunctionInvocationModule`.""" + orderBy: [FunctionInvocationModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionInvocationModuleEdge } -"""All input for the `deleteDatabaseProvisionModule` mutation.""" -input DeleteDatabaseProvisionModuleInput { +"""All input for the `deleteFunctionInvocationModule` mutation.""" +input DeleteFunctionInvocationModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22190,31 +22936,31 @@ input DeleteDatabaseProvisionModuleInput { id: UUID! } -"""The output of our delete `NamespaceModule` mutation.""" -type DeleteNamespaceModulePayload { +"""The output of our delete `FunctionModule` mutation.""" +type DeleteFunctionModulePayload { """ The 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 `NamespaceModule` that was deleted by this mutation.""" - namespaceModule: NamespaceModule + """The `FunctionModule` that was deleted by this mutation.""" + functionModule: FunctionModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `NamespaceModule`. May be used by Relay 1.""" - namespaceModuleEdge( - """The method to use when ordering `NamespaceModule`.""" - orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NamespaceModuleEdge + """An edge for our `FunctionModule`. May be used by Relay 1.""" + functionModuleEdge( + """The method to use when ordering `FunctionModule`.""" + orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): FunctionModuleEdge } -"""All input for the `deleteNamespaceModule` mutation.""" -input DeleteNamespaceModuleInput { +"""All input for the `deleteFunctionModule` mutation.""" +input DeleteFunctionModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22223,31 +22969,31 @@ input DeleteNamespaceModuleInput { id: UUID! } -"""The output of our delete `RealtimeModule` mutation.""" -type DeleteRealtimeModulePayload { +"""The output of our delete `InvitesModule` mutation.""" +type DeleteInvitesModulePayload { """ The 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 `RealtimeModule` that was deleted by this mutation.""" - realtimeModule: RealtimeModule + """The `InvitesModule` that was deleted by this mutation.""" + invitesModule: InvitesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RealtimeModule`. May be used by Relay 1.""" - realtimeModuleEdge( - """The method to use when ordering `RealtimeModule`.""" - orderBy: [RealtimeModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RealtimeModuleEdge + """An edge for our `InvitesModule`. May be used by Relay 1.""" + invitesModuleEdge( + """The method to use when ordering `InvitesModule`.""" + orderBy: [InvitesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): InvitesModuleEdge } -"""All input for the `deleteRealtimeModule` mutation.""" -input DeleteRealtimeModuleInput { +"""All input for the `deleteInvitesModule` mutation.""" +input DeleteInvitesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22256,31 +23002,31 @@ input DeleteRealtimeModuleInput { id: UUID! } -"""The output of our delete `WebauthnAuthModule` mutation.""" -type DeleteWebauthnAuthModulePayload { +"""The output of our delete `NamespaceModule` mutation.""" +type DeleteNamespaceModulePayload { """ The 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 `WebauthnAuthModule` that was deleted by this mutation.""" - webauthnAuthModule: WebauthnAuthModule + """The `NamespaceModule` that was deleted by this mutation.""" + namespaceModule: NamespaceModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnAuthModule`. May be used by Relay 1.""" - webauthnAuthModuleEdge( - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleEdge + """An edge for our `NamespaceModule`. May be used by Relay 1.""" + namespaceModuleEdge( + """The method to use when ordering `NamespaceModule`.""" + orderBy: [NamespaceModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NamespaceModuleEdge } -"""All input for the `deleteWebauthnAuthModule` mutation.""" -input DeleteWebauthnAuthModuleInput { +"""All input for the `deleteNamespaceModule` mutation.""" +input DeleteNamespaceModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22289,31 +23035,31 @@ input DeleteWebauthnAuthModuleInput { id: UUID! } -"""The output of our delete `GraphModule` mutation.""" -type DeleteGraphModulePayload { +"""The output of our delete `ComputeLogModule` mutation.""" +type DeleteComputeLogModulePayload { """ The 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 `GraphModule` that was deleted by this mutation.""" - graphModule: GraphModule + """The `ComputeLogModule` that was deleted by this mutation.""" + computeLogModule: ComputeLogModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `GraphModule`. May be used by Relay 1.""" - graphModuleEdge( - """The method to use when ordering `GraphModule`.""" - orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): GraphModuleEdge + """An edge for our `ComputeLogModule`. May be used by Relay 1.""" + computeLogModuleEdge( + """The method to use when ordering `ComputeLogModule`.""" + orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ComputeLogModuleEdge } -"""All input for the `deleteGraphModule` mutation.""" -input DeleteGraphModuleInput { +"""All input for the `deleteComputeLogModule` mutation.""" +input DeleteComputeLogModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22321,32 +23067,32 @@ input DeleteGraphModuleInput { clientMutationId: String id: UUID! } - -"""The output of our delete `ComputeLogModule` mutation.""" -type DeleteComputeLogModulePayload { + +"""The output of our delete `GraphModule` mutation.""" +type DeleteGraphModulePayload { """ The 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 `ComputeLogModule` that was deleted by this mutation.""" - computeLogModule: ComputeLogModule + """The `GraphModule` that was deleted by this mutation.""" + graphModule: GraphModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ComputeLogModule`. May be used by Relay 1.""" - computeLogModuleEdge( - """The method to use when ordering `ComputeLogModule`.""" - orderBy: [ComputeLogModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ComputeLogModuleEdge + """An edge for our `GraphModule`. May be used by Relay 1.""" + graphModuleEdge( + """The method to use when ordering `GraphModule`.""" + orderBy: [GraphModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): GraphModuleEdge } -"""All input for the `deleteComputeLogModule` mutation.""" -input DeleteComputeLogModuleInput { +"""All input for the `deleteGraphModule` mutation.""" +input DeleteGraphModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22454,31 +23200,31 @@ input DeleteTransferLogModuleInput { id: UUID! } -"""The output of our delete `DbUsageModule` mutation.""" -type DeleteDbUsageModulePayload { +"""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 `DbUsageModule` that was deleted by this mutation.""" - dbUsageModule: DbUsageModule + """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 `DbUsageModule`. May be used by Relay 1.""" - dbUsageModuleEdge( - """The method to use when ordering `DbUsageModule`.""" - orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): DbUsageModuleEdge + """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 `deleteDbUsageModule` mutation.""" -input DeleteDbUsageModuleInput { +"""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. @@ -22487,31 +23233,31 @@ input DeleteDbUsageModuleInput { id: UUID! } -"""The output of our delete `NotificationsModule` mutation.""" -type DeleteNotificationsModulePayload { +"""The output of our delete `BillingProviderModule` mutation.""" +type DeleteBillingProviderModulePayload { """ The 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 deleted by this mutation.""" - notificationsModule: NotificationsModule + """The `BillingProviderModule` that was deleted by this mutation.""" + billingProviderModule: BillingProviderModule """ 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 + """An edge for our `BillingProviderModule`. May be used by Relay 1.""" + billingProviderModuleEdge( + """The method to use when ordering `BillingProviderModule`.""" + orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingProviderModuleEdge } -"""All input for the `deleteNotificationsModule` mutation.""" -input DeleteNotificationsModuleInput { +"""All input for the `deleteBillingProviderModule` mutation.""" +input DeleteBillingProviderModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22520,31 +23266,31 @@ input DeleteNotificationsModuleInput { id: UUID! } -"""The output of our delete `PlansModule` mutation.""" -type DeletePlansModulePayload { +"""The output of our delete `DbUsageModule` mutation.""" +type DeleteDbUsageModulePayload { """ The 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 + """The `DbUsageModule` that was deleted by this mutation.""" + dbUsageModule: DbUsageModule """ 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 + """An edge for our `DbUsageModule`. May be used by Relay 1.""" + dbUsageModuleEdge( + """The method to use when ordering `DbUsageModule`.""" + orderBy: [DbUsageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): DbUsageModuleEdge } -"""All input for the `deletePlansModule` mutation.""" -input DeletePlansModuleInput { +"""All input for the `deleteDbUsageModule` mutation.""" +input DeleteDbUsageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22586,31 +23332,31 @@ input DeleteHierarchyModuleInput { id: UUID! } -"""The output of our delete `BillingModule` mutation.""" -type DeleteBillingModulePayload { +"""The output of our delete `PermissionsModule` mutation.""" +type DeletePermissionsModulePayload { """ The 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 deleted by this mutation.""" - billingModule: BillingModule + """The `PermissionsModule` that was deleted 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 `BillingModule`. May be used by Relay 1.""" - billingModuleEdge( - """The method to use when ordering `BillingModule`.""" - orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingModuleEdge + """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 `deleteBillingModule` mutation.""" -input DeleteBillingModuleInput { +"""All input for the `deletePermissionsModule` mutation.""" +input DeletePermissionsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22619,31 +23365,31 @@ input DeleteBillingModuleInput { id: UUID! } -"""The output of our delete `BillingProviderModule` mutation.""" -type DeleteBillingProviderModulePayload { +"""The output of our delete `NotificationsModule` mutation.""" +type DeleteNotificationsModulePayload { """ The 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 `BillingProviderModule` that was deleted by this mutation.""" - billingProviderModule: BillingProviderModule + """The `NotificationsModule` that was deleted 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 `BillingProviderModule`. May be used by Relay 1.""" - billingProviderModuleEdge( - """The method to use when ordering `BillingProviderModule`.""" - orderBy: [BillingProviderModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): BillingProviderModuleEdge + """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 `deleteBillingProviderModule` mutation.""" -input DeleteBillingProviderModuleInput { +"""All input for the `deleteNotificationsModule` mutation.""" +input DeleteNotificationsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -22685,31 +23431,31 @@ input DeleteProfilesModuleInput { id: UUID! } -"""The output of our delete `PermissionsModule` mutation.""" -type DeletePermissionsModulePayload { +"""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 `PermissionsModule` that was deleted by this mutation.""" - permissionsModule: PermissionsModule + """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 `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge + """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 `deletePermissionsModule` mutation.""" -input DeletePermissionsModuleInput { +"""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. @@ -22788,39 +23534,6 @@ input DeleteBlueprintTemplateInput { id: UUID! } -"""The output of our delete `FunctionModule` mutation.""" -type DeleteFunctionModulePayload { - """ - The 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 `FunctionModule` that was deleted by this mutation.""" - functionModule: FunctionModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `FunctionModule`. May be used by Relay 1.""" - functionModuleEdge( - """The method to use when ordering `FunctionModule`.""" - orderBy: [FunctionModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): FunctionModuleEdge -} - -"""All input for the `deleteFunctionModule` mutation.""" -input DeleteFunctionModuleInput { - """ - 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 `UserAuthModule` mutation.""" type DeleteUserAuthModulePayload { """ @@ -22953,64 +23666,66 @@ input DeleteMembershipsModuleInput { id: UUID! } -"""The output of our delete `StorageModule` mutation.""" -type DeleteStorageModulePayload { +"""The output of our delete `EntityTypeProvision` mutation.""" +type DeleteEntityTypeProvisionPayload { """ The 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 `StorageModule` that was deleted by this mutation.""" - storageModule: StorageModule + """The `EntityTypeProvision` that was deleted by this mutation.""" + entityTypeProvision: EntityTypeProvision """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `StorageModule`. May be used by Relay 1.""" - storageModuleEdge( - """The method to use when ordering `StorageModule`.""" - orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): StorageModuleEdge + """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" + entityTypeProvisionEdge( + """The method to use when ordering `EntityTypeProvision`.""" + orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): EntityTypeProvisionEdge } -"""All input for the `deleteStorageModule` mutation.""" -input DeleteStorageModuleInput { +"""All input for the `deleteEntityTypeProvision` mutation.""" +input DeleteEntityTypeProvisionInput { """ 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 `EventsModule` mutation.""" -type DeleteEventsModulePayload { +"""The output of our delete `StorageModule` mutation.""" +type DeleteStorageModulePayload { """ The 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 `EventsModule` that was deleted by this mutation.""" - eventsModule: EventsModule + """The `StorageModule` that was deleted by this mutation.""" + storageModule: StorageModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EventsModule`. May be used by Relay 1.""" - eventsModuleEdge( - """The method to use when ordering `EventsModule`.""" - orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): EventsModuleEdge + """An edge for our `StorageModule`. May be used by Relay 1.""" + storageModuleEdge( + """The method to use when ordering `StorageModule`.""" + orderBy: [StorageModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): StorageModuleEdge } -"""All input for the `deleteEventsModule` mutation.""" -input DeleteEventsModuleInput { +"""All input for the `deleteStorageModule` mutation.""" +input DeleteStorageModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -23019,38 +23734,36 @@ input DeleteEventsModuleInput { id: UUID! } -"""The output of our delete `EntityTypeProvision` mutation.""" -type DeleteEntityTypeProvisionPayload { +"""The output of our delete `EventsModule` mutation.""" +type DeleteEventsModulePayload { """ The 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 `EntityTypeProvision` that was deleted by this mutation.""" - entityTypeProvision: EntityTypeProvision + """The `EventsModule` that was deleted by this mutation.""" + eventsModule: EventsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EntityTypeProvision`. May be used by Relay 1.""" - entityTypeProvisionEdge( - """The method to use when ordering `EntityTypeProvision`.""" - orderBy: [EntityTypeProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): EntityTypeProvisionEdge + """An edge for our `EventsModule`. May be used by Relay 1.""" + eventsModuleEdge( + """The method to use when ordering `EventsModule`.""" + orderBy: [EventsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): EventsModuleEdge } -"""All input for the `deleteEntityTypeProvision` mutation.""" -input DeleteEntityTypeProvisionInput { +"""All input for the `deleteEventsModule` mutation.""" +input DeleteEventsModuleInput { """ 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! } diff --git a/sdk/constructive-sdk/src/.targets b/sdk/constructive-sdk/src/.targets new file mode 100644 index 0000000000..bf4de0b16a --- /dev/null +++ b/sdk/constructive-sdk/src/.targets @@ -0,0 +1 @@ +["admin","agent","api","auth","modules","objects","usage"] diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 75533e2d20..c9e7aa3cfd 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 26 +- **Tables:** 30 - **Custom queries:** 9 - **Custom mutations:** 3 diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index 027e84fff8..12c2f3924a 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -24,10 +24,14 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | +| `appPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultPermission` | findMany, findOne, create, update, delete | +| `orgPermissionDefaultGrant` | findMany, findOne, create, update, delete | | `orgMember` | findMany, findOne, create, update, delete | | `appPermissionDefault` | findMany, findOne, create, update, delete | | `orgPermissionDefault` | findMany, findOne, create, update, delete | +| `appPermissionDefaultPermission` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | | `orgAdminGrant` | findMany, findOne, create, update, delete | @@ -43,9 +47,9 @@ const db = createClient({ | `orgChartEdge` | findMany, findOne, create, update, delete | | `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | -| `appInvite` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | +| `appInvite` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | ## Table Operations @@ -143,6 +147,40 @@ const updated = await db.appPermission.update({ where: { id: '' }, data: { const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultGrant` + +CRUD operations for AppPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultGrant records +const items = await db.appPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgPermission` CRUD operations for OrgPermission records. @@ -176,6 +214,74 @@ const updated = await db.orgPermission.update({ where: { id: '' }, data: { const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` +### `db.orgPermissionDefaultPermission` + +CRUD operations for OrgPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultPermission records +const items = await db.orgPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultPermission.create({ data: { permissionId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgPermissionDefaultGrant` + +CRUD operations for OrgPermissionDefaultGrant records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `isGrant` | Boolean | Yes | +| `grantorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all orgPermissionDefaultGrant records +const items = await db.orgPermissionDefaultGrant.findMany({ select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.orgPermissionDefaultGrant.findOne({ id: '', select: { id: true, permissionId: true, isGrant: true, grantorId: true, entityId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.orgPermissionDefaultGrant.create({ data: { permissionId: '', isGrant: '', grantorId: '', entityId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgPermissionDefaultGrant.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgPermissionDefaultGrant.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMember` CRUD operations for OrgMember records. @@ -269,6 +375,38 @@ const updated = await db.orgPermissionDefault.update({ where: { id: '' }, const deleted = await db.orgPermissionDefault.delete({ where: { id: '' } }).execute(); ``` +### `db.appPermissionDefaultPermission` + +CRUD operations for AppPermissionDefaultPermission records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `permissionId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appPermissionDefaultPermission records +const items = await db.appPermissionDefaultPermission.findMany({ select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefaultPermission.findOne({ id: '', select: { id: true, permissionId: true, createdAt: true, updatedAt: true } }).execute(); + +// Create +const created = await db.appPermissionDefaultPermission.create({ data: { permissionId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefaultPermission.update({ where: { id: '' }, data: { permissionId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefaultPermission.delete({ where: { id: '' } }).execute(); +``` + ### `db.appAdminGrant` CRUD operations for AppAdminGrant records. @@ -810,47 +948,6 @@ const updated = await db.appMembership.update({ where: { id: '' }, data: { const deleted = await db.appMembership.delete({ where: { id: '' } }).execute(); ``` -### `db.appInvite` - -CRUD operations for AppInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `email` | ConstructiveInternalTypeEmail | Yes | -| `senderId` | UUID | Yes | -| `inviteToken` | String | Yes | -| `inviteValid` | Boolean | Yes | -| `inviteLimit` | Int | Yes | -| `inviteCount` | Int | Yes | -| `multiple` | Boolean | Yes | -| `data` | JSON | Yes | -| `profileId` | UUID | Yes | -| `expiresAt` | Datetime | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```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, 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, 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: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); -``` - ### `db.orgMembership` CRUD operations for OrgMembership records. @@ -936,6 +1033,49 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` +### `db.appInvite` + +CRUD operations for AppInvite records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `channel` | String | Yes | +| `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | +| `senderId` | UUID | Yes | +| `inviteToken` | String | Yes | +| `inviteValid` | Boolean | Yes | +| `inviteLimit` | Int | Yes | +| `inviteCount` | Int | Yes | +| `multiple` | Boolean | Yes | +| `data` | JSON | Yes | +| `profileId` | UUID | Yes | +| `expiresAt` | Datetime | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | + +**Operations:** + +```typescript +// List all appInvite records +const items = await db.appInvite.findMany({ select: { id: true, channel: true, email: true, phone: 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, channel: true, email: true, phone: 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: { channel: '', email: '', phone: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -945,7 +1085,9 @@ CRUD operations for OrgInvite records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `channel` | String | Yes | | `email` | ConstructiveInternalTypeEmail | Yes | +| `phone` | String | Yes | | `senderId` | UUID | Yes | | `receiverId` | UUID | Yes | | `inviteToken` | String | Yes | @@ -965,16 +1107,16 @@ 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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, profileId: true, isReadOnly: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, channel: true, email: true, phone: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, isReadOnly: 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: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { channel: '', email: '', phone: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', isReadOnly: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); +const updated = await db.orgInvite.update({ where: { id: '' }, data: { channel: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.orgInvite.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index 4fdc6e95eb..8edef10eaf 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -8,10 +8,14 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { AppPermissionModel } from './models/appPermission'; +import { AppPermissionDefaultGrantModel } from './models/appPermissionDefaultGrant'; import { OrgPermissionModel } from './models/orgPermission'; +import { OrgPermissionDefaultPermissionModel } from './models/orgPermissionDefaultPermission'; +import { OrgPermissionDefaultGrantModel } from './models/orgPermissionDefaultGrant'; import { OrgMemberModel } from './models/orgMember'; import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; +import { AppPermissionDefaultPermissionModel } from './models/appPermissionDefaultPermission'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; import { OrgAdminGrantModel } from './models/orgAdminGrant'; @@ -27,9 +31,9 @@ import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; -import { AppInviteModel } from './models/appInvite'; import { OrgMembershipModel } from './models/orgMembership'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; +import { AppInviteModel } from './models/appInvite'; import { OrgInviteModel } from './models/orgInvite'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; @@ -69,10 +73,14 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), appPermission: new AppPermissionModel(client), + appPermissionDefaultGrant: new AppPermissionDefaultGrantModel(client), orgPermission: new OrgPermissionModel(client), + orgPermissionDefaultPermission: new OrgPermissionDefaultPermissionModel(client), + orgPermissionDefaultGrant: new OrgPermissionDefaultGrantModel(client), orgMember: new OrgMemberModel(client), appPermissionDefault: new AppPermissionDefaultModel(client), orgPermissionDefault: new OrgPermissionDefaultModel(client), + appPermissionDefaultPermission: new AppPermissionDefaultPermissionModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), orgAdminGrant: new OrgAdminGrantModel(client), @@ -88,9 +96,9 @@ export function createClient(config: OrmClientConfig) { orgChartEdge: new OrgChartEdgeModel(client), orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), - appInvite: new AppInviteModel(client), orgMembership: new OrgMembershipModel(client), orgMemberProfile: new OrgMemberProfileModel(client), + appInvite: new AppInviteModel(client), orgInvite: new OrgInviteModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index c06ff000a6..21cb74af02 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -254,6 +254,17 @@ export interface AppPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface AppPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface OrgPermission { id: string; @@ -266,6 +277,29 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface OrgPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + /** Scopes this default permission to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} +/** Audit log of permission additions and removals from the defaults bitmask */ +export interface OrgPermissionDefaultGrant { + id: string; + /** References the permission being added to or removed from defaults */ + permissionId?: string | null; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean | null; + grantorId?: string | null; + /** Scopes this audit entry to a specific entity */ + entityId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Simplified view of active members in an entity, used for listing who belongs to an org or group */ export interface OrgMember { id: string; @@ -290,12 +324,20 @@ export interface OrgPermissionDefault { /** References the entity these default permissions apply to */ entityId?: string | null; } +/** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */ +export interface AppPermissionDefaultPermission { + id: string; + /** References the permission included in the defaults bundle */ + permissionId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; +} /** Records of admin role grants and revocations between members */ export interface AppAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -306,7 +348,7 @@ export interface AppOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -317,7 +359,7 @@ export interface OrgAdminGrant { id: string; /** True to grant admin, false to revoke admin */ isGrant?: boolean | null; - /** The member receiving or losing the admin grant */ + /** The member receiving or losing the admin grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this admin grant applies to */ entityId?: string | null; @@ -330,7 +372,7 @@ export interface OrgOwnerGrant { id: string; /** True to grant ownership, false to revoke ownership */ isGrant?: boolean | null; - /** The member receiving or losing the ownership grant */ + /** The member receiving or losing the ownership grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this ownership grant applies to */ entityId?: string | null; @@ -392,7 +434,7 @@ export interface AppGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; grantorId?: string | null; createdAt?: string | null; @@ -442,7 +484,7 @@ export interface OrgGrant { permissions?: string | null; /** True to grant the permissions, false to revoke them */ isGrant?: boolean | null; - /** The member receiving or losing the permission grant */ + /** The member receiving or losing the permission grant; NULL if user was deleted */ actorId?: string | null; /** The entity (org or group) this permission grant applies to */ entityId?: string | null; @@ -521,32 +563,6 @@ export interface AppMembership { actorId?: string | null; profileId?: string | null; } -/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ -export interface AppInvite { - id: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail | null; - /** User ID of the member who sent this invitation */ - senderId?: string | null; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string | null; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean | null; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number | null; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number | null; - /** Whether this invite can be claimed by multiple recipients */ - 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; -} /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface OrgMembership { id: string; @@ -603,10 +619,44 @@ export interface OrgMemberProfile { profilePicture?: ConstructiveInternalTypeImage | null; } /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ +export interface AppInvite { + id: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; + /** User ID of the member who sent this invitation */ + senderId?: string | null; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string | null; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean | null; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number | null; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number | null; + /** Whether this invite can be claimed by multiple recipients */ + 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; +} +/** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; - /** Email address of the invited recipient */ + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string | null; + /** Email address of the invited recipient (required when channel=email) */ email?: ConstructiveInternalTypeEmail | null; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string | null; /** User ID of the member who sent this invitation */ senderId?: string | null; /** User ID of the intended recipient, if targeting a specific user */ @@ -648,11 +698,29 @@ export interface PageInfo { // ============ Entity Relation Types ============ export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} -export interface AppPermissionRelations {} -export interface OrgPermissionRelations {} +export interface AppPermissionRelations { + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null; + appPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface AppPermissionDefaultGrantRelations { + permission?: AppPermission | null; +} +export interface OrgPermissionRelations { + orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult; + orgPermissionDefaultGrantsByPermissionId?: ConnectionResult; +} +export interface OrgPermissionDefaultPermissionRelations { + permission?: OrgPermission | null; +} +export interface OrgPermissionDefaultGrantRelations { + permission?: OrgPermission | null; +} export interface OrgMemberRelations {} export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} +export interface AppPermissionDefaultPermissionRelations { + permission?: AppPermission | null; +} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} export interface OrgAdminGrantRelations {} @@ -668,13 +736,13 @@ export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} export interface OrgMembershipSettingRelations {} export interface AppMembershipRelations {} -export interface AppInviteRelations {} export interface OrgMembershipRelations { orgMemberProfileByMembershipId?: OrgMemberProfile | null; } export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } +export interface AppInviteRelations {} export interface OrgInviteRelations {} // ============ Entity Types With Relations ============ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & @@ -682,12 +750,20 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; +export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & + AppPermissionDefaultGrantRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & + OrgPermissionDefaultPermissionRelations; +export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & + OrgPermissionDefaultGrantRelations; export type OrgMemberWithRelations = OrgMember & OrgMemberRelations; export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations; export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; +export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & + AppPermissionDefaultPermissionRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; @@ -706,9 +782,9 @@ export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; -export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; +export type AppInviteWithRelations = AppInvite & AppInviteRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; // ============ Entity Select Types ============ export type OrgGetManagersRecordSelect = { @@ -725,6 +801,26 @@ export type AppPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + appPermissionDefaultPermissionByPermissionId?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultGrantsByPermissionId?: { + select: AppPermissionDefaultGrantSelect; + first?: number; + filter?: AppPermissionDefaultGrantFilter; + orderBy?: AppPermissionDefaultGrantOrderBy[]; + }; +}; +export type AppPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; }; export type OrgPermissionSelect = { id?: boolean; @@ -732,6 +828,40 @@ export type OrgPermissionSelect = { bitnum?: boolean; bitstr?: boolean; description?: boolean; + orgPermissionDefaultPermissionsByPermissionId?: { + select: OrgPermissionDefaultPermissionSelect; + first?: number; + filter?: OrgPermissionDefaultPermissionFilter; + orderBy?: OrgPermissionDefaultPermissionOrderBy[]; + }; + orgPermissionDefaultGrantsByPermissionId?: { + select: OrgPermissionDefaultGrantSelect; + first?: number; + filter?: OrgPermissionDefaultGrantFilter; + orderBy?: OrgPermissionDefaultGrantOrderBy[]; + }; +}; +export type OrgPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; +}; +export type OrgPermissionDefaultGrantSelect = { + id?: boolean; + permissionId?: boolean; + isGrant?: boolean; + grantorId?: boolean; + entityId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: OrgPermissionSelect; + }; }; export type OrgMemberSelect = { id?: boolean; @@ -748,6 +878,15 @@ export type OrgPermissionDefaultSelect = { permissions?: boolean; entityId?: boolean; }; +export type AppPermissionDefaultPermissionSelect = { + id?: boolean; + permissionId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + permission?: { + select: AppPermissionSelect; + }; +}; export type AppAdminGrantSelect = { id?: boolean; isGrant?: boolean; @@ -899,21 +1038,6 @@ export type AppMembershipSelect = { actorId?: boolean; profileId?: boolean; }; -export type AppInviteSelect = { - id?: boolean; - email?: boolean; - senderId?: boolean; - inviteToken?: boolean; - inviteValid?: boolean; - inviteLimit?: boolean; - inviteCount?: boolean; - multiple?: boolean; - data?: boolean; - profileId?: boolean; - expiresAt?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; export type OrgMembershipSelect = { id?: boolean; createdAt?: boolean; @@ -953,9 +1077,28 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; +export type AppInviteSelect = { + id?: boolean; + channel?: boolean; + email?: boolean; + phone?: boolean; + senderId?: boolean; + inviteToken?: boolean; + inviteValid?: boolean; + inviteLimit?: boolean; + inviteCount?: boolean; + multiple?: boolean; + data?: boolean; + profileId?: boolean; + expiresAt?: boolean; + createdAt?: boolean; + updatedAt?: boolean; +}; export type OrgInviteSelect = { id?: boolean; + channel?: boolean; email?: boolean; + phone?: boolean; senderId?: boolean; receiverId?: boolean; inviteToken?: boolean; @@ -1003,6 +1146,36 @@ export interface AppPermissionFilter { or?: AppPermissionFilter[]; /** Negates the expression. */ not?: AppPermissionFilter; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } export interface OrgPermissionFilter { /** Filter by the object’s `id` field. */ @@ -1021,6 +1194,58 @@ export interface OrgPermissionFilter { or?: OrgPermissionFilter[]; /** Negates the expression. */ not?: OrgPermissionFilter; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; } export interface OrgMemberFilter { /** Filter by the object’s `id` field. */ @@ -1064,6 +1289,24 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1422,38 +1665,6 @@ export interface AppMembershipFilter { /** Negates the expression. */ not?: AppMembershipFilter; } -export interface AppInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `email` field. */ - email?: ConstructiveInternalTypeEmailFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `inviteToken` field. */ - inviteToken?: StringFilter; - /** Filter by the object’s `inviteValid` field. */ - inviteValid?: BooleanFilter; - /** Filter by the object’s `inviteLimit` field. */ - inviteLimit?: IntFilter; - /** Filter by the object’s `inviteCount` field. */ - 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. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppInviteFilter[]; - /** Checks for any expressions in this list. */ - or?: AppInviteFilter[]; - /** Negates the expression. */ - not?: AppInviteFilter; -} export interface OrgMembershipFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1534,15 +1745,17 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgInviteFilter { +export interface AppInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; /** Filter by the object’s `email` field. */ email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; /** Filter by the object’s `senderId` field. */ senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; /** Filter by the object’s `inviteToken` field. */ inviteToken?: StringFilter; /** Filter by the object’s `inviteValid` field. */ @@ -1555,37 +1768,75 @@ export interface OrgInviteFilter { multiple?: BooleanFilter; /** Filter by the object’s `profileId` field. */ profileId?: UUIDFilter; - /** Filter by the object’s `isReadOnly` field. */ - isReadOnly?: BooleanFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** 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; /** Checks for all expressions in this list. */ - and?: OrgInviteFilter[]; + and?: AppInviteFilter[]; /** Checks for any expressions in this list. */ - or?: OrgInviteFilter[]; + or?: AppInviteFilter[]; /** Negates the expression. */ - not?: OrgInviteFilter; + not?: AppInviteFilter; } -// ============ OrderBy Types ============ -export type OrgGetManagersRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' - | 'USER_ID_DESC' - | 'DEPTH_ASC' - | 'DEPTH_DESC'; -export type OrgGetSubordinatesRecordsOrderBy = - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'NATURAL' - | 'USER_ID_ASC' +export interface OrgInviteFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `channel` field. */ + channel?: StringFilter; + /** Filter by the object’s `email` field. */ + email?: ConstructiveInternalTypeEmailFilter; + /** Filter by the object’s `phone` field. */ + phone?: StringFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `inviteToken` field. */ + inviteToken?: StringFilter; + /** Filter by the object’s `inviteValid` field. */ + inviteValid?: BooleanFilter; + /** Filter by the object’s `inviteLimit` field. */ + inviteLimit?: IntFilter; + /** Filter by the object’s `inviteCount` field. */ + 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 `isReadOnly` field. */ + isReadOnly?: BooleanFilter; + /** Filter by the object’s `expiresAt` field. */ + expiresAt?: DatetimeFilter; + /** 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; + /** Checks for all expressions in this list. */ + and?: OrgInviteFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgInviteFilter[]; + /** Negates the expression. */ + not?: OrgInviteFilter; +} +// ============ OrderBy Types ============ +export type OrgGetManagersRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' + | 'USER_ID_DESC' + | 'DEPTH_ASC' + | 'DEPTH_DESC'; +export type OrgGetSubordinatesRecordsOrderBy = + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NATURAL' + | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC'; @@ -1603,6 +1854,22 @@ export type AppPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type AppPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1617,6 +1884,38 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type OrgPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type OrgPermissionDefaultGrantOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'IS_GRANT_ASC' + | 'IS_GRANT_DESC' + | 'GRANTOR_ID_ASC' + | 'GRANTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgMemberOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1647,6 +1946,18 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppPermissionDefaultPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSION_ID_ASC' + | 'PERMISSION_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1949,36 +2260,6 @@ export type AppMembershipOrderBy = | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC'; -export type 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'; export type OrgMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2045,14 +2326,52 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; +export type AppInviteOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' + | 'EMAIL_ASC' + | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_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'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CHANNEL_ASC' + | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' + | 'PHONE_ASC' + | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' @@ -2146,6 +2465,28 @@ export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultGrantInput { + clientMutationId?: string; + appPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + }; +} +export interface AppPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; +} +export interface UpdateAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch; +} +export interface DeleteAppPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgPermissionInput { clientMutationId?: string; orgPermission: { @@ -2170,6 +2511,50 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + orgPermissionDefaultPermission: { + permissionId: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultPermissionPatch { + permissionId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch; +} +export interface DeleteOrgPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + orgPermissionDefaultGrant: { + permissionId: string; + isGrant?: boolean; + grantorId?: string; + entityId: string; + }; +} +export interface OrgPermissionDefaultGrantPatch { + permissionId?: string | null; + isGrant?: boolean | null; + grantorId?: string | null; + entityId?: string | null; +} +export interface UpdateOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; + orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch; +} +export interface DeleteOrgPermissionDefaultGrantInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgMemberInput { clientMutationId?: string; orgMember: { @@ -2230,11 +2615,29 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } +export interface CreateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + appPermissionDefaultPermission: { + permissionId: string; + }; +} +export interface AppPermissionDefaultPermissionPatch { + permissionId?: string | null; +} +export interface UpdateAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch; +} +export interface DeleteAppPermissionDefaultPermissionInput { + clientMutationId?: string; + id: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; appAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2256,7 +2659,7 @@ export interface CreateAppOwnerGrantInput { clientMutationId?: string; appOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2278,7 +2681,7 @@ export interface CreateOrgAdminGrantInput { clientMutationId?: string; orgAdminGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2302,7 +2705,7 @@ export interface CreateOrgOwnerGrantInput { clientMutationId?: string; orgOwnerGrant: { isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2405,7 +2808,7 @@ export interface CreateAppGrantInput { appGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; grantorId?: string; }; } @@ -2501,7 +2904,7 @@ export interface CreateOrgGrantInput { orgGrant: { permissions?: string; isGrant?: boolean; - actorId: string; + actorId?: string; entityId: string; grantorId?: string; }; @@ -2628,42 +3031,6 @@ export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface CreateAppInviteInput { - clientMutationId?: string; - appInvite: { - email?: ConstructiveInternalTypeEmail; - senderId?: string; - inviteToken?: string; - inviteValid?: boolean; - inviteLimit?: number; - inviteCount?: number; - multiple?: boolean; - data?: Record; - profileId?: string; - expiresAt?: string; - }; -} -export interface AppInvitePatch { - email?: ConstructiveInternalTypeEmail | null; - senderId?: string | null; - inviteToken?: string | null; - inviteValid?: boolean | null; - inviteLimit?: number | null; - inviteCount?: number | null; - multiple?: boolean | null; - data?: Record | null; - profileId?: string | null; - expiresAt?: string | null; -} -export interface UpdateAppInviteInput { - clientMutationId?: string; - id: string; - appInvitePatch: AppInvitePatch; -} -export interface DeleteAppInviteInput { - clientMutationId?: string; - id: string; -} export interface CreateOrgMembershipInput { clientMutationId?: string; orgMembership: { @@ -2743,10 +3110,52 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgInviteInput { +export interface CreateAppInviteInput { + clientMutationId?: string; + appInvite: { + channel?: string; + email?: ConstructiveInternalTypeEmail; + phone?: string; + senderId?: string; + inviteToken?: string; + inviteValid?: boolean; + inviteLimit?: number; + inviteCount?: number; + multiple?: boolean; + data?: Record; + profileId?: string; + expiresAt?: string; + }; +} +export interface AppInvitePatch { + channel?: string | null; + email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; + senderId?: string | null; + inviteToken?: string | null; + inviteValid?: boolean | null; + inviteLimit?: number | null; + inviteCount?: number | null; + multiple?: boolean | null; + data?: Record | null; + profileId?: string | null; + expiresAt?: string | null; +} +export interface UpdateAppInviteInput { + clientMutationId?: string; + id: string; + appInvitePatch: AppInvitePatch; +} +export interface DeleteAppInviteInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { + channel?: string; email?: ConstructiveInternalTypeEmail; + phone?: string; senderId?: string; receiverId?: string; inviteToken?: string; @@ -2762,7 +3171,9 @@ export interface CreateOrgInviteInput { }; } export interface OrgInvitePatch { + channel?: string | null; email?: ConstructiveInternalTypeEmail | null; + phone?: string | null; senderId?: string | null; receiverId?: string | null; inviteToken?: string | null; @@ -2786,7 +3197,15 @@ export interface DeleteOrgInviteInput { id: string; } // ============ Connection Fields Map ============ -export const connectionFieldsMap = {} as Record>; +export const connectionFieldsMap = { + AppPermission: { + appPermissionDefaultGrantsByPermissionId: 'AppPermissionDefaultGrant', + }, + OrgPermission: { + orgPermissionDefaultPermissionsByPermissionId: 'OrgPermissionDefaultPermission', + orgPermissionDefaultGrantsByPermissionId: 'OrgPermissionDefaultGrant', + }, +} as Record>; // ============ Custom Input Types (from schema) ============ export interface SubmitAppInviteCodeInput { clientMutationId?: string; @@ -2805,6 +3224,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionToManyAppPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AppPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: AppPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: AppPermissionDefaultGrantFilter; +} +/** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultPermissionFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultPermissionFilter; +} +/** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgPermissionDefaultGrantFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgPermissionDefaultGrantFilter; +} +/** 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). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value. */ + notEqualTo?: ConstructiveInternalTypeImage; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: ConstructiveInternalTypeImage; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: ConstructiveInternalTypeImage; + /** Included in the specified list. */ + in?: ConstructiveInternalTypeImage[]; + /** Not included in the specified list. */ + notIn?: ConstructiveInternalTypeImage[]; + /** Less than the specified value. */ + lessThan?: ConstructiveInternalTypeImage; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Greater than the specified value. */ + greaterThan?: ConstructiveInternalTypeImage; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: ConstructiveInternalTypeImage; + /** Contains the specified JSON. */ + contains?: ConstructiveInternalTypeImage; + /** Contains the specified key. */ + containsKey?: string; + /** Contains all of the specified keys. */ + containsAllKeys?: string[]; + /** Contains any of the specified keys. */ + containsAnyKeys?: string[]; + /** Contained by the specified JSON. */ + containedBy?: ConstructiveInternalTypeImage; +} /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeEmailFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -2882,40 +3363,790 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } -/** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ -export interface ConstructiveInternalTypeImageFilter { +/** 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; +} +/** An input for mutations affecting `AppPermissionDefaultGrant` */ +export interface AppPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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 `OrgPermissionDefaultPermission` */ +export interface OrgPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + /** Scopes this default permission to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgPermissionDefaultGrant` */ +export interface OrgPermissionDefaultGrantInput { + id?: string; + /** References the permission being added to or removed from defaults */ + permissionId: string; + /** True to add the permission to defaults, false to remove it */ + isGrant?: boolean; + grantorId?: string; + /** Scopes this audit entry to a specific entity */ + entityId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgMember` */ +export interface OrgMemberInput { + id?: string; + /** Whether this member has admin privileges */ + isAdmin?: boolean; + /** References the user who is a member */ + actorId: string; + /** References the entity (org or group) this member belongs to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; +} +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +/** An input for mutations affecting `AppPermissionDefaultPermission` */ +export interface AppPermissionDefaultPermissionInput { + id?: string; + /** References the permission included in the defaults bundle */ + permissionId: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppAdminGrant` */ +export interface AppAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AppOwnerGrant` */ +export interface AppOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgAdminGrant` */ +export interface OrgAdminGrantInput { + id?: string; + /** True to grant admin, false to revoke admin */ + isGrant?: boolean; + /** The member receiving or losing the admin grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this admin grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgOwnerGrant` */ +export interface OrgOwnerGrantInput { + id?: string; + /** True to grant ownership, false to revoke ownership */ + isGrant?: boolean; + /** The member receiving or losing the ownership grant; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this ownership grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdgeGrant` */ +export interface OrgChartEdgeGrantInput { + id?: string; + /** Organization this grant applies to */ + entityId: string; + /** User ID of the subordinate being placed in the hierarchy */ + childId: string; + /** User ID of the manager being assigned; NULL for top-level positions */ + parentId?: string; + /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */ + grantorId?: string; + /** 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?: number; + /** Timestamp when this grant or revocation was recorded */ + createdAt?: string; +} +/** An input for mutations affecting `AppClaimedInvite` */ +export interface AppClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; +} +/** 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; + /** Scope identifier for this membership type, used to resolve scope on module config tables */ + scope: 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 `AppGrant` */ +export interface AppGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** 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; +} +/** An input for mutations affecting `OrgClaimedInvite` */ +export interface OrgClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record; + /** 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; + entityId: string; +} +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { + 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; NULL if user was deleted */ + actorId?: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `OrgChartEdge` */ +export interface OrgChartEdgeInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Organization this hierarchy edge belongs to */ + entityId: string; + /** User ID of the subordinate (employee) in this reporting relationship */ + childId: string; + /** User ID of the manager; NULL indicates a top-level position with no direct report */ + parentId?: string; + /** Job title or role name for this position in the org chart */ + positionTitle?: string; + /** Numeric seniority level for this position (higher = more senior) */ + positionLevel?: number; +} +/** 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; +} +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { + 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; + /** 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 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; + profileId?: string; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { + 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; +} +/** An input for mutations affecting `OrgMemberProfile` */ +export interface OrgMemberProfileInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** References the membership this profile belongs to (1:1) */ + membershipId: string; + /** References the entity this profile belongs to (used for RLS lookups) */ + entityId: string; + /** References the user who owns this profile (for self-edit RLS) */ + actorId: string; + /** 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; +} +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** 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; +} +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { + id?: string; + /** Delivery channel for this invitation: email, sms, or link */ + channel?: string; + /** Email address of the invited recipient (required when channel=email) */ + email?: ConstructiveInternalTypeEmail; + /** Phone number of the invited recipient in E.164 format (required when channel=sms) */ + phone?: string; + /** 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?: Record; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Whether the resulting membership should be read-only when this invite is claimed */ + isReadOnly?: boolean; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + entityId: string; +} +/** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** 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?: AppPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionDefaultGrantFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: 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?: OrgPermissionDefaultGrantFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionDefaultGrantFilter[]; + /** Negates the expression. */ + not?: OrgPermissionDefaultGrantFilter; + /** Filter by the object’s `permission` relation. */ + permission?: OrgPermissionFilter; +} +/** 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). */ + 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; +} +/** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */ +export interface BooleanFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: boolean; + /** Not equal to the specified value. */ + notEqualTo?: boolean; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: boolean; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: boolean; + /** Included in the specified list. */ + in?: boolean[]; + /** Not included in the specified list. */ + notIn?: boolean[]; + /** Less than the specified value. */ + lessThan?: boolean; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: boolean; + /** Greater than the specified value. */ + greaterThan?: boolean; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: boolean; +} +/** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */ +export interface DatetimeFilter { + /** 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; +} +/** 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; + /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */ + appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter; + /** A related `appPermissionDefaultPermissionByPermissionId` exists. */ + appPermissionDefaultPermissionByPermissionIdExists?: boolean; + /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */ + appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter; + /** `appPermissionDefaultGrantsByPermissionId` exist. */ + appPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** 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; + /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */ + orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter; + /** `orgPermissionDefaultPermissionsByPermissionId` exist. */ + orgPermissionDefaultPermissionsByPermissionIdExist?: boolean; + /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */ + orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter; + /** `orgPermissionDefaultGrantsByPermissionId` exist. */ + orgPermissionDefaultGrantsByPermissionIdExist?: boolean; +} +/** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */ +export interface 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.’ */ +export interface IntFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: number; + /** Not equal to the specified value. */ + notEqualTo?: number; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: number; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: number; + /** Included in the specified list. */ + in?: number[]; + /** Not included in the specified list. */ + notIn?: number[]; + /** Less than the specified value. */ + lessThan?: number; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: number; + /** Greater than the specified value. */ + greaterThan?: number; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: number; +} +/** 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). */ isNull?: boolean; /** Equal to the specified value. */ - equalTo?: ConstructiveInternalTypeImage; + equalTo?: string; /** Not equal to the specified value. */ - notEqualTo?: ConstructiveInternalTypeImage; + notEqualTo?: string; /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: ConstructiveInternalTypeImage; + distinctFrom?: string; /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: ConstructiveInternalTypeImage; + notDistinctFrom?: string; /** Included in the specified list. */ - in?: ConstructiveInternalTypeImage[]; + in?: string[]; /** Not included in the specified list. */ - notIn?: ConstructiveInternalTypeImage[]; + notIn?: string[]; /** Less than the specified value. */ - lessThan?: ConstructiveInternalTypeImage; + lessThan?: string; /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: ConstructiveInternalTypeImage; + lessThanOrEqualTo?: string; /** Greater than the specified value. */ - greaterThan?: ConstructiveInternalTypeImage; + greaterThan?: string; /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: ConstructiveInternalTypeImage; - /** Contains the specified JSON. */ - contains?: ConstructiveInternalTypeImage; - /** Contains the specified key. */ - containsKey?: string; - /** Contains all of the specified keys. */ - containsAllKeys?: string[]; - /** Contains any of the specified keys. */ - containsAnyKeys?: string[]; - /** Contained by the specified JSON. */ - containedBy?: ConstructiveInternalTypeImage; + greaterThanOrEqualTo?: string; +} +/** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissionId` field. */ + permissionId?: 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?: AppPermissionDefaultPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultPermissionFilter; + /** Filter by the object’s `permission` relation. */ + permission?: AppPermissionFilter; } /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ @@ -3039,6 +4270,51 @@ export type DeleteAppPermissionPayloadSelect = { select: AppPermissionEdgeSelect; }; }; +export interface CreateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was created by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type CreateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was updated by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type UpdateAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */ + appPermissionDefaultGrant?: AppPermissionDefaultGrant | null; + appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null; +} +export type DeleteAppPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultGrant?: { + select: AppPermissionDefaultGrantSelect; + }; + appPermissionDefaultGrantEdge?: { + select: AppPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgPermissionPayload { clientMutationId?: string | null; /** The `OrgPermission` that was created by this mutation. */ @@ -3084,6 +4360,96 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was created by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type CreateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type UpdateOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */ + orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null; + orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null; +} +export type DeleteOrgPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultPermission?: { + select: OrgPermissionDefaultPermissionSelect; + }; + orgPermissionDefaultPermissionEdge?: { + select: OrgPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface CreateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was created by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type CreateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface UpdateOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type UpdateOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; +export interface DeleteOrgPermissionDefaultGrantPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */ + orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null; + orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null; +} +export type DeleteOrgPermissionDefaultGrantPayloadSelect = { + clientMutationId?: boolean; + orgPermissionDefaultGrant?: { + select: OrgPermissionDefaultGrantSelect; + }; + orgPermissionDefaultGrantEdge?: { + select: OrgPermissionDefaultGrantEdgeSelect; + }; +}; export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ @@ -3219,6 +4585,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = { select: OrgPermissionDefaultEdgeSelect; }; }; +export interface CreateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was created by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type CreateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface UpdateAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was updated by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type UpdateAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; +export interface DeleteAppPermissionDefaultPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */ + appPermissionDefaultPermission?: AppPermissionDefaultPermission | null; + appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null; +} +export type DeleteAppPermissionDefaultPermissionPayloadSelect = { + clientMutationId?: boolean; + appPermissionDefaultPermission?: { + select: AppPermissionDefaultPermissionSelect; + }; + appPermissionDefaultPermissionEdge?: { + select: AppPermissionDefaultPermissionEdgeSelect; + }; +}; export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -3894,51 +5305,6 @@ export type DeleteAppMembershipPayloadSelect = { select: AppMembershipEdgeSelect; }; }; -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type CreateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type UpdateAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} -export type DeleteAppInvitePayloadSelect = { - clientMutationId?: boolean; - appInvite?: { - select: AppInviteSelect; - }; - appInviteEdge?: { - select: AppInviteEdgeSelect; - }; -}; export interface CreateOrgMembershipPayload { clientMutationId?: string | null; /** The `OrgMembership` that was created by this mutation. */ @@ -4029,6 +5395,51 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type CreateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type UpdateAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export type DeleteAppInvitePayloadSelect = { + clientMutationId?: boolean; + appInvite?: { + select: AppInviteSelect; + }; + appInviteEdge?: { + select: AppInviteEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -4115,6 +5526,42 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `AppPermissionDefaultGrant` edge in the connection. */ +export interface AppPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `AppPermissionDefaultGrant` at the end of the edge. */ + node?: AppPermissionDefaultGrant | null; +} +export type AppPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultGrantSelect; + }; +}; +/** A `OrgPermissionDefaultPermission` edge in the connection. */ +export interface OrgPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultPermission` at the end of the edge. */ + node?: OrgPermissionDefaultPermission | null; +} +export type OrgPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultPermissionSelect; + }; +}; +/** A `OrgPermissionDefaultGrant` edge in the connection. */ +export interface OrgPermissionDefaultGrantEdge { + cursor?: string | null; + /** The `OrgPermissionDefaultGrant` at the end of the edge. */ + node?: OrgPermissionDefaultGrant | null; +} +export type OrgPermissionDefaultGrantEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgPermissionDefaultGrantSelect; + }; +}; /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; @@ -4151,6 +5598,18 @@ export type OrgPermissionDefaultEdgeSelect = { select: OrgPermissionDefaultSelect; }; }; +/** A `AppPermissionDefaultPermission` edge in the connection. */ +export interface AppPermissionDefaultPermissionEdge { + cursor?: string | null; + /** The `AppPermissionDefaultPermission` at the end of the edge. */ + node?: AppPermissionDefaultPermission | null; +} +export type AppPermissionDefaultPermissionEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultPermissionSelect; + }; +}; /** A `AppAdminGrant` edge in the connection. */ export interface AppAdminGrantEdge { cursor?: string | null; @@ -4331,18 +5790,6 @@ export type AppMembershipEdgeSelect = { select: AppMembershipSelect; }; }; -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} -export type AppInviteEdgeSelect = { - cursor?: boolean; - node?: { - select: AppInviteSelect; - }; -}; /** A `OrgMembership` edge in the connection. */ export interface OrgMembershipEdge { cursor?: string | null; @@ -4367,6 +5814,18 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +export type AppInviteEdgeSelect = { + cursor?: boolean; + node?: { + select: AppInviteSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts new file mode 100644 index 0000000000..6915611884 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * AppPermissionDefaultGrant 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 { + AppPermissionDefaultGrant, + AppPermissionDefaultGrantWithRelations, + AppPermissionDefaultGrantSelect, + AppPermissionDefaultGrantFilter, + AppPermissionDefaultGrantOrderBy, + CreateAppPermissionDefaultGrantInput, + UpdateAppPermissionDefaultGrantInput, + AppPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + 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, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultGrant', + 'appPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultGrantFilter', + 'AppPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'appPermissionDefaultGrant', + document, + variables, + transform: (data: { + appPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultGrant: data.appPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultGrant', + 'createAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.data, + 'CreateAppPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'createAppPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultGrant', + 'updateAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultGrantInput', + 'id', + 'appPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'updateAppPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultGrant: { + appPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultGrant', + 'deleteAppPermissionDefaultGrant', + 'appPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultGrant', + fieldName: 'deleteAppPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts new file mode 100644 index 0000000000..eeee28fadd --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/appPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * AppPermissionDefaultPermission 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 { + AppPermissionDefaultPermission, + AppPermissionDefaultPermissionWithRelations, + AppPermissionDefaultPermissionSelect, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy, + CreateAppPermissionDefaultPermissionInput, + UpdateAppPermissionDefaultPermissionInput, + AppPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + 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, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + AppPermissionDefaultPermissionFilter, + AppPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AppPermissionDefaultPermission', + 'appPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AppPermissionDefaultPermissionFilter', + 'AppPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'appPermissionDefaultPermission', + document, + variables, + transform: (data: { + appPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + appPermissionDefaultPermission: data.appPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateAppPermissionDefaultPermissionInput['appPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppPermissionDefaultPermission', + 'createAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.data, + 'CreateAppPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'createAppPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AppPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AppPermissionDefaultPermission', + 'updateAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateAppPermissionDefaultPermissionInput', + 'id', + 'appPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'updateAppPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAppPermissionDefaultPermission: { + appPermissionDefaultPermission: InferSelectResult< + AppPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AppPermissionDefaultPermission', + 'deleteAppPermissionDefaultPermission', + 'appPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteAppPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppPermissionDefaultPermission', + fieldName: 'deleteAppPermissionDefaultPermission', + 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 3580afbcaf..7900e01085 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -6,10 +6,14 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { AppPermissionModel } from './appPermission'; +export { AppPermissionDefaultGrantModel } from './appPermissionDefaultGrant'; export { OrgPermissionModel } from './orgPermission'; +export { OrgPermissionDefaultPermissionModel } from './orgPermissionDefaultPermission'; +export { OrgPermissionDefaultGrantModel } from './orgPermissionDefaultGrant'; export { OrgMemberModel } from './orgMember'; export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; +export { AppPermissionDefaultPermissionModel } from './appPermissionDefaultPermission'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; export { OrgAdminGrantModel } from './orgAdminGrant'; @@ -25,7 +29,7 @@ export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; -export { AppInviteModel } from './appInvite'; export { OrgMembershipModel } from './orgMembership'; export { OrgMemberProfileModel } from './orgMemberProfile'; +export { AppInviteModel } from './appInvite'; export { OrgInviteModel } from './orgInvite'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts new file mode 100644 index 0000000000..2f1a709be3 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultGrant.ts @@ -0,0 +1,246 @@ +/** + * OrgPermissionDefaultGrant 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 { + OrgPermissionDefaultGrant, + OrgPermissionDefaultGrantWithRelations, + OrgPermissionDefaultGrantSelect, + OrgPermissionDefaultGrantFilter, + OrgPermissionDefaultGrantOrderBy, + CreateOrgPermissionDefaultGrantInput, + UpdateOrgPermissionDefaultGrantInput, + OrgPermissionDefaultGrantPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultGrantModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrants: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + 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, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrants', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultGrant: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultGrant', + 'orgPermissionDefaultGrants', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultGrantFilter', + 'OrgPermissionDefaultGrantOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'orgPermissionDefaultGrant', + document, + variables, + transform: (data: { + orgPermissionDefaultGrants?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultGrant: data.orgPermissionDefaultGrants?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultGrant', + 'createOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.data, + 'CreateOrgPermissionDefaultGrantInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'createOrgPermissionDefaultGrant', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultGrantPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultGrant', + 'updateOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultGrantInput', + 'id', + 'orgPermissionDefaultGrantPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'updateOrgPermissionDefaultGrant', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultGrant: { + orgPermissionDefaultGrant: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultGrant', + 'deleteOrgPermissionDefaultGrant', + 'orgPermissionDefaultGrant', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultGrantInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultGrant', + fieldName: 'deleteOrgPermissionDefaultGrant', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts new file mode 100644 index 0000000000..7c898408dc --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgPermissionDefaultPermission.ts @@ -0,0 +1,272 @@ +/** + * OrgPermissionDefaultPermission 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 { + OrgPermissionDefaultPermission, + OrgPermissionDefaultPermissionWithRelations, + OrgPermissionDefaultPermissionSelect, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy, + CreateOrgPermissionDefaultPermissionInput, + UpdateOrgPermissionDefaultPermissionInput, + OrgPermissionDefaultPermissionPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgPermissionDefaultPermissionModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermissions: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + 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, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermissions', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs< + S, + OrgPermissionDefaultPermissionFilter, + OrgPermissionDefaultPermissionOrderBy + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + > | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgPermissionDefaultPermission', + 'orgPermissionDefaultPermissions', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgPermissionDefaultPermissionFilter', + 'OrgPermissionDefaultPermissionOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'orgPermissionDefaultPermission', + document, + variables, + transform: (data: { + orgPermissionDefaultPermissions?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgPermissionDefaultPermission: data.orgPermissionDefaultPermissions?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs< + S, + CreateOrgPermissionDefaultPermissionInput['orgPermissionDefaultPermission'] + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgPermissionDefaultPermission', + 'createOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.data, + 'CreateOrgPermissionDefaultPermissionInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'createOrgPermissionDefaultPermission', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgPermissionDefaultPermissionPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgPermissionDefaultPermission', + 'updateOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + args.select, + args.where.id, + args.data, + 'UpdateOrgPermissionDefaultPermissionInput', + 'id', + 'orgPermissionDefaultPermissionPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'updateOrgPermissionDefaultPermission', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgPermissionDefaultPermission: { + orgPermissionDefaultPermission: InferSelectResult< + OrgPermissionDefaultPermissionWithRelations, + S + >; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgPermissionDefaultPermission', + 'deleteOrgPermissionDefaultPermission', + 'orgPermissionDefaultPermission', + { + id: args.where.id, + }, + 'DeleteOrgPermissionDefaultPermissionInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgPermissionDefaultPermission', + fieldName: 'deleteOrgPermissionDefaultPermission', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/agent/orm/README.md b/sdk/constructive-sdk/src/agent/orm/README.md index 61b29a99f5..b8063a2d31 100644 --- a/sdk/constructive-sdk/src/agent/orm/README.md +++ b/sdk/constructive-sdk/src/agent/orm/README.md @@ -162,26 +162,27 @@ CRUD operations for AgentMessage records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `parts` | JSON | Yes | | `threadId` | UUID | Yes | | `authorRole` | String | Yes | | `model` | String | Yes | +| `agentId` | UUID | Yes | **Operations:** ```typescript // List all agentMessage records -const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const items = await db.agentMessage.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Get one by id -const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true, threadId: true, authorRole: true, model: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, parts: true, threadId: true, authorRole: true, model: true, agentId: true } }).execute(); // Create -const created = await db.agentMessage.create({ data: { ownerId: '', parts: '', threadId: '', authorRole: '', model: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { actorId: '', parts: '', threadId: '', authorRole: '', model: '', agentId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentMessage.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); @@ -198,7 +199,7 @@ CRUD operations for AgentTask records. | `id` | UUID | No | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | -| `ownerId` | UUID | Yes | +| `actorId` | UUID | Yes | | `status` | String | Yes | | `planId` | UUID | Yes | | `description` | String | Yes | @@ -215,16 +216,16 @@ CRUD operations for AgentTask records. ```typescript // List all agentTask records -const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const items = await db.agentTask.findMany({ select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Get one by id -const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, ownerId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, actorId: true, status: true, planId: true, description: true, source: true, error: true, orderIndex: true, requiresApproval: true, approvalStatus: true, approvedBy: true, approvedAt: true, approvalFeedback: true } }).execute(); // Create -const created = await db.agentTask.create({ data: { ownerId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { actorId: '', status: '', planId: '', description: '', source: '', error: '', orderIndex: '', requiresApproval: '', approvalStatus: '', approvedBy: '', approvedAt: '', approvalFeedback: '' }, select: { id: true } }).execute(); // Update -const updated = await db.agentTask.update({ where: { id: '' }, data: { ownerId: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); diff --git a/sdk/constructive-sdk/src/agent/orm/input-types.ts b/sdk/constructive-sdk/src/agent/orm/input-types.ts index 0e4fdc0c20..dbb8e0c07f 100644 --- a/sdk/constructive-sdk/src/agent/orm/input-types.ts +++ b/sdk/constructive-sdk/src/agent/orm/input-types.ts @@ -304,8 +304,8 @@ export interface AgentMessage { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this message */ - ownerId?: string | null; + /** User who authored this message */ + actorId?: string | null; /** Message content: TextPart and ToolPart array */ parts?: Record | null; /** Foreign key to agent_thread */ @@ -314,14 +314,16 @@ export interface AgentMessage { authorRole?: string | null; /** LLM model that generated this response */ model?: string | null; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string | null; } /** Task within a plan, with ordering and optional approval gates */ export interface AgentTask { id: string; createdAt?: string | null; updatedAt?: string | null; - /** User who owns this task */ - ownerId?: string | null; + /** User who authored this task */ + actorId?: string | null; /** Current status of this task */ status?: string | null; /** Foreign key to agent_plan */ @@ -374,7 +376,7 @@ export interface AgentResourceChunk { updatedAt?: string | null; /** VECTOR distance when searching `embedding`. Returns null when no vector search filter is active. */ embeddingVectorDistance?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } /** Agent persona templates (role, system prompt, default skills/knowledge) */ @@ -441,7 +443,7 @@ export interface AgentResource { descriptionTrgmSimilarity?: number | null; /** TRGM similarity when searching `body`. Returns null when no trgm search filter is active. */ bodyTrgmSimilarity?: 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -465,6 +467,7 @@ export interface AgentRelations { parent?: Agent | null; persona?: AgentPersona | null; agentThreads?: ConnectionResult; + agentMessages?: ConnectionResult; childAgents?: ConnectionResult; } export interface AgentThreadRelations { @@ -476,6 +479,7 @@ export interface AgentThreadRelations { agentPlansByThreadId?: ConnectionResult; } export interface AgentMessageRelations { + agent?: Agent | null; thread?: AgentThread | null; } export interface AgentTaskRelations { @@ -545,6 +549,12 @@ export type AgentSelect = { filter?: AgentThreadFilter; orderBy?: AgentThreadOrderBy[]; }; + agentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; childAgents?: { select: AgentSelect; first?: number; @@ -600,11 +610,15 @@ export type AgentMessageSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; parts?: boolean; threadId?: boolean; authorRole?: boolean; model?: boolean; + agentId?: boolean; + agent?: { + select: AgentSelect; + }; thread?: { select: AgentThreadSelect; }; @@ -613,7 +627,7 @@ export type AgentTaskSelect = { id?: boolean; createdAt?: boolean; updatedAt?: boolean; - ownerId?: boolean; + actorId?: boolean; status?: boolean; planId?: boolean; description?: boolean; @@ -781,6 +795,10 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ @@ -855,8 +873,8 @@ export interface AgentMessageFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `parts` field. */ parts?: JSONFilter; /** Filter by the object’s `threadId` field. */ @@ -865,12 +883,18 @@ export interface AgentMessageFilter { authorRole?: StringFilter; /** Filter by the object’s `model` field. */ model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; /** Filter by the object’s `thread` relation. */ thread?: AgentThreadFilter; } @@ -881,8 +905,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1164,8 +1188,8 @@ export type AgentMessageOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'PARTS_ASC' | 'PARTS_DESC' | 'THREAD_ID_ASC' @@ -1173,7 +1197,9 @@ export type AgentMessageOrderBy = | 'AUTHOR_ROLE_ASC' | 'AUTHOR_ROLE_DESC' | 'MODEL_ASC' - | 'MODEL_DESC'; + | 'MODEL_DESC' + | 'AGENT_ID_ASC' + | 'AGENT_ID_DESC'; export type AgentTaskOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -1184,8 +1210,8 @@ export type AgentTaskOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' - | 'OWNER_ID_ASC' - | 'OWNER_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'PLAN_ID_ASC' @@ -1440,19 +1466,21 @@ export interface DeleteAgentThreadInput { export interface CreateAgentMessageInput { clientMutationId?: string; agentMessage: { - ownerId?: string; + actorId?: string; parts?: Record; threadId: string; authorRole: string; model?: string; + agentId?: string; }; } export interface AgentMessagePatch { - ownerId?: string | null; + actorId?: string | null; parts?: Record | null; threadId?: string | null; authorRole?: string | null; model?: string | null; + agentId?: string | null; } export interface UpdateAgentMessageInput { clientMutationId?: string; @@ -1466,7 +1494,7 @@ export interface DeleteAgentMessageInput { export interface CreateAgentTaskInput { clientMutationId?: string; agentTask: { - ownerId?: string; + actorId?: string; status?: string; planId: string; description: string; @@ -1481,7 +1509,7 @@ export interface CreateAgentTaskInput { }; } export interface AgentTaskPatch { - ownerId?: string | null; + actorId?: string | null; status?: string | null; planId?: string | null; description?: string | null; @@ -1644,6 +1672,7 @@ export const connectionFieldsMap = { }, Agent: { agentThreads: 'AgentThread', + agentMessages: 'AgentMessage', childAgents: 'Agent', }, AgentThread: { @@ -1686,6 +1715,15 @@ export interface AgentToManyAgentThreadFilter { /** 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 AgentToManyAgentMessageFilter { + /** 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 `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentToManyAgentFilter { /** Filters to entities where at least one related entity matches. */ @@ -1839,6 +1877,203 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** An input for mutations affecting `AgentPlan` */ +export interface AgentPlanInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this plan */ + ownerId?: string; + /** Foreign key to agent_thread */ + threadId: string; + /** Human-readable plan name */ + title: string; + /** Overall goal or context for this plan */ + description?: string; + /** Plan lifecycle: draft, active, completed, failed, cancelled */ + status?: string; +} +/** An input for mutations affecting `Agent` */ +export interface AgentInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** Human who owns/manages this agent */ + ownerId?: string; + /** Persona template this agent was created from */ + personaId?: string; + /** Parent agent (for sub-agent delegation hierarchy) */ + parentId?: string; + /** Display name for this agent instance */ + name: string; + /** System prompt override (NULL = inherit from persona) */ + systemPrompt?: string; + /** Per-instance config overrides (model, temperature, tools) */ + config?: Record; + /** Agent lifecycle status: active, paused, terminated */ + status?: string; + /** If true, agent is deleted when its spawning thread is deleted */ + isEphemeral?: boolean; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who owns this thread */ + ownerId?: string; + /** Current status of this thread */ + status?: string; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + /** Human-readable conversation title */ + title?: string; + /** Conversation mode: ask (plain Q&A) or agent (tool-enabled) */ + mode?: string; + /** LLM model id this thread is bound to */ + model?: string; + /** System prompt active for this thread */ + systemPrompt?: string; + /** User-defined labels for organizing and filtering threads */ + tags?: string[]; + /** Optional FK to a shared prompt template */ + promptTemplateId?: string; + /** Agent instance assigned to this thread */ + agentId?: string; + /** Parent thread that spawned this sub-conversation */ + parentThreadId?: string; +} +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this message */ + actorId?: string; + /** Message content: TextPart and ToolPart array */ + parts?: Record; + /** Foreign key to agent_thread */ + threadId: string; + /** Who authored this message: user or assistant */ + authorRole: string; + /** LLM model that generated this response */ + model?: string; + /** Agent that authored this message (NULL for human messages) */ + agentId?: string; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + id?: string; + createdAt?: string; + updatedAt?: string; + /** User who authored this task */ + actorId?: string; + /** Current status of this task */ + status?: string; + /** Foreign key to agent_plan */ + planId: string; + /** Natural-language description of the work to do */ + description: string; + /** Who created the task: agent or user */ + source?: string; + /** Error message captured when the task failed */ + error?: string; + /** Position within the plan (for ordered task lists) */ + orderIndex?: number; + /** Whether this task is an approval gate requiring human decision */ + requiresApproval?: boolean; + /** Approval decision: pending, approved, rejected (NULL if not an approval task) */ + approvalStatus?: string; + /** User who approved or rejected this task */ + approvedBy?: string; + /** Timestamp of the approval or rejection decision */ + approvedAt?: string; + /** Reviewer feedback or reason for the decision */ + approvalFeedback?: string; +} +/** An input for mutations affecting `AgentPrompt` */ +export interface AgentPromptInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique name for lookup (e.g. default, code-review, sales-assistant) */ + name: string; + /** The system prompt template content */ + content: string; + /** What this prompt template is for */ + description?: string; + /** Whether this is the default prompt for the entity/app */ + isDefault?: boolean; + /** Variables, tags, category metadata */ + metadata?: Record; +} +/** An input for mutations affecting `AgentResourceChunk` */ +export interface AgentResourceChunkInput { + id?: string; + agentResourceId: string; + body: string; + chunkIndex?: number; + embedding?: number[]; + metadata?: Record; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `AgentPersona` */ +export interface AgentPersonaInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for this persona */ + slug: string; + /** Display name for this persona */ + name: string; + /** Brief description of this persona role */ + description?: string; + /** Default system prompt for agents using this persona */ + systemPrompt?: string; + /** Slugs of agent_resource entries to link when spawning */ + resources?: string[]; + /** Model preferences, temperature, tool access, constraints */ + config?: Record; + /** Whether this persona is available for use */ + isActive?: boolean; +} +/** An input for mutations affecting `AgentResource` */ +export interface AgentResourceInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Unique human-readable identifier for portable references */ + slug: string; + /** Resource type: skill, knowledge, or convention */ + kind?: string; + /** Resource name or title */ + title: string; + /** Brief description of this resource */ + description?: string; + /** Full content (instructions for skills, reference text for knowledge) */ + body: string; + /** Keywords for deterministic retrieval routing */ + keywords?: string[]; + /** Whether this resource is active and retrievable */ + isActive?: boolean; + /** Structured metadata: category, version, author, custom attributes */ + metadata?: Record; + /** Whether this record has been archived by the user */ + isArchived?: boolean; + /** Timestamp when this record was archived, NULL if active */ + archivedAt?: string; + embedding?: number[]; + embeddingUpdatedAt?: string; +} /** 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 `id` field. */ @@ -1847,8 +2082,8 @@ export interface AgentTaskFilter { 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 `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `status` field. */ status?: StringFilter; /** Filter by the object’s `planId` field. */ @@ -1943,6 +2178,39 @@ export interface AgentThreadFilter { /** `agentPlansByThreadId` exist. */ agentPlansByThreadIdExist?: 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 `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 `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `agentId` field. */ + agentId?: UUIDFilter; + /** 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 `agent` relation. */ + agent?: AgentFilter; + /** A related `agent` exists. */ + agentExists?: boolean; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Agent` object types. All fields are combined with a logical ‘and.’ */ export interface AgentFilter { /** Filter by the object’s `id` field. */ @@ -1985,38 +2253,15 @@ export interface AgentFilter { agentThreads?: AgentToManyAgentThreadFilter; /** `agentThreads` exist. */ agentThreadsExist?: boolean; + /** Filter by the object’s `agentMessages` relation. */ + agentMessages?: AgentToManyAgentMessageFilter; + /** `agentMessages` exist. */ + agentMessagesExist?: boolean; /** Filter by the object’s `childAgents` relation. */ childAgents?: AgentToManyAgentFilter; /** `childAgents` exist. */ childAgentsExist?: 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 `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; - /** Filter by the object’s `threadId` field. */ - threadId?: UUIDFilter; - /** Filter by the object’s `authorRole` field. */ - authorRole?: StringFilter; - /** Filter by the object’s `model` field. */ - model?: StringFilter; - /** 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 `thread` relation. */ - thread?: AgentThreadFilter; -} /** A filter to be used against `AgentPlan` object types. All fields are combined with a logical ‘and.’ */ export interface AgentPlanFilter { /** Filter by the object’s `id` field. */ diff --git a/sdk/constructive-sdk/src/api/README.md b/sdk/constructive-sdk/src/api/README.md index 6873e2e667..017315ed06 100644 --- a/sdk/constructive-sdk/src/api/README.md +++ b/sdk/constructive-sdk/src/api/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 45 +- **Tables:** 46 - **Custom queries:** 1 - **Custom mutations:** 9 diff --git a/sdk/constructive-sdk/src/api/orm/README.md b/sdk/constructive-sdk/src/api/orm/README.md index 8690e7411b..e4f38f7327 100644 --- a/sdk/constructive-sdk/src/api/orm/README.md +++ b/sdk/constructive-sdk/src/api/orm/README.md @@ -43,6 +43,7 @@ const db = createClient({ | `schemaGrant` | findMany, findOne, create, update, delete | | `defaultPrivilege` | findMany, findOne, create, update, delete | | `enum` | findMany, findOne, create, update, delete | +| `compositeType` | findMany, findOne, create, update, delete | | `apiSchema` | findMany, findOne, create, update, delete | | `apiModule` | findMany, findOne, create, update, delete | | `domain` | findMany, findOne, create, update, delete | @@ -117,7 +118,6 @@ CRUD operations for Schema records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `isPublic` | Boolean | Yes | @@ -128,13 +128,13 @@ CRUD operations for Schema records. ```typescript // List all schema records -const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.schema.findMany({ select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.schema.findOne({ id: '', select: { id: true, databaseId: true, name: true, schemaName: true, label: true, description: true, smartTags: true, category: true, scope: true, tags: true, isPublic: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); +const created = await db.schema.create({ data: { databaseId: '', name: '', schemaName: '', label: '', description: '', smartTags: '', category: '', scope: '', tags: '', isPublic: '' }, select: { id: true } }).execute(); // Update const updated = await db.schema.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -159,7 +159,6 @@ CRUD operations for Table records. | `description` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `useRls` | Boolean | Yes | | `timestamps` | Boolean | Yes | @@ -171,21 +170,21 @@ CRUD operations for Table records. | `partitionStrategy` | String | Yes | | `partitionKeyNames` | String | Yes | | `partitionKeyTypes` | String | Yes | -| `inheritsId` | UUID | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | +| `inheritsId` | UUID | Yes | **Operations:** ```typescript // List all table records -const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.table.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Get one by id -const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, module: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, inheritsId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.table.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, smartTags: true, category: true, scope: true, useRls: true, timestamps: true, peoplestamps: true, pluralName: true, singularName: true, tags: true, partitioned: true, partitionStrategy: true, partitionKeyNames: true, partitionKeyTypes: true, createdAt: true, updatedAt: true, inheritsId: true } }).execute(); // Create -const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', module: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); +const created = await db.table.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', smartTags: '', category: '', scope: '', useRls: '', timestamps: '', peoplestamps: '', pluralName: '', singularName: '', tags: '', partitioned: '', partitionStrategy: '', partitionKeyNames: '', partitionKeyTypes: '', inheritsId: '' }, select: { id: true } }).execute(); // Update const updated = await db.table.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -211,7 +210,6 @@ CRUD operations for CheckConstraint records. | `expr` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -221,13 +219,13 @@ CRUD operations for CheckConstraint records. ```typescript // List all checkConstraint records -const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.checkConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.checkConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, expr: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.checkConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', expr: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.checkConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -263,7 +261,6 @@ CRUD operations for Field records. | `max` | Float | Yes | | `tags` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -272,13 +269,13 @@ CRUD operations for Field records. ```typescript // List all field records -const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.field.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, module: true, scope: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.field.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, label: true, description: true, smartTags: true, isRequired: true, apiRequired: true, defaultValue: true, type: true, fieldOrder: true, regexp: true, chk: true, chkExpr: true, min: true, max: true, tags: true, category: true, scope: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', module: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.field.create({ data: { databaseId: '', tableId: '', name: '', label: '', description: '', smartTags: '', isRequired: '', apiRequired: '', defaultValue: '', type: '', fieldOrder: '', regexp: '', chk: '', chkExpr: '', min: '', max: '', tags: '', category: '', scope: '' }, select: { id: true } }).execute(); // Update const updated = await db.field.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -305,7 +302,6 @@ CRUD operations for SpatialRelation records. | `operator` | String | Yes | | `paramName` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -315,13 +311,13 @@ CRUD operations for SpatialRelation records. ```typescript // List all spatialRelation records -const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.spatialRelation.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.spatialRelation.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, refTableId: true, refFieldId: true, name: true, operator: true, paramName: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.spatialRelation.create({ data: { databaseId: '', tableId: '', fieldId: '', refTableId: '', refFieldId: '', name: '', operator: '', paramName: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.spatialRelation.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -351,7 +347,6 @@ CRUD operations for ForeignKeyConstraint records. | `deleteAction` | String | Yes | | `updateAction` | String | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -361,13 +356,13 @@ CRUD operations for ForeignKeyConstraint records. ```typescript // List all foreignKeyConstraint records -const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.foreignKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.foreignKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, refTableId: true, refFieldIds: true, deleteAction: true, updateAction: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.foreignKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', refTableId: '', refFieldIds: '', deleteAction: '', updateAction: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.foreignKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -436,7 +431,6 @@ CRUD operations for Index records. | `opClasses` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -446,13 +440,13 @@ CRUD operations for Index records. ```typescript // List all index records -const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.index.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.index.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, fieldIds: true, includeFieldIds: true, accessMethod: true, indexParams: true, whereClause: true, isUnique: true, options: true, opClasses: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.index.create({ data: { databaseId: '', tableId: '', name: '', fieldIds: '', includeFieldIds: '', accessMethod: '', indexParams: '', whereClause: '', isUnique: '', options: '', opClasses: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.index.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -481,7 +475,6 @@ CRUD operations for Policy records. | `data` | JSON | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -491,13 +484,13 @@ CRUD operations for Policy records. ```typescript // List all policy records -const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.policy.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.policy.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, granteeName: true, privilege: true, permissive: true, disabled: true, policyType: true, data: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.policy.create({ data: { databaseId: '', tableId: '', name: '', granteeName: '', privilege: '', permissive: '', disabled: '', policyType: '', data: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.policy.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -522,7 +515,6 @@ CRUD operations for PrimaryKeyConstraint records. | `fieldIds` | UUID | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -532,13 +524,13 @@ CRUD operations for PrimaryKeyConstraint records. ```typescript // List all primaryKeyConstraint records -const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.primaryKeyConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.primaryKeyConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, type: true, fieldIds: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.primaryKeyConstraint.create({ data: { databaseId: '', tableId: '', name: '', type: '', fieldIds: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.primaryKeyConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -600,7 +592,6 @@ CRUD operations for Trigger records. | `functionName` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -610,13 +601,13 @@ CRUD operations for Trigger records. ```typescript // List all trigger records -const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.trigger.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.trigger.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, event: true, functionName: true, smartTags: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.trigger.create({ data: { databaseId: '', tableId: '', name: '', event: '', functionName: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.trigger.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -642,7 +633,6 @@ CRUD operations for UniqueConstraint records. | `type` | String | Yes | | `fieldIds` | UUID | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | | `createdAt` | Datetime | No | @@ -652,13 +642,13 @@ CRUD operations for UniqueConstraint records. ```typescript // List all uniqueConstraint records -const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.uniqueConstraint.findMany({ select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, module: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.uniqueConstraint.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, name: true, description: true, smartTags: true, type: true, fieldIds: true, category: true, scope: true, tags: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.uniqueConstraint.create({ data: { databaseId: '', tableId: '', name: '', description: '', smartTags: '', type: '', fieldIds: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.uniqueConstraint.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -688,7 +678,6 @@ CRUD operations for View records. | `isReadOnly` | Boolean | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -696,13 +685,13 @@ CRUD operations for View records. ```typescript // List all view records -const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.view.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.view.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, tableId: true, viewType: true, data: true, filterType: true, filterData: true, securityInvoker: true, isReadOnly: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.view.create({ data: { databaseId: '', schemaId: '', name: '', tableId: '', viewType: '', data: '', filterType: '', filterData: '', securityInvoker: '', isReadOnly: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.view.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -720,6 +709,7 @@ CRUD operations for ViewTable records. | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | | `viewId` | UUID | Yes | | `tableId` | UUID | Yes | | `joinOrder` | Int | Yes | @@ -728,16 +718,16 @@ CRUD operations for ViewTable records. ```typescript // List all viewTable records -const items = await db.viewTable.findMany({ select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const items = await db.viewTable.findMany({ select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Get one by id -const item = await db.viewTable.findOne({ id: '', select: { id: true, viewId: true, tableId: true, joinOrder: true } }).execute(); +const item = await db.viewTable.findOne({ id: '', select: { id: true, databaseId: true, viewId: true, tableId: true, joinOrder: true } }).execute(); // Create -const created = await db.viewTable.create({ data: { viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); +const created = await db.viewTable.create({ data: { databaseId: '', viewId: '', tableId: '', joinOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.viewTable.update({ where: { id: '' }, data: { viewId: '' }, select: { id: true } }).execute(); +const updated = await db.viewTable.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete const deleted = await db.viewTable.delete({ where: { id: '' } }).execute(); @@ -947,7 +937,6 @@ CRUD operations for Enum records. | `values` | String | Yes | | `smartTags` | JSON | Yes | | `category` | ObjectCategory | Yes | -| `module` | String | Yes | | `scope` | Int | Yes | | `tags` | String | Yes | @@ -955,13 +944,13 @@ CRUD operations for Enum records. ```typescript // List all enum records -const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const items = await db.enum.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Get one by id -const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, module: true, scope: true, tags: true } }).execute(); +const item = await db.enum.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, values: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); // Create -const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', module: '', scope: '', tags: '' }, select: { id: true } }).execute(); +const created = await db.enum.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', values: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); // Update const updated = await db.enum.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -970,6 +959,45 @@ const updated = await db.enum.update({ where: { id: '' }, data: { database const deleted = await db.enum.delete({ where: { id: '' } }).execute(); ``` +### `db.compositeType` + +CRUD operations for CompositeType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `name` | String | Yes | +| `label` | String | Yes | +| `description` | String | Yes | +| `attributes` | JSON | Yes | +| `smartTags` | JSON | Yes | +| `category` | ObjectCategory | Yes | +| `scope` | Int | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all compositeType records +const items = await db.compositeType.findMany({ select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Get one by id +const item = await db.compositeType.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, name: true, label: true, description: true, attributes: true, smartTags: true, category: true, scope: true, tags: true } }).execute(); + +// Create +const created = await db.compositeType.create({ data: { databaseId: '', schemaId: '', name: '', label: '', description: '', attributes: '', smartTags: '', category: '', scope: '', tags: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.compositeType.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.compositeType.delete({ where: { id: '' } }).execute(); +``` + ### `db.apiSchema` CRUD operations for ApiSchema records. diff --git a/sdk/constructive-sdk/src/api/orm/index.ts b/sdk/constructive-sdk/src/api/orm/index.ts index b2161f6fdc..bde4dcc042 100644 --- a/sdk/constructive-sdk/src/api/orm/index.ts +++ b/sdk/constructive-sdk/src/api/orm/index.ts @@ -27,6 +27,7 @@ import { EmbeddingChunkModel } from './models/embeddingChunk'; import { SchemaGrantModel } from './models/schemaGrant'; import { DefaultPrivilegeModel } from './models/defaultPrivilege'; import { EnumModel } from './models/enum'; +import { CompositeTypeModel } from './models/compositeType'; import { ApiSchemaModel } from './models/apiSchema'; import { ApiModuleModel } from './models/apiModule'; import { DomainModel } from './models/domain'; @@ -107,6 +108,7 @@ export function createClient(config: OrmClientConfig) { schemaGrant: new SchemaGrantModel(client), defaultPrivilege: new DefaultPrivilegeModel(client), enum: new EnumModel(client), + compositeType: new CompositeTypeModel(client), apiSchema: new ApiSchemaModel(client), apiModule: new ApiModuleModel(client), domain: new DomainModel(client), diff --git a/sdk/constructive-sdk/src/api/orm/input-types.ts b/sdk/constructive-sdk/src/api/orm/input-types.ts index 8da4e53642..75eb0921a8 100644 --- a/sdk/constructive-sdk/src/api/orm/input-types.ts +++ b/sdk/constructive-sdk/src/api/orm/input-types.ts @@ -231,7 +231,7 @@ export interface UUIDListFilter { anyGreaterThanOrEqualTo?: string; } // ============ Enum Types ============ -export type ObjectCategory = 'CORE' | 'MODULE' | 'APP'; +export type ObjectCategory = 'CORE' | 'MODULE' | 'PERMISSIONS' | 'AUTH' | 'MEMBERSHIPS' | 'APP'; // ============ Custom Scalar Types ============ export type ConstructiveInternalTypeAttachment = unknown; export type ConstructiveInternalTypeHostname = unknown; @@ -254,7 +254,6 @@ export interface Schema { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -270,7 +269,6 @@ export interface Table { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -282,9 +280,9 @@ export interface Table { partitionStrategy?: string | null; partitionKeyNames?: string[] | null; partitionKeyTypes?: string[] | null; - inheritsId?: string | null; createdAt?: string | null; updatedAt?: string | null; + inheritsId?: string | null; } export interface CheckConstraint { id: string; @@ -296,7 +294,6 @@ export interface CheckConstraint { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -322,7 +319,6 @@ export interface Field { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; createdAt?: string | null; updatedAt?: string | null; @@ -338,7 +334,6 @@ export interface SpatialRelation { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -358,7 +353,6 @@ export interface ForeignKeyConstraint { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -391,7 +385,6 @@ export interface Index { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -410,7 +403,6 @@ export interface Policy { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -425,7 +417,6 @@ export interface PrimaryKeyConstraint { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -451,7 +442,6 @@ export interface Trigger { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -467,7 +457,6 @@ export interface UniqueConstraint { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; createdAt?: string | null; @@ -487,13 +476,13 @@ export interface View { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } /** Junction table linking views to their joined tables for referential integrity */ export interface ViewTable { id: string; + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -568,7 +557,19 @@ export interface Enum { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; + scope?: number | null; + tags?: string[] | null; +} +export interface CompositeType { + id: string; + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; scope?: number | null; tags?: string[] | null; } @@ -989,6 +990,7 @@ export interface SchemaRelations { defaultPrivileges?: ConnectionResult; enums?: ConnectionResult; functions?: ConnectionResult; + compositeTypes?: ConnectionResult; apiSchemas?: ConnectionResult; } export interface TableRelations { @@ -1072,6 +1074,7 @@ export interface ViewRelations { viewRules?: ConnectionResult; } export interface ViewTableRelations { + database?: Database | null; table?: Table | null; view?: View | null; } @@ -1102,6 +1105,10 @@ export interface EnumRelations { database?: Database | null; schema?: Schema | null; } +export interface CompositeTypeRelations { + database?: Database | null; + schema?: Schema | null; +} export interface ApiSchemaRelations { api?: Api | null; database?: Database | null; @@ -1197,6 +1204,7 @@ export interface DatabaseRelations { triggers?: ConnectionResult; uniqueConstraints?: ConnectionResult; views?: ConnectionResult; + viewTables?: ConnectionResult; viewGrants?: ConnectionResult; viewRules?: ConnectionResult; defaultPrivileges?: ConnectionResult; @@ -1205,6 +1213,7 @@ export interface DatabaseRelations { spatialRelations?: ConnectionResult; functions?: ConnectionResult; partitions?: ConnectionResult; + compositeTypes?: ConnectionResult; databaseTransfers?: ConnectionResult; apis?: ConnectionResult; apiModules?: ConnectionResult; @@ -1271,6 +1280,7 @@ export type EmbeddingChunkWithRelations = EmbeddingChunk & EmbeddingChunkRelatio export type SchemaGrantWithRelations = SchemaGrant & SchemaGrantRelations; export type DefaultPrivilegeWithRelations = DefaultPrivilege & DefaultPrivilegeRelations; export type EnumWithRelations = Enum & EnumRelations; +export type CompositeTypeWithRelations = CompositeType & CompositeTypeRelations; export type ApiSchemaWithRelations = ApiSchema & ApiSchemaRelations; export type ApiModuleWithRelations = ApiModule & ApiModuleRelations; export type DomainWithRelations = Domain & DomainRelations; @@ -1316,7 +1326,6 @@ export type SchemaSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; isPublic?: boolean; @@ -1361,6 +1370,12 @@ export type SchemaSelect = { filter?: FunctionFilter; orderBy?: FunctionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; apiSchemas?: { select: ApiSchemaSelect; first?: number; @@ -1377,7 +1392,6 @@ export type TableSelect = { description?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; useRls?: boolean; timestamps?: boolean; @@ -1389,9 +1403,9 @@ export type TableSelect = { partitionStrategy?: boolean; partitionKeyNames?: boolean; partitionKeyTypes?: boolean; - inheritsId?: boolean; createdAt?: boolean; updatedAt?: boolean; + inheritsId?: boolean; database?: { select: DatabaseSelect; }; @@ -1511,7 +1525,6 @@ export type CheckConstraintSelect = { expr?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1543,7 +1556,6 @@ export type FieldSelect = { max?: boolean; tags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1577,7 +1589,6 @@ export type SpatialRelationSelect = { operator?: boolean; paramName?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1612,7 +1623,6 @@ export type ForeignKeyConstraintSelect = { deleteAction?: boolean; updateAction?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1660,7 +1670,6 @@ export type IndexSelect = { opClasses?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1685,7 +1694,6 @@ export type PolicySelect = { data?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1706,7 +1714,6 @@ export type PrimaryKeyConstraintSelect = { fieldIds?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1744,7 +1751,6 @@ export type TriggerSelect = { functionName?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1766,7 +1772,6 @@ export type UniqueConstraintSelect = { type?: boolean; fieldIds?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; createdAt?: boolean; @@ -1792,7 +1797,6 @@ export type ViewSelect = { isReadOnly?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -1825,9 +1829,13 @@ export type ViewSelect = { }; export type ViewTableSelect = { id?: boolean; + databaseId?: boolean; viewId?: boolean; tableId?: boolean; joinOrder?: boolean; + database?: { + select: DatabaseSelect; + }; table?: { select: TableSelect; }; @@ -1941,7 +1949,25 @@ export type EnumSelect = { values?: boolean; smartTags?: boolean; category?: boolean; - module?: boolean; + scope?: boolean; + tags?: boolean; + database?: { + select: DatabaseSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type CompositeTypeSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + name?: boolean; + label?: boolean; + description?: boolean; + attributes?: boolean; + smartTags?: boolean; + category?: boolean; scope?: boolean; tags?: boolean; database?: { @@ -2376,6 +2402,12 @@ export type DatabaseSelect = { filter?: ViewFilter; orderBy?: ViewOrderBy[]; }; + viewTables?: { + select: ViewTableSelect; + first?: number; + filter?: ViewTableFilter; + orderBy?: ViewTableOrderBy[]; + }; viewGrants?: { select: ViewGrantSelect; first?: number; @@ -2424,6 +2456,12 @@ export type DatabaseSelect = { filter?: PartitionFilter; orderBy?: PartitionOrderBy[]; }; + compositeTypes?: { + select: CompositeTypeSelect; + first?: number; + filter?: CompositeTypeFilter; + orderBy?: CompositeTypeOrderBy[]; + }; databaseTransfers?: { select: DatabaseTransferSelect; first?: number; @@ -2674,8 +2712,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2718,6 +2754,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -2740,8 +2780,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -2764,12 +2802,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -2872,8 +2910,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -2932,8 +2968,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -2980,8 +3014,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3034,8 +3066,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3118,8 +3148,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3164,8 +3192,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3202,8 +3228,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3270,8 +3294,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3310,8 +3332,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3358,8 +3378,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3394,6 +3412,8 @@ export interface ViewFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -3406,6 +3426,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -3596,8 +3618,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -3613,6 +3633,40 @@ export interface EnumFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4204,6 +4258,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -4236,6 +4294,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -4584,8 +4646,6 @@ export type SchemaOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4616,8 +4676,6 @@ export type TableOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'USE_RLS_ASC' @@ -4640,12 +4698,12 @@ export type TableOrderBy = | 'PARTITION_KEY_NAMES_DESC' | 'PARTITION_KEY_TYPES_ASC' | 'PARTITION_KEY_TYPES_DESC' - | 'INHERITS_ID_ASC' - | 'INHERITS_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'UPDATED_AT_DESC' + | 'INHERITS_ID_ASC' + | 'INHERITS_ID_DESC'; export type CheckConstraintOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -4668,8 +4726,6 @@ export type CheckConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4720,8 +4776,6 @@ export type FieldOrderBy = | 'TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'CREATED_AT_ASC' @@ -4752,8 +4806,6 @@ export type SpatialRelationOrderBy = | 'PARAM_NAME_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4792,8 +4844,6 @@ export type ForeignKeyConstraintOrderBy = | 'UPDATE_ACTION_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4858,8 +4908,6 @@ export type IndexOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4896,8 +4944,6 @@ export type PolicyOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4926,8 +4972,6 @@ export type PrimaryKeyConstraintOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -4978,8 +5022,6 @@ export type TriggerOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5010,8 +5052,6 @@ export type UniqueConstraintOrderBy = | 'FIELD_IDS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5050,8 +5090,6 @@ export type ViewOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5062,6 +5100,8 @@ export type ViewTableOrderBy = | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' | 'VIEW_ID_ASC' | 'VIEW_ID_DESC' | 'TABLE_ID_ASC' @@ -5204,8 +5244,32 @@ export type EnumOrderBy = | 'SMART_TAGS_DESC' | 'CATEGORY_ASC' | 'CATEGORY_DESC' - | 'MODULE_ASC' - | 'MODULE_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type CompositeTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'LABEL_ASC' + | 'LABEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'ATTRIBUTES_ASC' + | 'ATTRIBUTES_DESC' + | 'SMART_TAGS_ASC' + | 'SMART_TAGS_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'TAGS_ASC' @@ -5737,7 +5801,6 @@ export interface CreateSchemaInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; isPublic?: boolean; @@ -5751,7 +5814,6 @@ export interface SchemaPatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; isPublic?: boolean | null; @@ -5775,7 +5837,6 @@ export interface CreateTableInput { description?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; useRls?: boolean; timestamps?: boolean; @@ -5798,7 +5859,6 @@ export interface TablePatch { description?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; useRls?: boolean | null; timestamps?: boolean | null; @@ -5832,7 +5892,6 @@ export interface CreateCheckConstraintInput { expr?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5846,7 +5905,6 @@ export interface CheckConstraintPatch { expr?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5880,7 +5938,6 @@ export interface CreateFieldInput { max?: number; tags?: string[]; category?: ObjectCategory; - module?: string; scope?: number; }; } @@ -5903,7 +5960,6 @@ export interface FieldPatch { max?: number | null; tags?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; } export interface UpdateFieldInput { @@ -5927,7 +5983,6 @@ export interface CreateSpatialRelationInput { operator: string; paramName?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5942,7 +5997,6 @@ export interface SpatialRelationPatch { operator?: string | null; paramName?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -5970,7 +6024,6 @@ export interface CreateForeignKeyConstraintInput { deleteAction?: string; updateAction?: string; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -5988,7 +6041,6 @@ export interface ForeignKeyConstraintPatch { deleteAction?: string | null; updateAction?: string | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6047,7 +6099,6 @@ export interface CreateIndexInput { opClasses?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6066,7 +6117,6 @@ export interface IndexPatch { opClasses?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6093,7 +6143,6 @@ export interface CreatePolicyInput { data?: Record; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6110,7 +6159,6 @@ export interface PolicyPatch { data?: Record | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6133,7 +6181,6 @@ export interface CreatePrimaryKeyConstraintInput { fieldIds: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6146,7 +6193,6 @@ export interface PrimaryKeyConstraintPatch { fieldIds?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6197,7 +6243,6 @@ export interface CreateTriggerInput { functionName?: string; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6210,7 +6255,6 @@ export interface TriggerPatch { functionName?: string | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6234,7 +6278,6 @@ export interface CreateUniqueConstraintInput { type?: string; fieldIds: string[]; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6248,7 +6291,6 @@ export interface UniqueConstraintPatch { type?: string | null; fieldIds?: string[] | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6276,7 +6318,6 @@ export interface CreateViewInput { isReadOnly?: boolean; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6294,7 +6335,6 @@ export interface ViewPatch { isReadOnly?: boolean | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6310,12 +6350,14 @@ export interface DeleteViewInput { export interface CreateViewTableInput { clientMutationId?: string; viewTable: { + databaseId?: string; viewId: string; tableId: string; joinOrder?: number; }; } export interface ViewTablePatch { + databaseId?: string | null; viewId?: string | null; tableId?: string | null; joinOrder?: number | null; @@ -6496,7 +6538,6 @@ export interface CreateEnumInput { values?: string[]; smartTags?: Record; category?: ObjectCategory; - module?: string; scope?: number; tags?: string[]; }; @@ -6510,7 +6551,6 @@ export interface EnumPatch { values?: string[] | null; smartTags?: Record | null; category?: ObjectCategory | null; - module?: string | null; scope?: number | null; tags?: string[] | null; } @@ -6523,6 +6563,42 @@ export interface DeleteEnumInput { clientMutationId?: string; id: string; } +export interface CreateCompositeTypeInput { + clientMutationId?: string; + compositeType: { + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + }; +} +export interface CompositeTypePatch { + databaseId?: string | null; + schemaId?: string | null; + name?: string | null; + label?: string | null; + description?: string | null; + attributes?: Record | null; + smartTags?: Record | null; + category?: ObjectCategory | null; + scope?: number | null; + tags?: string[] | null; +} +export interface UpdateCompositeTypeInput { + clientMutationId?: string; + id: string; + compositeTypePatch: CompositeTypePatch; +} +export interface DeleteCompositeTypeInput { + clientMutationId?: string; + id: string; +} export interface CreateApiSchemaInput { clientMutationId?: string; apiSchema: { @@ -7250,6 +7326,7 @@ export const connectionFieldsMap = { defaultPrivileges: 'DefaultPrivilege', enums: 'Enum', functions: 'Function', + compositeTypes: 'CompositeType', apiSchemas: 'ApiSchema', }, Table: { @@ -7307,6 +7384,7 @@ export const connectionFieldsMap = { triggers: 'Trigger', uniqueConstraints: 'UniqueConstraint', views: 'View', + viewTables: 'ViewTable', viewGrants: 'ViewGrant', viewRules: 'ViewRule', defaultPrivileges: 'DefaultPrivilege', @@ -7315,6 +7393,7 @@ export const connectionFieldsMap = { spatialRelations: 'SpatialRelation', functions: 'Function', partitions: 'Partition', + compositeTypes: 'CompositeType', databaseTransfers: 'DatabaseTransfer', apis: 'Api', apiModules: 'ApiModule', @@ -7472,6 +7551,15 @@ export interface SchemaToManyFunctionFilter { /** Filters to entities where no related entity matches. */ none?: FunctionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface SchemaToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface SchemaToManyApiSchemaFilter { /** Filters to entities where at least one related entity matches. */ @@ -8151,6 +8239,15 @@ export interface DatabaseToManyViewFilter { /** Filters to entities where no related entity matches. */ none?: ViewFilter; } +/** A filter to be used against many `ViewTable` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyViewTableFilter { + /** Filters to entities where at least one related entity matches. */ + some?: ViewTableFilter; + /** Filters to entities where every related entity matches. */ + every?: ViewTableFilter; + /** Filters to entities where no related entity matches. */ + none?: ViewTableFilter; +} /** A filter to be used against many `ViewGrant` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyViewGrantFilter { /** Filters to entities where at least one related entity matches. */ @@ -8223,6 +8320,15 @@ export interface DatabaseToManyPartitionFilter { /** Filters to entities where no related entity matches. */ none?: PartitionFilter; } +/** A filter to be used against many `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface DatabaseToManyCompositeTypeFilter { + /** Filters to entities where at least one related entity matches. */ + some?: CompositeTypeFilter; + /** Filters to entities where every related entity matches. */ + every?: CompositeTypeFilter; + /** Filters to entities where no related entity matches. */ + none?: CompositeTypeFilter; +} /** A filter to be used against many `DatabaseTransfer` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseTransferFilter { /** Filters to entities where at least one related entity matches. */ @@ -8331,6 +8437,761 @@ export interface DatabaseToManyCorsSettingFilter { /** Filters to entities where no related entity matches. */ none?: CorsSettingFilter; } +/** An input for mutations affecting `Function` */ +export interface FunctionInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + partitioned?: boolean; + partitionStrategy?: string; + partitionKeyNames?: string[]; + partitionKeyTypes?: string[]; + createdAt?: string; + updatedAt?: string; + inheritsId?: string; +} +/** An input for mutations affecting `CheckConstraint` */ +export interface CheckConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + expr?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Field` */ +export interface FieldInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + label?: string; + description?: string; + smartTags?: Record; + isRequired?: boolean; + apiRequired?: boolean; + defaultValue?: Record; + type: Record; + fieldOrder?: number; + regexp?: string; + chk?: Record; + chkExpr?: Record; + min?: number; + max?: number; + tags?: string[]; + category?: ObjectCategory; + scope?: number; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SpatialRelation` */ +export interface SpatialRelationInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + refTableId: string; + refFieldId: string; + name: string; + operator: string; + paramName?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `FullTextSearch` */ +export interface FullTextSearchInput { + id?: string; + databaseId?: string; + tableId: string; + fieldId: string; + fieldIds: string[]; + weights: string[]; + langs: string[]; + langColumn?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Index` */ +export interface IndexInput { + id?: string; + databaseId: string; + tableId: string; + name?: string; + fieldIds?: string[]; + includeFieldIds?: string[]; + accessMethod?: string; + indexParams?: Record; + whereClause?: Record; + isUnique?: boolean; + options?: Record; + opClasses?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Policy` */ +export interface PolicyInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + granteeName?: string; + privilege?: string; + permissive?: boolean; + disabled?: boolean; + policyType?: string; + data?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `PrimaryKeyConstraint` */ +export interface PrimaryKeyConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + type?: string; + fieldIds: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `TableGrant` */ +export interface TableGrantInput { + id?: string; + databaseId?: string; + tableId: string; + privilege: string; + granteeName: string; + fieldIds?: string[]; + isGrant?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Trigger` */ +export interface TriggerInput { + id?: string; + databaseId?: string; + tableId: string; + name: string; + event?: string; + functionName?: string; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `UniqueConstraint` */ +export interface UniqueConstraintInput { + id?: string; + databaseId?: string; + tableId: string; + name?: string; + description?: string; + smartTags?: Record; + type?: string; + fieldIds: string[]; + category?: ObjectCategory; + scope?: number; + tags?: string[]; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `View` */ +export interface ViewInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + tableId?: string; + viewType: string; + data?: Record; + filterType?: string; + filterData?: Record; + securityInvoker?: boolean; + isReadOnly?: boolean; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ViewTable` */ +export interface ViewTableInput { + id?: string; + databaseId?: string; + viewId: string; + tableId: string; + joinOrder?: number; +} +/** An input for mutations affecting `ViewGrant` */ +export interface ViewGrantInput { + id?: string; + databaseId?: string; + viewId: string; + granteeName: string; + privilege: string; + withGrantOption?: boolean; + isGrant?: boolean; +} +/** An input for mutations affecting `ViewRule` */ +export interface ViewRuleInput { + id?: string; + databaseId?: string; + viewId: string; + name: string; + /** INSERT, UPDATE, or DELETE */ + event: string; + /** NOTHING (for read-only) or custom action */ + action?: string; +} +/** 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?: Record; + searchIndexes?: Record; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + embeddingModel?: string; + embeddingProvider?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `SchemaGrant` */ +export interface SchemaGrantInput { + id?: string; + databaseId?: string; + schemaId: string; + granteeName: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DefaultPrivilege` */ +export interface DefaultPrivilegeInput { + id?: string; + databaseId?: string; + schemaId: string; + objectType: string; + privilege: string; + granteeName: string; + isGrant?: boolean; +} +/** An input for mutations affecting `Enum` */ +export interface EnumInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + values?: string[]; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `CompositeType` */ +export interface CompositeTypeInput { + id?: string; + databaseId: string; + schemaId: string; + name: string; + label?: string; + description?: string; + attributes?: Record; + smartTags?: Record; + category?: ObjectCategory; + scope?: number; + tags?: string[]; +} +/** An input for mutations affecting `ApiSchema` */ +export interface ApiSchemaInput { + /** Unique identifier for this API-schema mapping */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Metaschema schema being exposed through the API */ + schemaId: string; + /** API that exposes this schema */ + apiId: string; +} +/** 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: Record; +} +/** An input for mutations affecting `Domain` */ +export interface DomainInput { + /** Unique identifier for this domain record */ + id?: string; + /** Reference to the metaschema database this domain belongs to */ + databaseId: string; + /** API endpoint this domain routes to (mutually exclusive with site_id) */ + apiId?: string; + /** Site this domain routes to (mutually exclusive with api_id) */ + siteId?: string; + /** Subdomain portion of the hostname */ + subdomain?: ConstructiveInternalTypeHostname; + /** Root domain of the hostname */ + domain?: ConstructiveInternalTypeHostname; +} +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this metadata belongs to */ + siteId: string; + /** 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; +} +/** 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: Record; +} +/** 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: Record; +} +/** An input for mutations affecting `CorsSetting` */ +export interface CorsSettingInput { + /** Unique identifier for this CORS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Optional API for per-API override; NULL means database-wide default */ + apiId?: string; + /** Array of allowed CORS origins (e.g. https://example.com) */ + allowedOrigins?: string[]; +} +/** An input for mutations affecting `TriggerFunction` */ +export interface TriggerFunctionInput { + id?: string; + databaseId: string; + name: string; + code?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `Partition` */ +export interface PartitionInput { + id?: string; + databaseId: string; + tableId: string; + strategy: string; + partitionKeyId: string; + interval?: string; + retention?: string; + retentionKeepTable?: boolean; + premake?: number; + namingPattern?: string; + isParented?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `DatabaseTransfer` */ +export interface DatabaseTransferInput { + id?: string; + databaseId: string; + targetOwnerId: string; + sourceApproved?: boolean; + targetApproved?: boolean; + sourceApprovedAt?: string; + targetApprovedAt?: string; + status?: string; + initiatedBy: string; + notes?: string; + expiresAt?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `Api` */ +export interface ApiInput { + /** Unique identifier for this API */ + id?: string; + /** Reference to the metaschema database this API serves */ + databaseId: string; + /** Unique name for this API within its database */ + name: string; + /** PostgreSQL database name to connect to */ + dbname?: string; + /** PostgreSQL role used for authenticated requests */ + roleName?: string; + /** PostgreSQL role used for anonymous/unauthenticated requests */ + anonRole?: string; + /** Whether this API is publicly accessible without authentication */ + isPublic?: boolean; +} +/** An input for mutations affecting `Site` */ +export interface SiteInput { + /** Unique identifier for this site */ + id?: string; + /** Reference to the metaschema database this site belongs to */ + databaseId: string; + /** 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; +} +/** 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; +} +/** An input for mutations affecting `ApiSetting` */ +export interface ApiSettingInput { + /** Unique identifier for this API settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API these settings override for */ + apiId: string; + /** Override: enable aggregate queries (NULL = inherit from database_settings) */ + enableAggregates?: boolean; + /** Override: enable PostGIS spatial types (NULL = inherit from database_settings) */ + enablePostgis?: boolean; + /** Override: enable unified search (NULL = inherit from database_settings) */ + enableSearch?: boolean; + /** Override: enable direct (multipart) file uploads (NULL = inherit from database_settings) */ + enableDirectUploads?: boolean; + /** Override: enable presigned URL upload flow (NULL = inherit from database_settings) */ + enablePresignedUploads?: boolean; + /** Override: enable many-to-many relationships (NULL = inherit from database_settings) */ + enableManyToMany?: boolean; + /** Override: enable connection filter (NULL = inherit from database_settings) */ + enableConnectionFilter?: boolean; + /** Override: enable ltree hierarchical data type (NULL = inherit from database_settings) */ + enableLtree?: boolean; + /** Override: enable LLM/AI integration features (NULL = inherit from database_settings) */ + enableLlm?: boolean; + /** Override: enable realtime subscriptions (NULL = inherit from database_settings) */ + enableRealtime?: boolean; + /** Override: enable bulk mutations (NULL = inherit from database_settings) */ + enableBulk?: boolean; + /** Override: enable internationalization plugin (NULL = inherit from database_settings) */ + enableI18N?: boolean; + /** Extensible JSON for additional per-API settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; +} +/** An input for mutations affecting `PubkeySetting` */ +export interface PubkeySettingInput { + /** Unique identifier for this pubkey settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing the crypto auth functions (FK to metaschema_public.schema) */ + schemaId?: string; + /** Crypto network for key derivation (e.g. cosmos, ethereum) */ + cryptoNetwork?: string; + /** Field name used to identify the user in crypto auth functions */ + userField?: string; + /** Reference to the sign-up-with-key function (FK to metaschema_public.function) */ + signUpWithKeyFunctionId?: string; + /** Reference to the sign-in challenge request function (FK to metaschema_public.function) */ + signInRequestChallengeFunctionId?: string; + /** Reference to the sign-in failure recording function (FK to metaschema_public.function) */ + signInRecordFailureFunctionId?: string; + /** Reference to the sign-in-with-challenge function (FK to metaschema_public.function) */ + signInWithChallengeFunctionId?: string; +} +/** An input for mutations affecting `Database` */ +export interface DatabaseInput { + id?: string; + ownerId?: string; + schemaHash?: string; + name?: string; + label?: string; + hash?: string; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `RlsSetting` */ +export interface RlsSettingInput { + /** Unique identifier for this RLS settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing authenticate/authenticate_strict functions (FK to metaschema_public.schema) */ + authenticateSchemaId?: string; + /** Schema containing current_role and related functions (FK to metaschema_public.schema) */ + roleSchemaId?: string; + /** Reference to the authenticate function (FK to metaschema_public.function) */ + authenticateFunctionId?: string; + /** Reference to the strict authenticate function (FK to metaschema_public.function) */ + authenticateStrictFunctionId?: string; + /** Reference to the current_role function (FK to metaschema_public.function) */ + currentRoleFunctionId?: string; + /** Reference to the current_role_id function (FK to metaschema_public.function) */ + currentRoleIdFunctionId?: string; + /** Reference to the current_user_agent function (FK to metaschema_public.function) */ + currentUserAgentFunctionId?: string; + /** Reference to the current_ip_address function (FK to metaschema_public.function) */ + currentIpAddressFunctionId?: string; +} +/** An input for mutations affecting `SqlAction` */ +export interface SqlActionInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} +/** An input for mutations affecting `DatabaseSetting` */ +export interface DatabaseSettingInput { + /** Unique identifier for this settings record */ + id?: string; + /** Reference to the metaschema database these settings apply to */ + databaseId: string; + /** Enable aggregate queries (sum, avg, min, max, etc.) in the GraphQL API */ + enableAggregates?: boolean; + /** Enable PostGIS spatial types and operators in the GraphQL API */ + enablePostgis?: boolean; + /** Enable unified search (tsvector, BM25, pg_trgm, pgvector) in the GraphQL API */ + enableSearch?: boolean; + /** Enable direct (multipart) file upload mutations in the GraphQL API */ + enableDirectUploads?: boolean; + /** Enable presigned URL upload flow for S3/MinIO storage */ + enablePresignedUploads?: boolean; + /** Enable many-to-many relationship queries in the GraphQL API */ + enableManyToMany?: boolean; + /** Enable connection filter (where argument) in the GraphQL API */ + enableConnectionFilter?: boolean; + /** Enable ltree hierarchical data type support in the GraphQL API */ + enableLtree?: boolean; + /** Enable LLM/AI integration features in the GraphQL API */ + enableLlm?: boolean; + /** Enable realtime subscriptions (cursor-tracked change delivery) in the GraphQL API */ + enableRealtime?: boolean; + /** Enable bulk mutation operations (insert, upsert, update, delete) in the GraphQL API */ + enableBulk?: boolean; + /** Enable internationalization plugin (localeStrings field, translation table discovery) in the GraphQL API */ + enableI18N?: boolean; + /** Extensible JSON for additional settings that do not have dedicated columns */ + options?: Record; +} +/** An input for mutations affecting `WebauthnSetting` */ +export interface WebauthnSettingInput { + /** Unique identifier for this WebAuthn settings record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Schema containing WebAuthn auth procedures (FK to metaschema_public.schema) */ + schemaId?: string; + /** Schema of the webauthn_credentials table (FK to metaschema_public.schema) */ + credentialsSchemaId?: string; + /** Schema of the sessions table (FK to metaschema_public.schema) */ + sessionsSchemaId?: string; + /** Schema of the session_secrets table (FK to metaschema_public.schema) */ + sessionSecretsSchemaId?: string; + /** Reference to the webauthn_credentials table (FK to metaschema_public.table) */ + credentialsTableId?: string; + /** Reference to the sessions table (FK to metaschema_public.table) */ + sessionsTableId?: string; + /** Reference to the session_credentials table (FK to metaschema_public.table) */ + sessionCredentialsTableId?: string; + /** Reference to the session_secrets table (FK to metaschema_public.table) */ + sessionSecretsTableId?: string; + /** Reference to the user field on webauthn_credentials (FK to metaschema_public.field) */ + userFieldId?: string; + /** WebAuthn Relying Party ID (typically the domain name) */ + rpId?: string; + /** WebAuthn Relying Party display name */ + rpName?: string; + /** Allowed origins for WebAuthn registration and authentication */ + originAllowlist?: string[]; + /** Attestation conveyance preference (none, indirect, direct, enterprise) */ + attestationType?: string; + /** Whether to require user verification (biometric/PIN) during auth */ + requireUserVerification?: boolean; + /** Resident key requirement (discouraged, preferred, required) */ + residentKey?: string; + /** Challenge TTL in seconds (default 300 = 5 minutes) */ + challengeExpirySeconds?: string; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: Record; + deploys?: string; + deploy?: Record; + revert?: Record; + verify?: Record; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -8368,8 +9229,6 @@ export interface TableFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `useRls` field. */ @@ -8392,12 +9251,12 @@ export interface TableFilter { partitionKeyNames?: StringListFilter; /** Filter by the object’s `partitionKeyTypes` field. */ partitionKeyTypes?: StringListFilter; - /** Filter by the object’s `inheritsId` field. */ - inheritsId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; + /** Filter by the object’s `inheritsId` field. */ + inheritsId?: UUIDFilter; /** Checks for all expressions in this list. */ and?: TableFilter[]; /** Checks for any expressions in this list. */ @@ -8534,8 +9393,6 @@ export interface ViewFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8614,8 +9471,6 @@ export interface EnumFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8652,6 +9507,41 @@ export interface FunctionFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } +/** A filter to be used against `CompositeType` object types. All fields are combined with a logical ‘and.’ */ +export interface CompositeTypeFilter { + /** 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 `name` field. */ + name?: StringFilter; + /** Filter by the object’s `label` field. */ + label?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `attributes` field. */ + attributes?: JSONFilter; + /** Filter by the object’s `smartTags` field. */ + smartTags?: JSONFilter; + /** Filter by the object’s `category` field. */ + category?: ObjectCategoryFilter; + /** Filter by the object’s `scope` field. */ + scope?: IntFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: CompositeTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: CompositeTypeFilter[]; + /** Negates the expression. */ + not?: CompositeTypeFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against `ApiSchema` object types. All fields are combined with a logical ‘and.’ */ export interface ApiSchemaFilter { /** Filter by the object’s `id` field. */ @@ -8695,8 +9585,6 @@ export interface CheckConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8756,8 +9644,6 @@ export interface FieldFilter { tags?: StringListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `createdAt` field. */ @@ -8811,8 +9697,6 @@ export interface ForeignKeyConstraintFilter { updateAction?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8897,8 +9781,6 @@ export interface IndexFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8944,8 +9826,6 @@ export interface PolicyFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -8983,8 +9863,6 @@ export interface PrimaryKeyConstraintFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9053,8 +9931,6 @@ export interface TriggerFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9094,8 +9970,6 @@ export interface UniqueConstraintFilter { fieldIds?: UUIDListFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9119,6 +9993,8 @@ export interface UniqueConstraintFilter { export interface ViewTableFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; /** Filter by the object’s `viewId` field. */ viewId?: UUIDFilter; /** Filter by the object’s `tableId` field. */ @@ -9131,6 +10007,8 @@ export interface ViewTableFilter { or?: ViewTableFilter[]; /** Negates the expression. */ not?: ViewTableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; /** Filter by the object’s `table` relation. */ table?: TableFilter; /** Filter by the object’s `view` relation. */ @@ -9225,8 +10103,6 @@ export interface SpatialRelationFilter { paramName?: StringFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9464,8 +10340,6 @@ export interface SchemaFilter { smartTags?: JSONFilter; /** Filter by the object’s `category` field. */ category?: ObjectCategoryFilter; - /** Filter by the object’s `module` field. */ - module?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: IntFilter; /** Filter by the object’s `tags` field. */ @@ -9508,6 +10382,10 @@ export interface SchemaFilter { functions?: SchemaToManyFunctionFilter; /** `functions` exist. */ functionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: SchemaToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `apiSchemas` relation. */ apiSchemas?: SchemaToManyApiSchemaFilter; /** `apiSchemas` exist. */ @@ -10121,6 +10999,10 @@ export interface DatabaseFilter { views?: DatabaseToManyViewFilter; /** `views` exist. */ viewsExist?: boolean; + /** Filter by the object’s `viewTables` relation. */ + viewTables?: DatabaseToManyViewTableFilter; + /** `viewTables` exist. */ + viewTablesExist?: boolean; /** Filter by the object’s `viewGrants` relation. */ viewGrants?: DatabaseToManyViewGrantFilter; /** `viewGrants` exist. */ @@ -10153,6 +11035,10 @@ export interface DatabaseFilter { partitions?: DatabaseToManyPartitionFilter; /** `partitions` exist. */ partitionsExist?: boolean; + /** Filter by the object’s `compositeTypes` relation. */ + compositeTypes?: DatabaseToManyCompositeTypeFilter; + /** `compositeTypes` exist. */ + compositeTypesExist?: boolean; /** Filter by the object’s `databaseTransfers` relation. */ databaseTransfers?: DatabaseToManyDatabaseTransferFilter; /** `databaseTransfers` exist. */ @@ -11620,6 +12506,51 @@ export type DeleteEnumPayloadSelect = { select: EnumEdgeSelect; }; }; +export interface CreateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was created by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type CreateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface UpdateCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was updated by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type UpdateCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; +export interface DeleteCompositeTypePayload { + clientMutationId?: string | null; + /** The `CompositeType` that was deleted by this mutation. */ + compositeType?: CompositeType | null; + compositeTypeEdge?: CompositeTypeEdge | null; +} +export type DeleteCompositeTypePayloadSelect = { + clientMutationId?: boolean; + compositeType?: { + select: CompositeTypeSelect; + }; + compositeTypeEdge?: { + select: CompositeTypeEdgeSelect; + }; +}; export interface CreateApiSchemaPayload { clientMutationId?: string | null; /** The `ApiSchema` that was created by this mutation. */ @@ -12845,6 +13776,18 @@ export type EnumEdgeSelect = { select: EnumSelect; }; }; +/** A `CompositeType` edge in the connection. */ +export interface CompositeTypeEdge { + cursor?: string | null; + /** The `CompositeType` at the end of the edge. */ + node?: CompositeType | null; +} +export type CompositeTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: CompositeTypeSelect; + }; +}; /** A `ApiSchema` edge in the connection. */ export interface ApiSchemaEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/api/orm/models/compositeType.ts b/sdk/constructive-sdk/src/api/orm/models/compositeType.ts new file mode 100644 index 0000000000..0f46f810e9 --- /dev/null +++ b/sdk/constructive-sdk/src/api/orm/models/compositeType.ts @@ -0,0 +1,244 @@ +/** + * CompositeType 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 { + CompositeType, + CompositeTypeWithRelations, + CompositeTypeSelect, + CompositeTypeFilter, + CompositeTypeOrderBy, + CreateCompositeTypeInput, + UpdateCompositeTypeInput, + CompositeTypePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class CompositeTypeModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeTypes: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + 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, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeTypes', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + compositeType: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'CompositeType', + 'compositeTypes', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'CompositeTypeFilter', + 'CompositeTypeOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'CompositeType', + fieldName: 'compositeType', + document, + variables, + transform: (data: { + compositeTypes?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + compositeType: data.compositeTypes?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'CompositeType', + 'createCompositeType', + 'compositeType', + args.select, + args.data, + 'CreateCompositeTypeInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'createCompositeType', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + CompositeTypePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'CompositeType', + 'updateCompositeType', + 'compositeType', + args.select, + args.where.id, + args.data, + 'UpdateCompositeTypeInput', + 'id', + 'compositeTypePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'updateCompositeType', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteCompositeType: { + compositeType: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'CompositeType', + 'deleteCompositeType', + 'compositeType', + { + id: args.where.id, + }, + 'DeleteCompositeTypeInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'CompositeType', + fieldName: 'deleteCompositeType', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/api/orm/models/index.ts b/sdk/constructive-sdk/src/api/orm/models/index.ts index 326c47f972..ddc91f27a9 100644 --- a/sdk/constructive-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-sdk/src/api/orm/models/index.ts @@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk'; export { SchemaGrantModel } from './schemaGrant'; export { DefaultPrivilegeModel } from './defaultPrivilege'; export { EnumModel } from './enum'; +export { CompositeTypeModel } from './compositeType'; export { ApiSchemaModel } from './apiSchema'; export { ApiModuleModel } from './apiModule'; export { DomainModel } from './domain'; diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 863e038629..e7bb3828bf 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:** 22 +- **Custom mutations:** 25 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 4a4fbb5278..68bf0ce72d 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -632,6 +632,36 @@ signInCrossOrigin const result = await db.mutation.signInCrossOrigin({ input: { token: '', credentialKind: '' } }).execute(); ``` +### `db.mutation.signInSmsOtp` + +signInSmsOtp + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignInSmsOtpInput (required) | + +```typescript +const result = await db.mutation.signInSmsOtp({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + +### `db.mutation.signUpSms` + +signUpSms + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | SignUpSmsInput (required) | + +```typescript +const result = await db.mutation.signUpSms({ input: { phone: '', code: '', credentialKind: '', rememberMe: '', deviceToken: '' } }).execute(); +``` + ### `db.mutation.signUp` signUp @@ -662,6 +692,21 @@ signIn const result = await db.mutation.signIn({ input: '' }).execute(); ``` +### `db.mutation.linkIdentity` + +linkIdentity + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `input` | LinkIdentityInput (required) | + +```typescript +const result = await db.mutation.linkIdentity({ input: { service: '', identifier: '', details: '' } }).execute(); +``` + ### `db.mutation.extendTokenExpires` extendTokenExpires diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index d1926edee2..8e73cfffb4 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -362,7 +362,7 @@ export interface User { 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. */ + /** Composite search relevance score (0..1, higher = more relevant). Computed using Reciprocal Rank Fusion (RRF) across all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ searchScore?: number | null; } // ============ Relation Helper Types ============ @@ -1306,6 +1306,22 @@ export interface SignInCrossOriginInput { token?: string; credentialKind?: string; } +export interface SignInSmsOtpInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} +export interface SignUpSmsInput { + clientMutationId?: string; + phone?: string; + code?: string; + credentialKind?: string; + rememberMe?: boolean; + deviceToken?: string; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -1324,6 +1340,12 @@ export interface SignInInput { csrfToken?: string; deviceToken?: string; } +export interface LinkIdentityInput { + clientMutationId?: string; + service: string; + identifier: string; + details?: Record; +} export interface ExtendTokenExpiresInput { clientMutationId?: string; amount?: IntervalInput; @@ -1698,6 +1720,132 @@ export interface TrgmSearchInput { /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ threshold?: number; } +/** 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; +} +/** An input for mutations affecting `PhoneNumber` */ +export interface PhoneNumberInput { + id?: string; + ownerId?: string; + /** 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?: string; + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAddress` */ +export interface CryptoAddressInput { + id?: string; + ownerId?: string; + /** The cryptocurrency wallet address, validated against network-specific patterns */ + address: string; + /** Whether ownership of this address has been cryptographically verified */ + isVerified?: boolean; + /** Whether this is the user's primary cryptocurrency address */ + isPrimary?: boolean; + /** Optional user-provided label for this address (e.g. "Main wallet", "Hardware wallet"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} +/** 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; +} +/** An input for mutations affecting `AuditLogAuth` */ +export interface AuditLogAuthInput { + createdAt?: string; + /** Unique identifier for each audit event (uuidv7 provides temporal ordering) */ + 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; +} +/** An input for mutations affecting `IdentityProvider` */ +export interface IdentityProviderInput { + slug?: string; + kind?: string; + displayName?: string; + enabled?: boolean; + isBuiltIn?: boolean; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} +/** An input for mutations affecting `UserConnectedAccount` */ +export interface UserConnectedAccountInput { + id?: string; + ownerId?: string; + service?: string; + identifier?: string; + details?: Record; + isVerified?: boolean; + createdAt?: string; + updatedAt?: string; +} +/** An input for mutations affecting `User` */ +export interface UserInput { + id?: string; + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + createdAt?: string; + updatedAt?: string; +} /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { /** @@ -2345,6 +2493,26 @@ export type SignInCrossOriginPayloadSelect = { select: SignInCrossOriginRecordSelect; }; }; +export interface SignInSmsOtpPayload { + clientMutationId?: string | null; + result?: SignInSmsOtpRecord | null; +} +export type SignInSmsOtpPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignInSmsOtpRecordSelect; + }; +}; +export interface SignUpSmsPayload { + clientMutationId?: string | null; + result?: SignUpSmsRecord | null; +} +export type SignUpSmsPayloadSelect = { + clientMutationId?: boolean; + result?: { + select: SignUpSmsRecordSelect; + }; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -2365,6 +2533,14 @@ export type SignInPayloadSelect = { select: SignInRecordSelect; }; }; +export interface LinkIdentityPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type LinkIdentityPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; result?: ExtendTokenExpiresRecord[] | null; @@ -2782,6 +2958,26 @@ export type SignInCrossOriginRecordSelect = { isVerified?: boolean; totpEnabled?: boolean; }; +export interface SignInSmsOtpRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignInSmsOtpRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; +export interface SignUpSmsRecord { + userId?: string | null; + accessToken?: string | null; + accessTokenExpiresAt?: string | null; +} +export type SignUpSmsRecordSelect = { + userId?: boolean; + accessToken?: boolean; + accessTokenExpiresAt?: boolean; +}; export interface SignUpRecord { id?: string | null; userId?: string | null; diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 14c035b5d4..d8864374dd 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -21,8 +21,11 @@ import type { ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, + SignInSmsOtpInput, + SignUpSmsInput, SignUpInput, SignInInput, + LinkIdentityInput, ExtendTokenExpiresInput, CreateApiKeyInput, RequestCrossOriginTokenInput, @@ -43,8 +46,11 @@ import type { ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, + SignInSmsOtpPayload, + SignUpSmsPayload, SignUpPayload, SignInPayload, + LinkIdentityPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, RequestCrossOriginTokenPayload, @@ -65,8 +71,11 @@ import type { ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, + SignInSmsOtpPayloadSelect, + SignUpSmsPayloadSelect, SignUpPayloadSelect, SignInPayloadSelect, + LinkIdentityPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, RequestCrossOriginTokenPayloadSelect, @@ -117,12 +126,21 @@ export interface ResetPasswordVariables { export interface SignInCrossOriginVariables { input: SignInCrossOriginInput; } +export interface SignInSmsOtpVariables { + input: SignInSmsOtpInput; +} +export interface SignUpSmsVariables { + input: SignUpSmsInput; +} export interface SignUpVariables { input: SignUpInput; } export interface SignInVariables { input: SignInInput; } +export interface LinkIdentityVariables { + input: LinkIdentityInput; +} export interface ExtendTokenExpiresVariables { input: ExtendTokenExpiresInput; } @@ -556,6 +574,64 @@ export function createMutationOperations(client: OrmClient) { 'SignInCrossOriginPayload' ), }), + signInSmsOtp: ( + args: SignInSmsOtpVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signInSmsOtp: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignInSmsOtp', + fieldName: 'signInSmsOtp', + ...buildCustomDocument( + 'mutation', + 'SignInSmsOtp', + 'signInSmsOtp', + options.select, + args, + [ + { + name: 'input', + type: 'SignInSmsOtpInput!', + }, + ], + connectionFieldsMap, + 'SignInSmsOtpPayload' + ), + }), + signUpSms: ( + args: SignUpSmsVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + signUpSms: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SignUpSms', + fieldName: 'signUpSms', + ...buildCustomDocument( + 'mutation', + 'SignUpSms', + 'signUpSms', + options.select, + args, + [ + { + name: 'input', + type: 'SignUpSmsInput!', + }, + ], + connectionFieldsMap, + 'SignUpSmsPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -614,6 +690,35 @@ export function createMutationOperations(client: OrmClient) { 'SignInPayload' ), }), + linkIdentity: ( + args: LinkIdentityVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + linkIdentity: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'LinkIdentity', + fieldName: 'linkIdentity', + ...buildCustomDocument( + 'mutation', + 'LinkIdentity', + 'linkIdentity', + options.select, + args, + [ + { + name: 'input', + type: 'LinkIdentityInput!', + }, + ], + connectionFieldsMap, + 'LinkIdentityPayload' + ), + }), extendTokenExpires: ( args: ExtendTokenExpiresVariables, options: { diff --git a/sdk/constructive-sdk/src/modules/README.md b/sdk/constructive-sdk/src/modules/README.md index c55f613d52..aa2f7100c0 100644 --- a/sdk/constructive-sdk/src/modules/README.md +++ b/sdk/constructive-sdk/src/modules/README.md @@ -8,7 +8,7 @@ ## Overview -- **Tables:** 56 +- **Tables:** 57 - **Custom queries:** 2 - **Custom mutations:** 10 diff --git a/sdk/constructive-sdk/src/modules/orm/README.md b/sdk/constructive-sdk/src/modules/orm/README.md index 2d52e7421a..029e5d6ca7 100644 --- a/sdk/constructive-sdk/src/modules/orm/README.md +++ b/sdk/constructive-sdk/src/modules/orm/README.md @@ -38,45 +38,46 @@ const db = createClient({ | `usersModule` | findMany, findOne, create, update, delete | | `webauthnCredentialsModule` | findMany, findOne, create, update, delete | | `cryptoAddressesModule` | findMany, findOne, create, update, delete | -| `identityProvidersModule` | findMany, findOne, create, update, delete | | `denormalizedTableField` | findMany, findOne, create, update, delete | +| `identityProvidersModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `blueprint` | findMany, findOne, create, update, delete | | `blueprintTemplate` | findMany, findOne, create, update, delete | | `blueprintConstruction` | findMany, findOne, create, update, delete | | `cryptoAuthModule` | findMany, findOne, create, update, delete | -| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `sessionsModule` | findMany, findOne, create, update, delete | -| `configSecretsModule` | findMany, findOne, create, update, delete | +| `secureTableProvision` | findMany, findOne, create, update, delete | | `merkleStoreModule` | findMany, findOne, create, update, delete | | `graphModule` | findMany, findOne, create, update, delete | -| `secureTableProvision` | findMany, findOne, create, update, delete | -| `invitesModule` | findMany, findOne, create, update, delete | | `databaseProvisionModule` | findMany, findOne, create, update, delete | -| `namespaceModule` | findMany, findOne, create, update, delete | +| `configSecretsModule` | findMany, findOne, create, update, delete | +| `rateLimitMetersModule` | findMany, findOne, create, update, delete | | `realtimeModule` | findMany, findOne, create, update, delete | | `webauthnAuthModule` | findMany, findOne, create, update, delete | +| `functionInvocationModule` | findMany, findOne, create, update, delete | +| `functionModule` | findMany, findOne, create, update, delete | +| `invitesModule` | findMany, findOne, create, update, delete | +| `namespaceModule` | findMany, findOne, create, update, delete | | `computeLogModule` | findMany, findOne, create, update, delete | | `inferenceLogModule` | findMany, findOne, create, update, delete | | `storageLogModule` | findMany, findOne, create, update, delete | | `transferLogModule` | findMany, findOne, create, update, delete | -| `dbUsageModule` | findMany, findOne, create, update, delete | -| `notificationsModule` | findMany, findOne, create, update, delete | | `plansModule` | findMany, findOne, create, update, delete | -| `hierarchyModule` | findMany, findOne, create, update, delete | -| `billingModule` | findMany, findOne, create, update, delete | | `billingProviderModule` | findMany, findOne, create, update, delete | -| `profilesModule` | findMany, findOne, create, update, delete | +| `dbUsageModule` | findMany, findOne, create, update, delete | +| `hierarchyModule` | findMany, findOne, create, update, delete | | `permissionsModule` | findMany, findOne, create, update, delete | +| `notificationsModule` | findMany, findOne, create, update, delete | +| `profilesModule` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `relationProvision` | findMany, findOne, create, update, delete | -| `functionModule` | findMany, findOne, create, update, delete | | `userAuthModule` | findMany, findOne, create, update, delete | | `agentModule` | findMany, findOne, create, update, delete | | `limitsModule` | findMany, findOne, create, update, delete | | `membershipsModule` | findMany, findOne, create, update, delete | +| `entityTypeProvision` | findMany, findOne, create, update, delete | | `storageModule` | findMany, findOne, create, update, delete | | `eventsModule` | findMany, findOne, create, update, delete | -| `entityTypeProvision` | findMany, findOne, create, update, delete | ## Table Operations @@ -681,9 +682,9 @@ const updated = await db.cryptoAddressesModule.update({ where: { id: '' }, const deleted = await db.cryptoAddressesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.identityProvidersModule` +### `db.denormalizedTableField` -CRUD operations for IdentityProvidersModule records. +CRUD operations for DenormalizedTableField records. **Fields:** @@ -691,38 +692,39 @@ CRUD operations for IdentityProvidersModule records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `fieldId` | UUID | Yes | +| `setIds` | UUID | Yes | +| `refTableId` | UUID | Yes | +| `refFieldId` | UUID | Yes | +| `refIds` | UUID | Yes | +| `useUpdates` | Boolean | Yes | +| `updateDefaults` | Boolean | Yes | +| `funcName` | String | Yes | +| `funcOrder` | Int | Yes | **Operations:** ```typescript -// List all identityProvidersModule records -const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +// List all denormalizedTableField records +const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Get one by id -const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); +const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); // Create -const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); +const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); ``` -### `db.denormalizedTableField` +### `db.identityProvidersModule` -CRUD operations for DenormalizedTableField records. +CRUD operations for IdentityProvidersModule records. **Fields:** @@ -730,34 +732,35 @@ CRUD operations for DenormalizedTableField records. |-------|------|----------| | `id` | UUID | No | | `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | -| `fieldId` | UUID | Yes | -| `setIds` | UUID | Yes | -| `refTableId` | UUID | Yes | -| `refFieldId` | UUID | Yes | -| `refIds` | UUID | Yes | -| `useUpdates` | Boolean | Yes | -| `updateDefaults` | Boolean | Yes | -| `funcName` | String | Yes | -| `funcOrder` | Int | Yes | +| `tableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | **Operations:** ```typescript -// List all denormalizedTableField records -const items = await db.denormalizedTableField.findMany({ select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +// List all identityProvidersModule records +const items = await db.identityProvidersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Get one by id -const item = await db.denormalizedTableField.findOne({ id: '', select: { id: true, databaseId: true, tableId: true, fieldId: true, setIds: true, refTableId: true, refFieldId: true, refIds: true, useUpdates: true, updateDefaults: true, funcName: true, funcOrder: true } }).execute(); +const item = await db.identityProvidersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true } }).execute(); // Create -const created = await db.denormalizedTableField.create({ data: { databaseId: '', tableId: '', fieldId: '', setIds: '', refTableId: '', refFieldId: '', refIds: '', useUpdates: '', updateDefaults: '', funcName: '', funcOrder: '' }, select: { id: true } }).execute(); +const created = await db.identityProvidersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.denormalizedTableField.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvidersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.denormalizedTableField.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvidersModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -970,48 +973,6 @@ const updated = await db.cryptoAuthModule.update({ where: { id: '' }, data const deleted = await db.cryptoAuthModule.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitMetersModule` - -CRUD operations for RateLimitMetersModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `rateLimitStateTableId` | UUID | Yes | -| `rateLimitStateTableName` | String | Yes | -| `rateLimitOverridesTableId` | UUID | Yes | -| `rateLimitOverridesTableName` | String | Yes | -| `rateWindowLimitsTableId` | UUID | Yes | -| `rateWindowLimitsTableName` | String | Yes | -| `checkRateLimitFunction` | String | Yes | -| `prefix` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all rateLimitMetersModule records -const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.sessionsModule` CRUD operations for SessionsModule records. @@ -1051,9 +1012,9 @@ const updated = await db.sessionsModule.update({ where: { id: '' }, data: const deleted = await db.sessionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.configSecretsModule` +### `db.secureTableProvision` -CRUD operations for ConfigSecretsModule records. +CRUD operations for SecureTableProvision records. **Fields:** @@ -1062,36 +1023,32 @@ CRUD operations for ConfigSecretsModule records. | `id` | UUID | No | | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | | `tableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | | `tableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | +| `nodes` | JSON | Yes | +| `useRls` | Boolean | Yes | +| `fields` | JSON | Yes | +| `grants` | JSON | Yes | | `policies` | JSON | Yes | -| `provisions` | JSON | Yes | -| `hasConfig` | Boolean | Yes | +| `outFields` | UUID | Yes | **Operations:** ```typescript -// List all configSecretsModule records -const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +// List all secureTableProvision records +const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Get one by id -const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); +const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); // Create -const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); +const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); // Update -const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); ``` ### `db.merkleStoreModule` @@ -1116,19 +1073,20 @@ CRUD operations for MerkleStoreModule records. | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | +| `functionPrefix` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all merkleStoreModule records -const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const items = await db.merkleStoreModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Get one by id -const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, createdAt: true } }).execute(); +const item = await db.merkleStoreModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, objectTableId: true, storeTableId: true, commitTableId: true, refTableId: true, prefix: true, apiName: true, privateApiName: true, scope: true, functionPrefix: true, createdAt: true } }).execute(); // Create -const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '' }, select: { id: true } }).execute(); +const created = await db.merkleStoreModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', objectTableId: '', storeTableId: '', commitTableId: '', refTableId: '', prefix: '', apiName: '', privateApiName: '', scope: '', functionPrefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.merkleStoreModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1162,19 +1120,20 @@ CRUD operations for GraphModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all graphModule records -const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const items = await db.graphModule.findMany({ select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, createdAt: true } }).execute(); +const item = await db.graphModule.findOne({ id: '', select: { id: true, databaseId: true, publicSchemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, scope: true, prefix: true, merkleStoreModuleId: true, graphsTableId: true, executionsTableId: true, outputsTableId: true, apiName: true, privateApiName: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.graphModule.create({ data: { databaseId: '', publicSchemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', scope: '', prefix: '', merkleStoreModuleId: '', graphsTableId: '', executionsTableId: '', outputsTableId: '', apiName: '', privateApiName: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.graphModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1183,89 +1142,6 @@ const updated = await db.graphModule.update({ where: { id: '' }, data: { d const deleted = await db.graphModule.delete({ where: { id: '' } }).execute(); ``` -### `db.secureTableProvision` - -CRUD operations for SecureTableProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `nodes` | JSON | Yes | -| `useRls` | Boolean | Yes | -| `fields` | JSON | Yes | -| `grants` | JSON | Yes | -| `policies` | JSON | Yes | -| `outFields` | UUID | Yes | - -**Operations:** - -```typescript -// List all secureTableProvision records -const items = await db.secureTableProvision.findMany({ select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Get one by id -const item = await db.secureTableProvision.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, tableId: true, tableName: true, nodes: true, useRls: true, fields: true, grants: true, policies: true, outFields: true } }).execute(); - -// Create -const created = await db.secureTableProvision.create({ data: { databaseId: '', schemaId: '', tableId: '', tableName: '', nodes: '', useRls: '', fields: '', grants: '', policies: '', outFields: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.secureTableProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.secureTableProvision.delete({ where: { id: '' } }).execute(); -``` - -### `db.invitesModule` - -CRUD operations for InvitesModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `emailsTableId` | UUID | Yes | -| `usersTableId` | UUID | Yes | -| `invitesTableId` | UUID | Yes | -| `claimedInvitesTableId` | UUID | Yes | -| `invitesTableName` | String | Yes | -| `claimedInvitesTableName` | String | Yes | -| `submitInviteCodeFunction` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | - -**Operations:** - -```typescript -// List all invitesModule records -const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Get one by id -const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); - -// Create -const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.databaseProvisionModule` CRUD operations for DatabaseProvisionModule records. @@ -1308,9 +1184,9 @@ const updated = await db.databaseProvisionModule.update({ where: { id: '' const deleted = await db.databaseProvisionModule.delete({ where: { id: '' } }).execute(); ``` -### `db.namespaceModule` +### `db.configSecretsModule` -CRUD operations for NamespaceModule records. +CRUD operations for ConfigSecretsModule records. **Fields:** @@ -1322,10 +1198,9 @@ CRUD operations for NamespaceModule records. | `privateSchemaId` | UUID | Yes | | `publicSchemaName` | String | Yes | | `privateSchemaName` | String | Yes | -| `namespacesTableId` | UUID | Yes | -| `namespaceEventsTableId` | UUID | Yes | -| `namespacesTableName` | String | Yes | -| `namespaceEventsTableName` | String | Yes | +| `tableId` | UUID | Yes | +| `configDefinitionsTableId` | UUID | Yes | +| `tableName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -1333,29 +1208,75 @@ CRUD operations for NamespaceModule records. | `entityTableId` | UUID | Yes | | `policies` | JSON | Yes | | `provisions` | JSON | Yes | +| `hasConfig` | Boolean | Yes | **Operations:** ```typescript -// List all namespaceModule records -const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +// List all configSecretsModule records +const items = await db.configSecretsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Get one by id -const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); +const item = await db.configSecretsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, configDefinitionsTableId: true, tableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, hasConfig: true } }).execute(); // Create -const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.configSecretsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', configDefinitionsTableId: '', tableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', hasConfig: '' }, select: { id: true } }).execute(); // Update -const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.configSecretsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.configSecretsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.realtimeModule` +### `db.rateLimitMetersModule` -CRUD operations for RealtimeModule records. +CRUD operations for RateLimitMetersModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `rateLimitStateTableId` | UUID | Yes | +| `rateLimitStateTableName` | String | Yes | +| `rateLimitOverridesTableId` | UUID | Yes | +| `rateLimitOverridesTableName` | String | Yes | +| `rateWindowLimitsTableId` | UUID | Yes | +| `rateWindowLimitsTableName` | String | Yes | +| `checkRateLimitFunction` | String | Yes | +| `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitMetersModule records +const items = await db.rateLimitMetersModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.rateLimitMetersModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, rateLimitStateTableId: true, rateLimitStateTableName: true, rateLimitOverridesTableId: true, rateLimitOverridesTableName: true, rateWindowLimitsTableId: true, rateWindowLimitsTableName: true, checkRateLimitFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.rateLimitMetersModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', rateLimitStateTableId: '', rateLimitStateTableName: '', rateLimitOverridesTableId: '', rateLimitOverridesTableName: '', rateWindowLimitsTableId: '', rateWindowLimitsTableName: '', checkRateLimitFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitMetersModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitMetersModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.realtimeModule` + +CRUD operations for RealtimeModule records. **Fields:** @@ -1439,6 +1360,190 @@ const updated = await db.webauthnAuthModule.update({ where: { id: '' }, da const deleted = await db.webauthnAuthModule.delete({ where: { id: '' } }).execute(); ``` +### `db.functionInvocationModule` + +CRUD operations for FunctionInvocationModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `invocationsTableId` | UUID | Yes | +| `executionLogsTableId` | UUID | Yes | +| `invocationsTableName` | String | Yes | +| `executionLogsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionInvocationModule records +const items = await db.functionInvocationModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionInvocationModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, invocationsTableId: true, executionLogsTableId: true, invocationsTableName: true, executionLogsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionInvocationModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', invocationsTableId: '', executionLogsTableId: '', invocationsTableName: '', executionLogsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionInvocationModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionInvocationModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.functionModule` + +CRUD operations for FunctionModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `definitionsTableId` | UUID | Yes | +| `secretDefinitionsTableId` | UUID | Yes | +| `definitionsTableName` | String | Yes | +| `secretDefinitionsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all functionModule records +const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, secretDefinitionsTableId: true, definitionsTableName: true, secretDefinitionsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', secretDefinitionsTableId: '', definitionsTableName: '', secretDefinitionsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.invitesModule` + +CRUD operations for InvitesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `emailsTableId` | UUID | Yes | +| `usersTableId` | UUID | Yes | +| `invitesTableId` | UUID | Yes | +| `claimedInvitesTableId` | UUID | Yes | +| `invitesTableName` | String | Yes | +| `claimedInvitesTableName` | String | Yes | +| `submitInviteCodeFunction` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | + +**Operations:** + +```typescript +// List all invitesModule records +const items = await db.invitesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Get one by id +const item = await db.invitesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, emailsTableId: true, usersTableId: true, invitesTableId: true, claimedInvitesTableId: true, invitesTableName: true, claimedInvitesTableName: true, submitInviteCodeFunction: true, scope: true, prefix: true, entityTableId: true, apiName: true, privateApiName: true } }).execute(); + +// Create +const created = await db.invitesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', emailsTableId: '', usersTableId: '', invitesTableId: '', claimedInvitesTableId: '', invitesTableName: '', claimedInvitesTableName: '', submitInviteCodeFunction: '', scope: '', prefix: '', entityTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.invitesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.invitesModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.namespaceModule` + +CRUD operations for NamespaceModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `namespacesTableId` | UUID | Yes | +| `namespaceEventsTableId` | UUID | Yes | +| `namespacesTableName` | String | Yes | +| `namespaceEventsTableName` | String | Yes | +| `apiName` | String | Yes | +| `privateApiName` | String | Yes | +| `scope` | String | Yes | +| `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `policies` | JSON | Yes | +| `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | + +**Operations:** + +```typescript +// List all namespaceModule records +const items = await db.namespaceModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Get one by id +const item = await db.namespaceModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, namespacesTableId: true, namespaceEventsTableId: true, namespacesTableName: true, namespaceEventsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true, defaultPermissions: true } }).execute(); + +// Create +const created = await db.namespaceModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', namespacesTableId: '', namespaceEventsTableId: '', namespacesTableName: '', namespaceEventsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.namespaceModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.namespaceModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.computeLogModule` CRUD operations for ComputeLogModule records. @@ -1451,6 +1556,8 @@ CRUD operations for ComputeLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `computeLogTableId` | UUID | Yes | | `computeLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1469,13 +1576,13 @@ CRUD operations for ComputeLogModule records. ```typescript // List all computeLogModule records -const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.computeLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.computeLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, computeLogTableId: true, computeLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.computeLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', computeLogTableId: '', computeLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.computeLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1496,6 +1603,8 @@ CRUD operations for InferenceLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `inferenceLogTableId` | UUID | Yes | | `inferenceLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1514,13 +1623,13 @@ CRUD operations for InferenceLogModule records. ```typescript // List all inferenceLogModule records -const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.inferenceLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.inferenceLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, inferenceLogTableId: true, inferenceLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.inferenceLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', inferenceLogTableId: '', inferenceLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.inferenceLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1541,6 +1650,8 @@ CRUD operations for StorageLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `storageLogTableId` | UUID | Yes | | `storageLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1559,13 +1670,13 @@ CRUD operations for StorageLogModule records. ```typescript // List all storageLogModule records -const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, storageLogTableId: true, storageLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', storageLogTableId: '', storageLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1586,6 +1697,8 @@ CRUD operations for TransferLogModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `transferLogTableId` | UUID | Yes | | `transferLogTableName` | String | Yes | | `usageDailyTableId` | UUID | Yes | @@ -1604,13 +1717,13 @@ CRUD operations for TransferLogModule records. ```typescript // List all transferLogModule records -const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.transferLogModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.transferLogModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, transferLogTableId: true, transferLogTableName: true, usageDailyTableId: true, usageDailyTableName: true, interval: true, retention: true, premake: true, scope: true, actorFkTableId: true, entityFkTableId: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.transferLogModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', transferLogTableId: '', transferLogTableName: '', usageDailyTableId: '', usageDailyTableName: '', interval: '', retention: '', premake: '', scope: '', actorFkTableId: '', entityFkTableId: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.transferLogModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1619,9 +1732,9 @@ const updated = await db.transferLogModule.update({ where: { id: '' }, dat const deleted = await db.transferLogModule.delete({ where: { id: '' } }).execute(); ``` -### `db.dbUsageModule` +### `db.plansModule` -CRUD operations for DbUsageModule records. +CRUD operations for PlansModule records. **Fields:** @@ -1631,18 +1744,20 @@ CRUD operations for DbUsageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableStatsLogTableId` | UUID | Yes | -| `tableStatsLogTableName` | String | Yes | -| `tableStatsDailyTableId` | UUID | Yes | -| `tableStatsDailyTableName` | String | Yes | -| `queryStatsLogTableId` | UUID | Yes | -| `queryStatsLogTableName` | String | Yes | -| `queryStatsDailyTableId` | UUID | Yes | -| `queryStatsDailyTableName` | String | Yes | -| `interval` | String | Yes | -| `retention` | String | Yes | -| `premake` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `planPricingTableId` | UUID | Yes | +| `planOverridesTableId` | UUID | Yes | +| `planMeterLimitsTableId` | UUID | Yes | +| `planCapsTableId` | UUID | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | +| `applyBillingPlanFunction` | String | Yes | +| `applyPlanCapsFunction` | String | Yes | | `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -1650,25 +1765,25 @@ CRUD operations for DbUsageModule records. **Operations:** ```typescript -// List all dbUsageModule records -const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` -### `db.notificationsModule` +### `db.billingProviderModule` -CRUD operations for NotificationsModule records. +CRUD operations for BillingProviderModule records. **Fields:** @@ -1678,44 +1793,47 @@ CRUD operations for NotificationsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `notificationsTableId` | UUID | Yes | -| `readStateTableId` | UUID | Yes | -| `preferencesTableId` | UUID | Yes | -| `channelsTableId` | UUID | Yes | -| `deliveryLogTableId` | UUID | Yes | -| `ownerTableId` | UUID | Yes | -| `userSettingsTableId` | UUID | Yes | -| `organizationSettingsTableId` | UUID | Yes | -| `hasChannels` | Boolean | Yes | -| `hasPreferences` | Boolean | Yes | -| `hasSettingsExtension` | Boolean | Yes | -| `hasDigestMetadata` | Boolean | Yes | -| `hasSubscriptions` | Boolean | Yes | +| `provider` | String | Yes | +| `productsTableId` | UUID | Yes | +| `pricesTableId` | UUID | Yes | +| `subscriptionsTableId` | UUID | Yes | +| `billingCustomersTableId` | UUID | Yes | +| `billingCustomersTableName` | String | Yes | +| `billingProductsTableId` | UUID | Yes | +| `billingProductsTableName` | String | Yes | +| `billingPricesTableId` | UUID | Yes | +| `billingPricesTableName` | String | Yes | +| `billingSubscriptionsTableId` | UUID | Yes | +| `billingSubscriptionsTableName` | String | Yes | +| `billingWebhookEventsTableId` | UUID | Yes | +| `billingWebhookEventsTableName` | String | Yes | +| `processBillingEventFunction` | String | Yes | +| `prefix` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all notificationsModule records -const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +// List all billingProviderModule records +const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); ``` -### `db.plansModule` +### `db.dbUsageModule` -CRUD operations for PlansModule records. +CRUD operations for DbUsageModule records. **Fields:** @@ -1725,39 +1843,42 @@ CRUD operations for PlansModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `plansTableId` | UUID | Yes | -| `plansTableName` | String | Yes | -| `planLimitsTableId` | UUID | Yes | -| `planLimitsTableName` | String | Yes | -| `planPricingTableId` | UUID | Yes | -| `planOverridesTableId` | UUID | Yes | -| `planMeterLimitsTableId` | UUID | Yes | -| `planCapsTableId` | UUID | Yes | -| `applyPlanFunction` | String | Yes | -| `applyPlanAggregateFunction` | String | Yes | -| `applyBillingPlanFunction` | String | Yes | -| `applyPlanCapsFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableStatsLogTableId` | UUID | Yes | +| `tableStatsLogTableName` | String | Yes | +| `tableStatsDailyTableId` | UUID | Yes | +| `tableStatsDailyTableName` | String | Yes | +| `queryStatsLogTableId` | UUID | Yes | +| `queryStatsLogTableName` | String | Yes | +| `queryStatsDailyTableId` | UUID | Yes | +| `queryStatsDailyTableName` | String | Yes | +| `interval` | String | Yes | +| `retention` | String | Yes | +| `premake` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// 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, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all dbUsageModule records +const items = await db.dbUsageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, planPricingTableId: true, planOverridesTableId: true, planMeterLimitsTableId: true, planCapsTableId: true, applyPlanFunction: true, applyPlanAggregateFunction: true, applyBillingPlanFunction: true, applyPlanCapsFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.dbUsageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableStatsLogTableId: true, tableStatsLogTableName: true, tableStatsDailyTableId: true, tableStatsDailyTableName: true, queryStatsLogTableId: true, queryStatsLogTableName: true, queryStatsDailyTableId: true, queryStatsDailyTableName: true, interval: true, retention: true, premake: true, scope: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', planPricingTableId: '', planOverridesTableId: '', planMeterLimitsTableId: '', planCapsTableId: '', applyPlanFunction: '', applyPlanAggregateFunction: '', applyBillingPlanFunction: '', applyPlanCapsFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.dbUsageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableStatsLogTableId: '', tableStatsLogTableName: '', tableStatsDailyTableId: '', tableStatsDailyTableName: '', queryStatsLogTableId: '', queryStatsLogTableName: '', queryStatsDailyTableId: '', queryStatsDailyTableName: '', interval: '', retention: '', premake: '', scope: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.dbUsageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.dbUsageModule.delete({ where: { id: '' } }).execute(); ``` ### `db.hierarchyModule` @@ -1788,19 +1909,20 @@ CRUD operations for HierarchyModule records. | `getSubordinatesFunction` | String | Yes | | `getManagersFunction` | String | Yes | | `isManagerOfFunction` | String | Yes | +| `defaultPermissions` | String | Yes | | `createdAt` | Datetime | No | **Operations:** ```typescript // List all hierarchyModule records -const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const items = await db.hierarchyModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Get one by id -const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, createdAt: true } }).execute(); +const item = await db.hierarchyModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, chartEdgesTableId: true, chartEdgesTableName: true, hierarchySprtTableId: true, hierarchySprtTableName: true, chartEdgeGrantsTableId: true, chartEdgeGrantsTableName: true, entityTableId: true, usersTableId: true, scope: true, prefix: true, privateSchemaName: true, sprtTableName: true, rebuildHierarchyFunction: true, getSubordinatesFunction: true, getManagersFunction: true, isManagerOfFunction: true, defaultPermissions: true, createdAt: true } }).execute(); // Create -const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '' }, select: { id: true } }).execute(); +const created = await db.hierarchyModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', chartEdgesTableId: '', chartEdgesTableName: '', hierarchySprtTableId: '', hierarchySprtTableName: '', chartEdgeGrantsTableId: '', chartEdgeGrantsTableName: '', entityTableId: '', usersTableId: '', scope: '', prefix: '', privateSchemaName: '', sprtTableName: '', rebuildHierarchyFunction: '', getSubordinatesFunction: '', getManagersFunction: '', isManagerOfFunction: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.hierarchyModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1809,9 +1931,9 @@ const updated = await db.hierarchyModule.update({ where: { id: '' }, data: const deleted = await db.hierarchyModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingModule` +### `db.permissionsModule` -CRUD operations for BillingModule records. +CRUD operations for PermissionsModule records. **Fields:** @@ -1821,92 +1943,92 @@ CRUD operations for BillingModule records. | `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 | -| `meterCreditsTableId` | UUID | Yes | -| `meterCreditsTableName` | String | Yes | -| `meterSourcesTableId` | UUID | Yes | -| `meterSourcesTableName` | String | Yes | -| `meterDefaultsTableId` | UUID | Yes | -| `meterDefaultsTableName` | String | Yes | -| `recordUsageFunction` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `tableId` | UUID | Yes | +| `tableName` | String | Yes | +| `defaultTableId` | UUID | Yes | +| `defaultTableName` | String | Yes | +| `bitlen` | Int | Yes | +| `scope` | String | Yes | | `prefix` | String | Yes | +| `entityTableId` | UUID | Yes | +| `actorTableId` | UUID | Yes | +| `getPaddedMask` | String | Yes | +| `getMask` | String | Yes | +| `getByMask` | String | Yes | +| `getMaskByName` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all permissionsModule records +const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: 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, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.billingProviderModule` +### `db.notificationsModule` -CRUD operations for BillingProviderModule records. +CRUD operations for NotificationsModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `provider` | String | Yes | -| `productsTableId` | UUID | Yes | -| `pricesTableId` | UUID | Yes | -| `subscriptionsTableId` | UUID | Yes | -| `billingCustomersTableId` | UUID | Yes | -| `billingCustomersTableName` | String | Yes | -| `billingProductsTableId` | UUID | Yes | -| `billingProductsTableName` | String | Yes | -| `billingPricesTableId` | UUID | Yes | -| `billingPricesTableName` | String | Yes | -| `billingSubscriptionsTableId` | UUID | Yes | -| `billingSubscriptionsTableName` | String | Yes | -| `billingWebhookEventsTableId` | UUID | Yes | -| `billingWebhookEventsTableName` | String | Yes | -| `processBillingEventFunction` | String | Yes | -| `prefix` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | +| `notificationsTableId` | UUID | Yes | +| `readStateTableId` | UUID | Yes | +| `preferencesTableId` | UUID | Yes | +| `channelsTableId` | UUID | Yes | +| `deliveryLogTableId` | UUID | Yes | +| `suppressionsTableId` | UUID | Yes | +| `ownerTableId` | UUID | Yes | +| `userSettingsTableId` | UUID | Yes | +| `organizationSettingsTableId` | UUID | Yes | +| `hasChannels` | Boolean | Yes | +| `hasPreferences` | Boolean | Yes | +| `hasSettingsExtension` | Boolean | Yes | +| `hasDigestMetadata` | Boolean | Yes | +| `hasSubscriptions` | Boolean | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all billingProviderModule records -const items = await db.billingProviderModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +// List all notificationsModule records +const items = await db.notificationsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.billingProviderModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, provider: true, productsTableId: true, pricesTableId: true, subscriptionsTableId: true, billingCustomersTableId: true, billingCustomersTableName: true, billingProductsTableId: true, billingProductsTableName: true, billingPricesTableId: true, billingPricesTableName: true, billingSubscriptionsTableId: true, billingSubscriptionsTableName: true, billingWebhookEventsTableId: true, billingWebhookEventsTableName: true, processBillingEventFunction: true, prefix: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.notificationsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, suppressionsTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.billingProviderModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', provider: '', productsTableId: '', pricesTableId: '', subscriptionsTableId: '', billingCustomersTableId: '', billingCustomersTableName: '', billingProductsTableId: '', billingProductsTableName: '', billingPricesTableId: '', billingPricesTableName: '', billingSubscriptionsTableId: '', billingSubscriptionsTableName: '', billingWebhookEventsTableId: '', billingWebhookEventsTableName: '', processBillingEventFunction: '', prefix: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.notificationsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', notificationsTableId: '', readStateTableId: '', preferencesTableId: '', channelsTableId: '', deliveryLogTableId: '', suppressionsTableId: '', ownerTableId: '', userSettingsTableId: '', organizationSettingsTableId: '', hasChannels: '', hasPreferences: '', hasSettingsExtension: '', hasDigestMetadata: '', hasSubscriptions: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.billingProviderModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.notificationsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.billingProviderModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.notificationsModule.delete({ where: { id: '' } }).execute(); ``` ### `db.profilesModule` @@ -1921,6 +2043,8 @@ CRUD operations for ProfilesModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `profilePermissionsTableId` | UUID | Yes | @@ -1944,13 +2068,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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: 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, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -1959,9 +2083,9 @@ const updated = await db.profilesModule.update({ where: { id: '' }, data: const deleted = await db.profilesModule.delete({ where: { id: '' } }).execute(); ``` -### `db.permissionsModule` +### `db.billingModule` -CRUD operations for PermissionsModule records. +CRUD operations for BillingModule records. **Fields:** @@ -1971,39 +2095,45 @@ CRUD operations for PermissionsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | -| `tableId` | UUID | Yes | -| `tableName` | String | Yes | -| `defaultTableId` | UUID | Yes | -| `defaultTableName` | String | Yes | -| `bitlen` | Int | Yes | -| `scope` | String | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | 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 | +| `meterCreditsTableId` | UUID | Yes | +| `meterCreditsTableName` | String | Yes | +| `meterSourcesTableId` | UUID | Yes | +| `meterSourcesTableName` | String | Yes | +| `meterDefaultsTableId` | UUID | Yes | +| `meterDefaultsTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | | `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `actorTableId` | UUID | Yes | -| `getPaddedMask` | String | Yes | -| `getMask` | String | Yes | -| `getByMask` | String | Yes | -| `getMaskByName` | String | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | **Operations:** ```typescript -// List all permissionsModule records -const items = await db.permissionsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.permissionsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, bitlen: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, getPaddedMask: true, getMask: true, getByMask: true, getMaskByName: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, meterCreditsTableId: true, meterCreditsTableName: true, meterSourcesTableId: true, meterSourcesTableName: true, meterDefaultsTableId: true, meterDefaultsTableName: true, recordUsageFunction: true, prefix: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.permissionsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', bitlen: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', getPaddedMask: '', getMask: '', getByMask: '', getMaskByName: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', meterCreditsTableId: '', meterCreditsTableName: '', meterSourcesTableId: '', meterSourcesTableName: '', meterDefaultsTableId: '', meterDefaultsTableName: '', recordUsageFunction: '', prefix: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update -const updated = await db.permissionsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.permissionsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); ``` ### `db.relationProvision` @@ -2058,60 +2188,6 @@ const updated = await db.relationProvision.update({ where: { id: '' }, dat const deleted = await db.relationProvision.delete({ where: { id: '' } }).execute(); ``` -### `db.functionModule` - -CRUD operations for FunctionModule records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `privateSchemaId` | UUID | Yes | -| `publicSchemaName` | String | Yes | -| `privateSchemaName` | String | Yes | -| `definitionsTableId` | UUID | Yes | -| `invocationsTableId` | UUID | Yes | -| `executionLogsTableId` | UUID | Yes | -| `secretDefinitionsTableId` | UUID | Yes | -| `requirementsTableId` | UUID | Yes | -| `configDefinitionsTableId` | UUID | Yes | -| `configRequirementsTableId` | UUID | Yes | -| `definitionsTableName` | String | Yes | -| `invocationsTableName` | String | Yes | -| `executionLogsTableName` | String | Yes | -| `secretDefinitionsTableName` | String | Yes | -| `requirementsTableName` | String | Yes | -| `configRequirementsTableName` | String | Yes | -| `apiName` | String | Yes | -| `privateApiName` | String | Yes | -| `scope` | String | Yes | -| `prefix` | String | Yes | -| `entityTableId` | UUID | Yes | -| `policies` | JSON | Yes | -| `provisions` | JSON | Yes | - -**Operations:** - -```typescript -// List all functionModule records -const items = await db.functionModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Get one by id -const item = await db.functionModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, definitionsTableId: true, invocationsTableId: true, executionLogsTableId: true, secretDefinitionsTableId: true, requirementsTableId: true, configDefinitionsTableId: true, configRequirementsTableId: true, definitionsTableName: true, invocationsTableName: true, executionLogsTableName: true, secretDefinitionsTableName: true, requirementsTableName: true, configRequirementsTableName: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, provisions: true } }).execute(); - -// Create -const created = await db.functionModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', definitionsTableId: '', invocationsTableId: '', executionLogsTableId: '', secretDefinitionsTableId: '', requirementsTableId: '', configDefinitionsTableId: '', configRequirementsTableId: '', definitionsTableName: '', invocationsTableName: '', executionLogsTableName: '', secretDefinitionsTableName: '', requirementsTableName: '', configRequirementsTableName: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', provisions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.functionModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.functionModule.delete({ where: { id: '' } }).execute(); -``` - ### `db.userAuthModule` CRUD operations for UserAuthModule records. @@ -2180,6 +2256,8 @@ CRUD operations for AgentModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `threadTableId` | UUID | Yes | | `messageTableId` | UUID | Yes | | `taskTableId` | UUID | Yes | @@ -2199,6 +2277,7 @@ CRUD operations for AgentModule records. | `hasPlans` | Boolean | Yes | | `hasResources` | Boolean | Yes | | `hasAgents` | Boolean | Yes | +| `shared` | Boolean | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | | `scope` | String | Yes | @@ -2207,18 +2286,19 @@ CRUD operations for AgentModule records. | `policies` | JSON | Yes | | `resources` | JSON | Yes | | `provisions` | JSON | Yes | +| `defaultPermissions` | String | Yes | **Operations:** ```typescript // List all agentModule records -const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const items = await db.agentModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Get one by id -const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true } }).execute(); +const item = await db.agentModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, threadTableId: true, messageTableId: true, taskTableId: true, promptsTableId: true, planTableId: true, agentTableId: true, personaTableId: true, resourceTableId: true, threadTableName: true, messageTableName: true, taskTableName: true, promptsTableName: true, planTableName: true, agentTableName: true, personaTableName: true, resourceTableName: true, hasPlans: true, hasResources: true, hasAgents: true, shared: true, apiName: true, privateApiName: true, scope: true, prefix: true, entityTableId: true, policies: true, resources: true, provisions: true, defaultPermissions: true } }).execute(); // Create -const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '' }, select: { id: true } }).execute(); +const created = await db.agentModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', threadTableId: '', messageTableId: '', taskTableId: '', promptsTableId: '', planTableId: '', agentTableId: '', personaTableId: '', resourceTableId: '', threadTableName: '', messageTableName: '', taskTableName: '', promptsTableName: '', planTableName: '', agentTableName: '', personaTableName: '', resourceTableName: '', hasPlans: '', hasResources: '', hasAgents: '', shared: '', apiName: '', privateApiName: '', scope: '', prefix: '', entityTableId: '', policies: '', resources: '', provisions: '', defaultPermissions: '' }, select: { id: true } }).execute(); // Update const updated = await db.agentModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2239,6 +2319,8 @@ CRUD operations for LimitsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `tableId` | UUID | Yes | | `tableName` | String | Yes | | `defaultTableId` | UUID | Yes | @@ -2274,13 +2356,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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: 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, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, limitCreditsTableId: true, eventsTableId: true, creditCodesTableId: true, creditCodeItemsTableId: true, creditRedemptionsTableId: true, aggregateTableId: true, limitCapsTableId: true, limitCapsDefaultsTableId: true, capCheckTrigger: true, resolveCapFunction: true, limitWarningsTableId: true, limitWarningStateTableId: true, limitCheckSoftFunction: true, limitAggregateCheckSoftFunction: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', limitCreditsTableId: '', eventsTableId: '', creditCodesTableId: '', creditCodeItemsTableId: '', creditRedemptionsTableId: '', aggregateTableId: '', limitCapsTableId: '', limitCapsDefaultsTableId: '', capCheckTrigger: '', resolveCapFunction: '', limitWarningsTableId: '', limitWarningStateTableId: '', limitCheckSoftFunction: '', limitAggregateCheckSoftFunction: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2301,6 +2383,8 @@ CRUD operations for MembershipsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `membershipsTableId` | UUID | Yes | | `membershipsTableName` | String | Yes | | `membersTableId` | UUID | Yes | @@ -2332,6 +2416,8 @@ CRUD operations for MembershipsModule records. | `entityIdsByPerm` | String | Yes | | `entityIdsFunction` | String | Yes | | `memberProfilesTableId` | UUID | Yes | +| `permissionDefaultPermissionsTableId` | UUID | Yes | +| `permissionDefaultGrantsTableId` | UUID | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2339,13 +2425,13 @@ CRUD operations for MembershipsModule records. ```typescript // List all membershipsModule records -const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.membershipsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.membershipsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, membershipsTableId: true, membershipsTableName: true, membersTableId: true, membersTableName: true, membershipDefaultsTableId: true, membershipDefaultsTableName: true, membershipSettingsTableId: true, membershipSettingsTableName: true, grantsTableId: true, grantsTableName: true, actorTableId: true, limitsTableId: true, defaultLimitsTableId: true, permissionsTableId: true, defaultPermissionsTableId: true, sprtTableId: true, adminGrantsTableId: true, adminGrantsTableName: true, ownerGrantsTableId: true, ownerGrantsTableName: true, scope: true, prefix: true, entityTableId: true, entityTableOwnerId: true, getOrgFn: true, actorMaskCheck: true, actorPermCheck: true, entityIdsByMask: true, entityIdsByPerm: true, entityIdsFunction: true, memberProfilesTableId: true, permissionDefaultPermissionsTableId: true, permissionDefaultGrantsTableId: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.membershipsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', membershipsTableId: '', membershipsTableName: '', membersTableId: '', membersTableName: '', membershipDefaultsTableId: '', membershipDefaultsTableName: '', membershipSettingsTableId: '', membershipSettingsTableName: '', grantsTableId: '', grantsTableName: '', actorTableId: '', limitsTableId: '', defaultLimitsTableId: '', permissionsTableId: '', defaultPermissionsTableId: '', sprtTableId: '', adminGrantsTableId: '', adminGrantsTableName: '', ownerGrantsTableId: '', ownerGrantsTableName: '', scope: '', prefix: '', entityTableId: '', entityTableOwnerId: '', getOrgFn: '', actorMaskCheck: '', actorPermCheck: '', entityIdsByMask: '', entityIdsByPerm: '', entityIdsFunction: '', memberProfilesTableId: '', permissionDefaultPermissionsTableId: '', permissionDefaultGrantsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.membershipsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2354,6 +2440,74 @@ const updated = await db.membershipsModule.update({ where: { id: '' }, dat const deleted = await db.membershipsModule.delete({ where: { id: '' } }).execute(); ``` +### `db.entityTypeProvision` + +CRUD operations for EntityTypeProvision records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `prefix` | String | Yes | +| `description` | String | Yes | +| `parentEntity` | String | Yes | +| `tableName` | String | Yes | +| `isVisible` | Boolean | Yes | +| `hasLimits` | Boolean | Yes | +| `hasProfiles` | Boolean | Yes | +| `hasLevels` | Boolean | Yes | +| `hasInvites` | Boolean | Yes | +| `hasInviteAchievements` | Boolean | Yes | +| `storage` | JSON | Yes | +| `namespaces` | JSON | Yes | +| `functions` | JSON | Yes | +| `graphs` | JSON | Yes | +| `agents` | JSON | Yes | +| `skipEntityPolicies` | Boolean | Yes | +| `tableProvision` | JSON | Yes | +| `outMembershipType` | Int | Yes | +| `outEntityTableId` | UUID | Yes | +| `outEntityTableName` | String | Yes | +| `outInstalledModules` | String | Yes | +| `outStorageModuleId` | UUID | Yes | +| `outBucketsTableId` | UUID | Yes | +| `outFilesTableId` | UUID | Yes | +| `outPathSharesTableId` | UUID | Yes | +| `outInvitesModuleId` | UUID | Yes | +| `outNamespaceModuleId` | UUID | Yes | +| `outNamespacesTableId` | UUID | Yes | +| `outNamespaceEventsTableId` | UUID | Yes | +| `outFunctionModuleId` | UUID | Yes | +| `outDefinitionsTableId` | UUID | Yes | +| `outInvocationsTableId` | UUID | Yes | +| `outExecutionLogsTableId` | UUID | Yes | +| `outSecretDefinitionsTableId` | UUID | Yes | +| `outGraphModuleId` | UUID | Yes | +| `outGraphsTableId` | UUID | Yes | +| `outAgentModuleId` | UUID | Yes | + +**Operations:** + +```typescript +// List all entityTypeProvision records +const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Get one by id +const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); + +// Create +const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); +``` + ### `db.storageModule` CRUD operations for StorageModule records. @@ -2366,6 +2520,8 @@ CRUD operations for StorageModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | @@ -2396,6 +2552,7 @@ CRUD operations for StorageModule records. | `hasConfirmUpload` | Boolean | Yes | | `confirmUploadDelay` | Interval | Yes | | `fileEventsTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2403,13 +2560,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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: 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, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, scope: true, prefix: true, policies: true, provisions: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, hasPathShares: true, pathSharesTableId: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true, maxBulkFiles: true, maxBulkTotalSize: true, hasVersioning: true, hasContentHash: true, hasCustomKeys: true, hasAuditLog: true, hasConfirmUpload: true, confirmUploadDelay: true, fileEventsTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', scope: '', prefix: '', policies: '', provisions: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', hasPathShares: '', pathSharesTableId: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '', maxBulkFiles: '', maxBulkTotalSize: '', hasVersioning: '', hasContentHash: '', hasCustomKeys: '', hasAuditLog: '', hasConfirmUpload: '', confirmUploadDelay: '', fileEventsTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2430,6 +2587,8 @@ CRUD operations for EventsModule records. | `databaseId` | UUID | Yes | | `schemaId` | UUID | Yes | | `privateSchemaId` | UUID | Yes | +| `publicSchemaName` | String | Yes | +| `privateSchemaName` | String | Yes | | `eventsTableId` | UUID | Yes | | `eventsTableName` | String | Yes | | `eventAggregatesTableId` | UUID | Yes | @@ -2465,6 +2624,7 @@ CRUD operations for EventsModule records. | `prefix` | String | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | +| `defaultPermissions` | String | Yes | | `apiName` | String | Yes | | `privateApiName` | String | Yes | @@ -2472,13 +2632,13 @@ CRUD operations for EventsModule records. ```typescript // List all eventsModule records -const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const items = await db.eventsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Get one by id -const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, apiName: true, privateApiName: true } }).execute(); +const item = await db.eventsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, publicSchemaName: true, privateSchemaName: true, eventsTableId: true, eventsTableName: true, eventAggregatesTableId: true, eventAggregatesTableName: true, eventTypesTableId: true, eventTypesTableName: true, levelsTableId: true, levelsTableName: true, levelRequirementsTableId: true, levelRequirementsTableName: true, levelGrantsTableId: true, levelGrantsTableName: true, achievementRewardsTableId: true, achievementRewardsTableName: true, recordEvent: true, removeEvent: true, tgEvent: true, tgEventToggle: true, tgEventToggleBool: true, tgEventBool: true, upsertAggregate: true, tgUpdateAggregates: true, pruneEvents: true, stepsRequired: true, levelAchieved: true, tgCheckAchievements: true, grantAchievement: true, tgAchievementReward: true, interval: true, retention: true, premake: true, scope: true, prefix: true, entityTableId: true, actorTableId: true, defaultPermissions: true, apiName: true, privateApiName: true } }).execute(); // Create -const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); +const created = await db.eventsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', publicSchemaName: '', privateSchemaName: '', eventsTableId: '', eventsTableName: '', eventAggregatesTableId: '', eventAggregatesTableName: '', eventTypesTableId: '', eventTypesTableName: '', levelsTableId: '', levelsTableName: '', levelRequirementsTableId: '', levelRequirementsTableName: '', levelGrantsTableId: '', levelGrantsTableName: '', achievementRewardsTableId: '', achievementRewardsTableName: '', recordEvent: '', removeEvent: '', tgEvent: '', tgEventToggle: '', tgEventToggleBool: '', tgEventBool: '', upsertAggregate: '', tgUpdateAggregates: '', pruneEvents: '', stepsRequired: '', levelAchieved: '', tgCheckAchievements: '', grantAchievement: '', tgAchievementReward: '', interval: '', retention: '', premake: '', scope: '', prefix: '', entityTableId: '', actorTableId: '', defaultPermissions: '', apiName: '', privateApiName: '' }, select: { id: true } }).execute(); // Update const updated = await db.eventsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2487,76 +2647,6 @@ const updated = await db.eventsModule.update({ where: { id: '' }, data: { const deleted = await db.eventsModule.delete({ where: { id: '' } }).execute(); ``` -### `db.entityTypeProvision` - -CRUD operations for EntityTypeProvision records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `prefix` | String | Yes | -| `description` | String | Yes | -| `parentEntity` | String | Yes | -| `tableName` | String | Yes | -| `isVisible` | Boolean | Yes | -| `hasLimits` | Boolean | Yes | -| `hasProfiles` | Boolean | Yes | -| `hasLevels` | Boolean | Yes | -| `hasInvites` | Boolean | Yes | -| `hasInviteAchievements` | Boolean | Yes | -| `storage` | JSON | Yes | -| `namespaces` | JSON | Yes | -| `functions` | JSON | Yes | -| `graphs` | JSON | Yes | -| `agents` | JSON | Yes | -| `skipEntityPolicies` | Boolean | Yes | -| `tableProvision` | JSON | Yes | -| `outMembershipType` | Int | Yes | -| `outEntityTableId` | UUID | Yes | -| `outEntityTableName` | String | Yes | -| `outInstalledModules` | String | Yes | -| `outStorageModuleId` | UUID | Yes | -| `outBucketsTableId` | UUID | Yes | -| `outFilesTableId` | UUID | Yes | -| `outPathSharesTableId` | UUID | Yes | -| `outInvitesModuleId` | UUID | Yes | -| `outNamespaceModuleId` | UUID | Yes | -| `outNamespacesTableId` | UUID | Yes | -| `outNamespaceEventsTableId` | UUID | Yes | -| `outFunctionModuleId` | UUID | Yes | -| `outDefinitionsTableId` | UUID | Yes | -| `outInvocationsTableId` | UUID | Yes | -| `outExecutionLogsTableId` | UUID | Yes | -| `outSecretDefinitionsTableId` | UUID | Yes | -| `outRequirementsTableId` | UUID | Yes | -| `outConfigRequirementsTableId` | UUID | Yes | -| `outGraphModuleId` | UUID | Yes | -| `outGraphsTableId` | UUID | Yes | -| `outAgentModuleId` | UUID | Yes | - -**Operations:** - -```typescript -// List all entityTypeProvision records -const items = await db.entityTypeProvision.findMany({ select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Get one by id -const item = await db.entityTypeProvision.findOne({ id: '', select: { id: true, databaseId: true, name: true, prefix: true, description: true, parentEntity: true, tableName: true, isVisible: true, hasLimits: true, hasProfiles: true, hasLevels: true, hasInvites: true, hasInviteAchievements: true, storage: true, namespaces: true, functions: true, graphs: true, agents: true, skipEntityPolicies: true, tableProvision: true, outMembershipType: true, outEntityTableId: true, outEntityTableName: true, outInstalledModules: true, outStorageModuleId: true, outBucketsTableId: true, outFilesTableId: true, outPathSharesTableId: true, outInvitesModuleId: true, outNamespaceModuleId: true, outNamespacesTableId: true, outNamespaceEventsTableId: true, outFunctionModuleId: true, outDefinitionsTableId: true, outInvocationsTableId: true, outExecutionLogsTableId: true, outSecretDefinitionsTableId: true, outRequirementsTableId: true, outConfigRequirementsTableId: true, outGraphModuleId: true, outGraphsTableId: true, outAgentModuleId: true } }).execute(); - -// Create -const created = await db.entityTypeProvision.create({ data: { databaseId: '', name: '', prefix: '', description: '', parentEntity: '', tableName: '', isVisible: '', hasLimits: '', hasProfiles: '', hasLevels: '', hasInvites: '', hasInviteAchievements: '', storage: '', namespaces: '', functions: '', graphs: '', agents: '', skipEntityPolicies: '', tableProvision: '', outMembershipType: '', outEntityTableId: '', outEntityTableName: '', outInstalledModules: '', outStorageModuleId: '', outBucketsTableId: '', outFilesTableId: '', outPathSharesTableId: '', outInvitesModuleId: '', outNamespaceModuleId: '', outNamespacesTableId: '', outNamespaceEventsTableId: '', outFunctionModuleId: '', outDefinitionsTableId: '', outInvocationsTableId: '', outExecutionLogsTableId: '', outSecretDefinitionsTableId: '', outRequirementsTableId: '', outConfigRequirementsTableId: '', outGraphModuleId: '', outGraphsTableId: '', outAgentModuleId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.entityTypeProvision.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.entityTypeProvision.delete({ where: { id: '' } }).execute(); -``` - ## Custom Operations ### `db.query.resolveBlueprintField` diff --git a/sdk/constructive-sdk/src/modules/orm/index.ts b/sdk/constructive-sdk/src/modules/orm/index.ts index c119d6f628..e8c151cfdb 100644 --- a/sdk/constructive-sdk/src/modules/orm/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/index.ts @@ -22,45 +22,46 @@ import { RateLimitsModuleModel } from './models/rateLimitsModule'; import { UsersModuleModel } from './models/usersModule'; import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule'; import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule'; -import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { DenormalizedTableFieldModel } from './models/denormalizedTableField'; +import { IdentityProvidersModuleModel } from './models/identityProvidersModule'; import { RlsModuleModel } from './models/rlsModule'; import { BlueprintModel } from './models/blueprint'; import { BlueprintTemplateModel } from './models/blueprintTemplate'; import { BlueprintConstructionModel } from './models/blueprintConstruction'; import { CryptoAuthModuleModel } from './models/cryptoAuthModule'; -import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { SessionsModuleModel } from './models/sessionsModule'; -import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { SecureTableProvisionModel } from './models/secureTableProvision'; import { MerkleStoreModuleModel } from './models/merkleStoreModule'; import { GraphModuleModel } from './models/graphModule'; -import { SecureTableProvisionModel } from './models/secureTableProvision'; -import { InvitesModuleModel } from './models/invitesModule'; import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule'; -import { NamespaceModuleModel } from './models/namespaceModule'; +import { ConfigSecretsModuleModel } from './models/configSecretsModule'; +import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule'; import { RealtimeModuleModel } from './models/realtimeModule'; import { WebauthnAuthModuleModel } from './models/webauthnAuthModule'; +import { FunctionInvocationModuleModel } from './models/functionInvocationModule'; +import { FunctionModuleModel } from './models/functionModule'; +import { InvitesModuleModel } from './models/invitesModule'; +import { NamespaceModuleModel } from './models/namespaceModule'; import { ComputeLogModuleModel } from './models/computeLogModule'; import { InferenceLogModuleModel } from './models/inferenceLogModule'; import { StorageLogModuleModel } from './models/storageLogModule'; import { TransferLogModuleModel } from './models/transferLogModule'; -import { DbUsageModuleModel } from './models/dbUsageModule'; -import { NotificationsModuleModel } from './models/notificationsModule'; import { PlansModuleModel } from './models/plansModule'; -import { HierarchyModuleModel } from './models/hierarchyModule'; -import { BillingModuleModel } from './models/billingModule'; import { BillingProviderModuleModel } from './models/billingProviderModule'; -import { ProfilesModuleModel } from './models/profilesModule'; +import { DbUsageModuleModel } from './models/dbUsageModule'; +import { HierarchyModuleModel } from './models/hierarchyModule'; import { PermissionsModuleModel } from './models/permissionsModule'; +import { NotificationsModuleModel } from './models/notificationsModule'; +import { ProfilesModuleModel } from './models/profilesModule'; +import { BillingModuleModel } from './models/billingModule'; import { RelationProvisionModel } from './models/relationProvision'; -import { FunctionModuleModel } from './models/functionModule'; import { UserAuthModuleModel } from './models/userAuthModule'; import { AgentModuleModel } from './models/agentModule'; import { LimitsModuleModel } from './models/limitsModule'; import { MembershipsModuleModel } from './models/membershipsModule'; +import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { StorageModuleModel } from './models/storageModule'; import { EventsModuleModel } from './models/eventsModule'; -import { EntityTypeProvisionModel } from './models/entityTypeProvision'; import { createQueryOperations } from './query'; import { createMutationOperations } from './mutation'; export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; @@ -113,45 +114,46 @@ export function createClient(config: OrmClientConfig) { usersModule: new UsersModuleModel(client), webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client), cryptoAddressesModule: new CryptoAddressesModuleModel(client), - identityProvidersModule: new IdentityProvidersModuleModel(client), denormalizedTableField: new DenormalizedTableFieldModel(client), + identityProvidersModule: new IdentityProvidersModuleModel(client), rlsModule: new RlsModuleModel(client), blueprint: new BlueprintModel(client), blueprintTemplate: new BlueprintTemplateModel(client), blueprintConstruction: new BlueprintConstructionModel(client), cryptoAuthModule: new CryptoAuthModuleModel(client), - rateLimitMetersModule: new RateLimitMetersModuleModel(client), sessionsModule: new SessionsModuleModel(client), - configSecretsModule: new ConfigSecretsModuleModel(client), + secureTableProvision: new SecureTableProvisionModel(client), merkleStoreModule: new MerkleStoreModuleModel(client), graphModule: new GraphModuleModel(client), - secureTableProvision: new SecureTableProvisionModel(client), - invitesModule: new InvitesModuleModel(client), databaseProvisionModule: new DatabaseProvisionModuleModel(client), - namespaceModule: new NamespaceModuleModel(client), + configSecretsModule: new ConfigSecretsModuleModel(client), + rateLimitMetersModule: new RateLimitMetersModuleModel(client), realtimeModule: new RealtimeModuleModel(client), webauthnAuthModule: new WebauthnAuthModuleModel(client), + functionInvocationModule: new FunctionInvocationModuleModel(client), + functionModule: new FunctionModuleModel(client), + invitesModule: new InvitesModuleModel(client), + namespaceModule: new NamespaceModuleModel(client), computeLogModule: new ComputeLogModuleModel(client), inferenceLogModule: new InferenceLogModuleModel(client), storageLogModule: new StorageLogModuleModel(client), transferLogModule: new TransferLogModuleModel(client), - dbUsageModule: new DbUsageModuleModel(client), - notificationsModule: new NotificationsModuleModel(client), plansModule: new PlansModuleModel(client), - hierarchyModule: new HierarchyModuleModel(client), - billingModule: new BillingModuleModel(client), billingProviderModule: new BillingProviderModuleModel(client), - profilesModule: new ProfilesModuleModel(client), + dbUsageModule: new DbUsageModuleModel(client), + hierarchyModule: new HierarchyModuleModel(client), permissionsModule: new PermissionsModuleModel(client), + notificationsModule: new NotificationsModuleModel(client), + profilesModule: new ProfilesModuleModel(client), + billingModule: new BillingModuleModel(client), relationProvision: new RelationProvisionModel(client), - functionModule: new FunctionModuleModel(client), userAuthModule: new UserAuthModuleModel(client), agentModule: new AgentModuleModel(client), limitsModule: new LimitsModuleModel(client), membershipsModule: new MembershipsModuleModel(client), + entityTypeProvision: new EntityTypeProvisionModel(client), storageModule: new StorageModuleModel(client), eventsModule: new EventsModuleModel(client), - entityTypeProvision: new EntityTypeProvisionModel(client), query: createQueryOperations(client), mutation: createMutationOperations(client), }; diff --git a/sdk/constructive-sdk/src/modules/orm/input-types.ts b/sdk/constructive-sdk/src/modules/orm/input-types.ts index 75db6ada94..62271cf277 100644 --- a/sdk/constructive-sdk/src/modules/orm/input-types.ts +++ b/sdk/constructive-sdk/src/modules/orm/input-types.ts @@ -400,6 +400,20 @@ export interface CryptoAddressesModule { apiName?: string | null; privateApiName?: string | null; } +export interface DenormalizedTableField { + id: string; + databaseId?: string | null; + tableId?: string | null; + fieldId?: string | null; + setIds?: string[] | null; + refTableId?: string | null; + refFieldId?: string | null; + refIds?: string[] | null; + useUpdates?: boolean | null; + updateDefaults?: boolean | null; + funcName?: string | null; + funcOrder?: number | null; +} /** * Entity-aware config row for the identity_providers_module, which provisions a per-database * identity_providers table holding OAuth2 / OIDC (and future SAML) provider definitions. @@ -418,6 +432,8 @@ export interface IdentityProvidersModule { schemaId?: string | null; /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; apiName?: string | null; @@ -426,20 +442,6 @@ export interface IdentityProvidersModule { prefix?: string | null; entityTableId?: string | null; } -export interface DenormalizedTableField { - id: string; - databaseId?: string | null; - tableId?: string | null; - fieldId?: string | null; - setIds?: string[] | null; - refTableId?: string | null; - refFieldId?: string | null; - refIds?: string[] | null; - useUpdates?: boolean | null; - updateDefaults?: boolean | null; - funcName?: string | null; - funcOrder?: number | null; -} export interface RlsModule { id: string; databaseId?: string | null; @@ -566,22 +568,6 @@ export interface CryptoAuthModule { signUpWithKey?: string | null; signInWithChallenge?: string | null; } -export interface RateLimitMetersModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} export interface SessionsModule { id: string; databaseId?: string | null; @@ -595,27 +581,30 @@ export interface SessionsModule { sessionCredentialsTable?: string | null; authSettingsTable?: string | null; } -/** - * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) - * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. - * User-scoped bcrypt credentials are handled by user_credentials_module. - */ -export interface ConfigSecretsModule { +/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ +export interface SecureTableProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database this provision belongs to. Required. */ databaseId?: string | null; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ schemaId?: string | null; - privateSchemaId?: string | null; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ tableId?: string | null; - configDefinitionsTableId?: string | null; + /** 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 | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + /** 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?: Record | null; + /** 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 | null; + /** 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?: Record[] | null; + /** 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?: Record | null; + /** 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?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + /** 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[] | null; } export interface MerkleStoreModule { id: string; @@ -632,6 +621,7 @@ export interface MerkleStoreModule { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; createdAt?: string | null; } export interface GraphModule { @@ -652,51 +642,9 @@ export interface GraphModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -/** Provisions security, fields, grants, and policies onto a table. Each row can independently: (1) create fields via nodes[] array (supporting multiple Data* modules per row), (2) grant privileges via grants[] array (supporting per-role privilege targeting), (3) create RLS policies via policies[] array (supporting multiple Authz* policies per row). Multiple rows can target the same table to compose different concerns. All three concerns are optional and independent. */ -export interface SecureTableProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database this provision belongs to. Required. */ - databaseId?: string | null; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string | null; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string | null; - /** 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 | null; - /** 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?: Record | null; - /** 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 | null; - /** 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?: Record[] | null; - /** 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?: Record | null; - /** 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?: Record | null; - /** 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[] | null; -} -export interface InvitesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} /** Tracks database provisioning requests and their status. The BEFORE INSERT trigger creates the database and sets database_id before RLS policies are evaluated. */ export interface DatabaseProvisionModule { id: string; @@ -723,17 +671,21 @@ export interface DatabaseProvisionModule { updatedAt?: string | null; completedAt?: string | null; } -export interface NamespaceModule { +/** + * Entity-aware PGP-encrypted key-value config/secrets module. Supports app-level (admin-only) + * and org-scoped (per-org secrets with manage_secrets permission) via the scope column. + * User-scoped bcrypt credentials are handled by user_credentials_module. + */ +export interface ConfigSecretsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -741,6 +693,26 @@ export interface NamespaceModule { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; +} +export interface RateLimitMetersModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; } export interface RealtimeModule { id: string; @@ -776,11 +748,93 @@ export interface WebauthnAuthModule { residentKey?: string | null; challengeExpiry?: string | null; } +export interface FunctionInvocationModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface FunctionModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface InvitesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface NamespaceModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} export interface ComputeLogModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; computeLogTableId?: string | null; computeLogTableName?: string | null; usageDailyTableId?: string | null; @@ -800,6 +854,8 @@ export interface InferenceLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; inferenceLogTableId?: string | null; inferenceLogTableName?: string | null; usageDailyTableId?: string | null; @@ -819,6 +875,8 @@ export interface StorageLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; storageLogTableId?: string | null; storageLogTableName?: string | null; usageDailyTableId?: string | null; @@ -838,6 +896,8 @@ export interface TransferLogModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; transferLogTableId?: string | null; transferLogTableName?: string | null; usageDailyTableId?: string | null; @@ -852,53 +912,13 @@ export interface TransferLogModule { apiName?: string | null; privateApiName?: string | null; } -export interface DbUsageModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface NotificationsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface PlansModule { +export interface PlansModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -915,6 +935,54 @@ export interface PlansModule { apiName?: string | null; privateApiName?: string | null; } +export interface BillingProviderModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + provider?: string | null; + productsTableId?: string | null; + pricesTableId?: string | null; + subscriptionsTableId?: string | null; + billingCustomersTableId?: string | null; + billingCustomersTableName?: string | null; + billingProductsTableId?: string | null; + billingProductsTableName?: string | null; + billingPricesTableId?: string | null; + billingPricesTableName?: string | null; + billingSubscriptionsTableId?: string | null; + billingSubscriptionsTableName?: string | null; + billingWebhookEventsTableId?: string | null; + billingWebhookEventsTableName?: string | null; + processBillingEventFunction?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface DbUsageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} export interface HierarchyModule { id: string; databaseId?: string | null; @@ -936,53 +1004,54 @@ export interface HierarchyModule { getSubordinatesFunction?: string | null; getManagersFunction?: string | null; isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; createdAt?: string | null; } -export interface BillingModule { +export interface PermissionsModule { 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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + defaultTableId?: string | null; + defaultTableName?: string | null; + bitlen?: number | null; + scope?: string | null; prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + getPaddedMask?: string | null; + getMask?: string | null; + getByMask?: string | null; + getMaskByName?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface BillingProviderModule { +export interface NotificationsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - provider?: string | null; - productsTableId?: string | null; - pricesTableId?: string | null; - subscriptionsTableId?: string | null; - billingCustomersTableId?: string | null; - billingCustomersTableName?: string | null; - billingProductsTableId?: string | null; - billingProductsTableName?: string | null; - billingPricesTableId?: string | null; - billingPricesTableName?: string | null; - billingSubscriptionsTableId?: string | null; - billingSubscriptionsTableName?: string | null; - billingWebhookEventsTableId?: string | null; - billingWebhookEventsTableName?: string | null; - processBillingEventFunction?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -991,6 +1060,8 @@ export interface ProfilesModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; profilePermissionsTableId?: string | null; @@ -1010,24 +1081,30 @@ export interface ProfilesModule { apiName?: string | null; privateApiName?: string | null; } -export interface PermissionsModule { +export interface BillingModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - defaultTableId?: string | null; - defaultTableName?: string | null; - bitlen?: number | null; - scope?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - getPaddedMask?: string | null; - getMask?: string | null; - getByMask?: string | null; - getMaskByName?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -1164,34 +1241,6 @@ export interface RelationProvision { /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ outTargetFieldId?: string | null; } -export interface FunctionModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - publicSchemaName?: string | null; - privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - policies?: Record | null; - provisions?: Record | null; -} export interface UserAuthModule { id: string; databaseId?: string | null; @@ -1227,6 +1276,8 @@ export interface AgentModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -1246,6 +1297,7 @@ export interface AgentModule { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -1254,12 +1306,15 @@ export interface AgentModule { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface LimitsModule { id: string; databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -1296,6 +1351,8 @@ export interface MembershipsModule { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -1327,116 +1384,37 @@ export interface MembershipsModule { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface StorageModule { +/** + * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, + * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). + * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped + * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). + * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). + * Set table_provision to a single jsonb object (using the same shape as provision_table() / + * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true + * as an escape hatch to apply zero policies. + */ +export interface EntityTypeProvision { + /** Unique identifier for this provision row. */ id: string; + /** The database to provision this entity type in. Required. */ databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - bucketsTableId?: string | null; - filesTableId?: string | null; - bucketsTableName?: string | null; - filesTableName?: string | null; - scope?: string | null; - prefix?: string | null; - policies?: Record | null; - provisions?: Record | null; - entityTableId?: string | null; - endpoint?: string | null; - publicUrlPrefix?: string | null; - provider?: string | null; - allowedOrigins?: string[] | null; - restrictReads?: boolean | null; - hasPathShares?: boolean | null; - pathSharesTableId?: string | null; - uploadUrlExpirySeconds?: number | null; - downloadUrlExpirySeconds?: number | null; - defaultMaxFileSize?: string | null; - maxFilenameLength?: number | null; - cacheTtlSeconds?: number | null; - maxBulkFiles?: number | null; - maxBulkTotalSize?: string | null; - hasVersioning?: boolean | null; - hasContentHash?: boolean | null; - hasCustomKeys?: boolean | null; - hasAuditLog?: boolean | null; - hasConfirmUpload?: boolean | null; - confirmUploadDelay?: string | null; - fileEventsTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface EventsModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - eventsTableId?: string | null; - eventsTableName?: string | null; - eventAggregatesTableId?: string | null; - eventAggregatesTableName?: string | null; - eventTypesTableId?: string | null; - eventTypesTableName?: string | null; - levelsTableId?: string | null; - levelsTableName?: string | null; - levelRequirementsTableId?: string | null; - levelRequirementsTableName?: string | null; - levelGrantsTableId?: string | null; - levelGrantsTableName?: string | null; - achievementRewardsTableId?: string | null; - achievementRewardsTableName?: string | null; - recordEvent?: string | null; - removeEvent?: string | null; - tgEvent?: string | null; - tgEventToggle?: string | null; - tgEventToggleBool?: string | null; - tgEventBool?: string | null; - upsertAggregate?: string | null; - tgUpdateAggregates?: string | null; - pruneEvents?: string | null; - stepsRequired?: string | null; - levelAchieved?: string | null; - tgCheckAchievements?: string | null; - grantAchievement?: string | null; - tgAchievementReward?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -/** - * Provisions a new membership entity type. Each INSERT creates an entity table, registers a membership type, - * and installs the required modules (permissions, memberships, limits) plus optional modules (profiles, levels, invites). - * Uses provision_membership_table() internally. Graceful: duplicate (database_id, prefix) pairs are silently skipped - * via the unique constraint (use INSERT ... ON CONFLICT DO NOTHING). - * Policy behavior: by default the five entity-table RLS policies are applied (gated by is_visible). - * Set table_provision to a single jsonb object (using the same shape as provision_table() / - * blueprint tables[] entries) to replace the defaults with your own; set skip_entity_policies=true - * as an escape hatch to apply zero policies. - */ -export interface EntityTypeProvision { - /** Unique identifier for this provision row. */ - id: string; - /** The database to provision this entity type in. Required. */ - databaseId?: string | null; - /** - * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. - * Stored in the entity_types registry table. - */ - name?: string | null; - /** - * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. - * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), - * and membership table names (prefix_memberships, prefix_members, etc.). - * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. - */ + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name?: string | null; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ prefix?: string | null; /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ description?: string | null; @@ -1669,12 +1647,97 @@ export interface EntityTypeProvision { outInvocationsTableId?: string | null; outExecutionLogsTableId?: string | null; outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; outGraphModuleId?: string | null; outGraphsTableId?: string | null; outAgentModuleId?: string | null; } +export interface StorageModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + bucketsTableId?: string | null; + filesTableId?: string | null; + bucketsTableName?: string | null; + filesTableName?: string | null; + scope?: string | null; + prefix?: string | null; + policies?: Record | null; + provisions?: Record | null; + entityTableId?: string | null; + endpoint?: string | null; + publicUrlPrefix?: string | null; + provider?: string | null; + allowedOrigins?: string[] | null; + restrictReads?: boolean | null; + hasPathShares?: boolean | null; + pathSharesTableId?: string | null; + uploadUrlExpirySeconds?: number | null; + downloadUrlExpirySeconds?: number | null; + defaultMaxFileSize?: string | null; + maxFilenameLength?: number | null; + cacheTtlSeconds?: number | null; + maxBulkFiles?: number | null; + maxBulkTotalSize?: string | null; + hasVersioning?: boolean | null; + hasContentHash?: boolean | null; + hasCustomKeys?: boolean | null; + hasAuditLog?: boolean | null; + hasConfirmUpload?: boolean | null; + confirmUploadDelay?: string | null; + fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface EventsModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + eventsTableId?: string | null; + eventsTableName?: string | null; + eventAggregatesTableId?: string | null; + eventAggregatesTableName?: string | null; + eventTypesTableId?: string | null; + eventTypesTableName?: string | null; + levelsTableId?: string | null; + levelsTableName?: string | null; + levelRequirementsTableId?: string | null; + levelRequirementsTableName?: string | null; + levelGrantsTableId?: string | null; + levelGrantsTableName?: string | null; + achievementRewardsTableId?: string | null; + achievementRewardsTableName?: string | null; + recordEvent?: string | null; + removeEvent?: string | null; + tgEvent?: string | null; + tgEventToggle?: string | null; + tgEventToggleBool?: string | null; + tgEventBool?: string | null; + upsertAggregate?: string | null; + tgUpdateAggregates?: string | null; + pruneEvents?: string | null; + stepsRequired?: string | null; + levelAchieved?: string | null; + tgCheckAchievements?: string | null; + grantAchievement?: string | null; + tgAchievementReward?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + actorTableId?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} // ============ Relation Helper Types ============ export interface ConnectionResult { nodes: T[]; @@ -1705,8 +1768,8 @@ export interface RateLimitsModuleRelations {} export interface UsersModuleRelations {} export interface WebauthnCredentialsModuleRelations {} export interface CryptoAddressesModuleRelations {} -export interface IdentityProvidersModuleRelations {} export interface DenormalizedTableFieldRelations {} +export interface IdentityProvidersModuleRelations {} export interface RlsModuleRelations {} export interface BlueprintRelations { template?: BlueprintTemplate | null; @@ -1721,42 +1784,43 @@ export interface BlueprintConstructionRelations { blueprint?: Blueprint | null; } export interface CryptoAuthModuleRelations {} -export interface RateLimitMetersModuleRelations {} export interface SessionsModuleRelations {} -export interface ConfigSecretsModuleRelations {} +export interface SecureTableProvisionRelations {} export interface MerkleStoreModuleRelations { graphModules?: ConnectionResult; } export interface GraphModuleRelations { merkleStoreModule?: MerkleStoreModule | null; } -export interface SecureTableProvisionRelations {} -export interface InvitesModuleRelations {} export interface DatabaseProvisionModuleRelations {} -export interface NamespaceModuleRelations {} +export interface ConfigSecretsModuleRelations {} +export interface RateLimitMetersModuleRelations {} export interface RealtimeModuleRelations {} export interface WebauthnAuthModuleRelations {} +export interface FunctionInvocationModuleRelations {} +export interface FunctionModuleRelations {} +export interface InvitesModuleRelations {} +export interface NamespaceModuleRelations {} export interface ComputeLogModuleRelations {} export interface InferenceLogModuleRelations {} export interface StorageLogModuleRelations {} export interface TransferLogModuleRelations {} -export interface DbUsageModuleRelations {} -export interface NotificationsModuleRelations {} export interface PlansModuleRelations {} -export interface HierarchyModuleRelations {} -export interface BillingModuleRelations {} export interface BillingProviderModuleRelations {} -export interface ProfilesModuleRelations {} +export interface DbUsageModuleRelations {} +export interface HierarchyModuleRelations {} export interface PermissionsModuleRelations {} +export interface NotificationsModuleRelations {} +export interface ProfilesModuleRelations {} +export interface BillingModuleRelations {} export interface RelationProvisionRelations {} -export interface FunctionModuleRelations {} export interface UserAuthModuleRelations {} export interface AgentModuleRelations {} export interface LimitsModuleRelations {} export interface MembershipsModuleRelations {} +export interface EntityTypeProvisionRelations {} export interface StorageModuleRelations {} export interface EventsModuleRelations {} -export interface EntityTypeProvisionRelations {} // ============ Entity Types With Relations ============ export type DefaultIdsModuleWithRelations = DefaultIdsModule & DefaultIdsModuleRelations; export type MembershipTypesModuleWithRelations = MembershipTypesModule & @@ -1783,52 +1847,54 @@ export type WebauthnCredentialsModuleWithRelations = WebauthnCredentialsModule & WebauthnCredentialsModuleRelations; export type CryptoAddressesModuleWithRelations = CryptoAddressesModule & CryptoAddressesModuleRelations; -export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & - IdentityProvidersModuleRelations; export type DenormalizedTableFieldWithRelations = DenormalizedTableField & DenormalizedTableFieldRelations; +export type IdentityProvidersModuleWithRelations = IdentityProvidersModule & + IdentityProvidersModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type BlueprintWithRelations = Blueprint & BlueprintRelations; export type BlueprintTemplateWithRelations = BlueprintTemplate & BlueprintTemplateRelations; export type BlueprintConstructionWithRelations = BlueprintConstruction & BlueprintConstructionRelations; export type CryptoAuthModuleWithRelations = CryptoAuthModule & CryptoAuthModuleRelations; -export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & - RateLimitMetersModuleRelations; export type SessionsModuleWithRelations = SessionsModule & SessionsModuleRelations; -export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; -export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; -export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type SecureTableProvisionWithRelations = SecureTableProvision & SecureTableProvisionRelations; -export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type MerkleStoreModuleWithRelations = MerkleStoreModule & MerkleStoreModuleRelations; +export type GraphModuleWithRelations = GraphModule & GraphModuleRelations; export type DatabaseProvisionModuleWithRelations = DatabaseProvisionModule & DatabaseProvisionModuleRelations; -export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; +export type ConfigSecretsModuleWithRelations = ConfigSecretsModule & ConfigSecretsModuleRelations; +export type RateLimitMetersModuleWithRelations = RateLimitMetersModule & + RateLimitMetersModuleRelations; export type RealtimeModuleWithRelations = RealtimeModule & RealtimeModuleRelations; export type WebauthnAuthModuleWithRelations = WebauthnAuthModule & WebauthnAuthModuleRelations; +export type FunctionInvocationModuleWithRelations = FunctionInvocationModule & + FunctionInvocationModuleRelations; +export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; +export type InvitesModuleWithRelations = InvitesModule & InvitesModuleRelations; +export type NamespaceModuleWithRelations = NamespaceModule & NamespaceModuleRelations; export type ComputeLogModuleWithRelations = ComputeLogModule & ComputeLogModuleRelations; export type InferenceLogModuleWithRelations = InferenceLogModule & InferenceLogModuleRelations; export type StorageLogModuleWithRelations = StorageLogModule & StorageLogModuleRelations; export type TransferLogModuleWithRelations = TransferLogModule & TransferLogModuleRelations; -export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; -export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; -export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; -export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type BillingProviderModuleWithRelations = BillingProviderModule & BillingProviderModuleRelations; -export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type DbUsageModuleWithRelations = DbUsageModule & DbUsageModuleRelations; +export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; export type PermissionsModuleWithRelations = PermissionsModule & PermissionsModuleRelations; +export type NotificationsModuleWithRelations = NotificationsModule & NotificationsModuleRelations; +export type ProfilesModuleWithRelations = ProfilesModule & ProfilesModuleRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; export type RelationProvisionWithRelations = RelationProvision & RelationProvisionRelations; -export type FunctionModuleWithRelations = FunctionModule & FunctionModuleRelations; export type UserAuthModuleWithRelations = UserAuthModule & UserAuthModuleRelations; export type AgentModuleWithRelations = AgentModule & AgentModuleRelations; export type LimitsModuleWithRelations = LimitsModule & LimitsModuleRelations; export type MembershipsModuleWithRelations = MembershipsModule & MembershipsModuleRelations; +export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; export type StorageModuleWithRelations = StorageModule & StorageModuleRelations; export type EventsModuleWithRelations = EventsModule & EventsModuleRelations; -export type EntityTypeProvisionWithRelations = EntityTypeProvision & EntityTypeProvisionRelations; // ============ Entity Select Types ============ export type DefaultIdsModuleSelect = { id?: boolean; @@ -1989,19 +2055,6 @@ export type CryptoAddressesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type IdentityProvidersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; -}; export type DenormalizedTableFieldSelect = { id?: boolean; databaseId?: boolean; @@ -2016,6 +2069,21 @@ export type DenormalizedTableFieldSelect = { funcName?: boolean; funcOrder?: boolean; }; +export type IdentityProvidersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; +}; export type RlsModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2123,23 +2191,7 @@ export type CryptoAuthModuleSelect = { signUpWithKey?: boolean; signInWithChallenge?: boolean; }; -export type RateLimitMetersModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - rateLimitStateTableId?: boolean; - rateLimitStateTableName?: boolean; - rateLimitOverridesTableId?: boolean; - rateLimitOverridesTableName?: boolean; - rateWindowLimitsTableId?: boolean; - rateWindowLimitsTableName?: boolean; - checkRateLimitFunction?: boolean; - prefix?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; -export type SessionsModuleSelect = { +export type SessionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; @@ -2152,22 +2204,18 @@ export type SessionsModuleSelect = { sessionCredentialsTable?: boolean; authSettingsTable?: boolean; }; -export type ConfigSecretsModuleSelect = { +export type SecureTableProvisionSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; - privateSchemaId?: boolean; tableId?: boolean; - configDefinitionsTableId?: boolean; tableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; + nodes?: boolean; + useRls?: boolean; + fields?: boolean; + grants?: boolean; policies?: boolean; - provisions?: boolean; - hasConfig?: boolean; + outFields?: boolean; }; export type MerkleStoreModuleSelect = { id?: boolean; @@ -2184,6 +2232,7 @@ export type MerkleStoreModuleSelect = { apiName?: boolean; privateApiName?: boolean; scope?: boolean; + functionPrefix?: boolean; createdAt?: boolean; graphModules?: { select: GraphModuleSelect; @@ -2210,42 +2259,12 @@ export type GraphModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; merkleStoreModule?: { select: MerkleStoreModuleSelect; }; }; -export type SecureTableProvisionSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - nodes?: boolean; - useRls?: boolean; - fields?: boolean; - grants?: boolean; - policies?: boolean; - outFields?: boolean; -}; -export type InvitesModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - emailsTableId?: boolean; - usersTableId?: boolean; - invitesTableId?: boolean; - claimedInvitesTableId?: boolean; - invitesTableName?: boolean; - claimedInvitesTableName?: boolean; - submitInviteCodeFunction?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - apiName?: boolean; - privateApiName?: boolean; -}; export type DatabaseProvisionModuleSelect = { id?: boolean; databaseName?: boolean; @@ -2262,17 +2281,16 @@ export type DatabaseProvisionModuleSelect = { updatedAt?: boolean; completedAt?: boolean; }; -export type NamespaceModuleSelect = { +export type ConfigSecretsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; publicSchemaName?: boolean; privateSchemaName?: boolean; - namespacesTableId?: boolean; - namespaceEventsTableId?: boolean; - namespacesTableName?: boolean; - namespaceEventsTableName?: boolean; + tableId?: boolean; + configDefinitionsTableId?: boolean; + tableName?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2280,6 +2298,26 @@ export type NamespaceModuleSelect = { entityTableId?: boolean; policies?: boolean; provisions?: boolean; + hasConfig?: boolean; +}; +export type RateLimitMetersModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + rateLimitStateTableId?: boolean; + rateLimitStateTableName?: boolean; + rateLimitOverridesTableId?: boolean; + rateLimitOverridesTableName?: boolean; + rateWindowLimitsTableId?: boolean; + rateWindowLimitsTableName?: boolean; + checkRateLimitFunction?: boolean; + prefix?: boolean; + defaultPermissions?: boolean; + apiName?: boolean; + privateApiName?: boolean; }; export type RealtimeModuleSelect = { id?: boolean; @@ -2315,11 +2353,93 @@ export type WebauthnAuthModuleSelect = { residentKey?: boolean; challengeExpiry?: boolean; }; +export type FunctionInvocationModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + invocationsTableId?: boolean; + executionLogsTableId?: boolean; + invocationsTableName?: boolean; + executionLogsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type FunctionModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + definitionsTableId?: boolean; + secretDefinitionsTableId?: boolean; + definitionsTableName?: boolean; + secretDefinitionsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; +export type InvitesModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + emailsTableId?: boolean; + usersTableId?: boolean; + invitesTableId?: boolean; + claimedInvitesTableId?: boolean; + invitesTableName?: boolean; + claimedInvitesTableName?: boolean; + submitInviteCodeFunction?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + apiName?: boolean; + privateApiName?: boolean; +}; +export type NamespaceModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + namespacesTableId?: boolean; + namespaceEventsTableId?: boolean; + namespacesTableName?: boolean; + namespaceEventsTableName?: boolean; + apiName?: boolean; + privateApiName?: boolean; + scope?: boolean; + prefix?: boolean; + entityTableId?: boolean; + policies?: boolean; + provisions?: boolean; + defaultPermissions?: boolean; +}; export type ComputeLogModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; computeLogTableId?: boolean; computeLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2339,6 +2459,8 @@ export type InferenceLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; inferenceLogTableId?: boolean; inferenceLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2358,6 +2480,8 @@ export type StorageLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; storageLogTableId?: boolean; storageLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2377,6 +2501,8 @@ export type TransferLogModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; transferLogTableId?: boolean; transferLogTableName?: boolean; usageDailyTableId?: boolean; @@ -2391,66 +2517,74 @@ export type TransferLogModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type DbUsageModuleSelect = { +export type PlansModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableStatsLogTableId?: boolean; - tableStatsLogTableName?: boolean; - tableStatsDailyTableId?: boolean; - tableStatsDailyTableName?: boolean; - queryStatsLogTableId?: boolean; - queryStatsLogTableName?: boolean; - queryStatsDailyTableId?: boolean; - queryStatsDailyTableName?: boolean; - interval?: boolean; - retention?: boolean; - premake?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + planPricingTableId?: boolean; + planOverridesTableId?: boolean; + planMeterLimitsTableId?: boolean; + planCapsTableId?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; + applyBillingPlanFunction?: boolean; + applyPlanCapsFunction?: boolean; prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type NotificationsModuleSelect = { +export type BillingProviderModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - notificationsTableId?: boolean; - readStateTableId?: boolean; - preferencesTableId?: boolean; - channelsTableId?: boolean; - deliveryLogTableId?: boolean; - ownerTableId?: boolean; - userSettingsTableId?: boolean; - organizationSettingsTableId?: boolean; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; + provider?: boolean; + productsTableId?: boolean; + pricesTableId?: boolean; + subscriptionsTableId?: boolean; + billingCustomersTableId?: boolean; + billingCustomersTableName?: boolean; + billingProductsTableId?: boolean; + billingProductsTableName?: boolean; + billingPricesTableId?: boolean; + billingPricesTableName?: boolean; + billingSubscriptionsTableId?: boolean; + billingSubscriptionsTableName?: boolean; + billingWebhookEventsTableId?: boolean; + billingWebhookEventsTableName?: boolean; + processBillingEventFunction?: boolean; + prefix?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type PlansModuleSelect = { +export type DbUsageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - plansTableId?: boolean; - plansTableName?: boolean; - planLimitsTableId?: boolean; - planLimitsTableName?: boolean; - planPricingTableId?: boolean; - planOverridesTableId?: boolean; - planMeterLimitsTableId?: boolean; - planCapsTableId?: boolean; - applyPlanFunction?: boolean; - applyPlanAggregateFunction?: boolean; - applyBillingPlanFunction?: boolean; - applyPlanCapsFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableStatsLogTableId?: boolean; + tableStatsLogTableName?: boolean; + tableStatsDailyTableId?: boolean; + tableStatsDailyTableName?: boolean; + queryStatsLogTableId?: boolean; + queryStatsLogTableName?: boolean; + queryStatsDailyTableId?: boolean; + queryStatsDailyTableName?: boolean; + interval?: boolean; + retention?: boolean; + premake?: boolean; + scope?: boolean; prefix?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2475,53 +2609,54 @@ export type HierarchyModuleSelect = { getSubordinatesFunction?: boolean; getManagersFunction?: boolean; isManagerOfFunction?: boolean; + defaultPermissions?: boolean; createdAt?: boolean; }; -export type BillingModuleSelect = { +export type PermissionsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - metersTableId?: boolean; - metersTableName?: boolean; - planSubscriptionsTableId?: boolean; - planSubscriptionsTableName?: boolean; - ledgerTableId?: boolean; - ledgerTableName?: boolean; - balancesTableId?: boolean; - balancesTableName?: boolean; - meterCreditsTableId?: boolean; - meterCreditsTableName?: boolean; - meterSourcesTableId?: boolean; - meterSourcesTableName?: boolean; - meterDefaultsTableId?: boolean; - meterDefaultsTableName?: boolean; - recordUsageFunction?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + tableId?: boolean; + tableName?: boolean; + defaultTableId?: boolean; + defaultTableName?: boolean; + bitlen?: boolean; + scope?: boolean; prefix?: boolean; + entityTableId?: boolean; + actorTableId?: boolean; + getPaddedMask?: boolean; + getMask?: boolean; + getByMask?: boolean; + getMaskByName?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type BillingProviderModuleSelect = { +export type NotificationsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - provider?: boolean; - productsTableId?: boolean; - pricesTableId?: boolean; - subscriptionsTableId?: boolean; - billingCustomersTableId?: boolean; - billingCustomersTableName?: boolean; - billingProductsTableId?: boolean; - billingProductsTableName?: boolean; - billingPricesTableId?: boolean; - billingPricesTableName?: boolean; - billingSubscriptionsTableId?: boolean; - billingSubscriptionsTableName?: boolean; - billingWebhookEventsTableId?: boolean; - billingWebhookEventsTableName?: boolean; - processBillingEventFunction?: boolean; - prefix?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + notificationsTableId?: boolean; + readStateTableId?: boolean; + preferencesTableId?: boolean; + channelsTableId?: boolean; + deliveryLogTableId?: boolean; + suppressionsTableId?: boolean; + ownerTableId?: boolean; + userSettingsTableId?: boolean; + organizationSettingsTableId?: boolean; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2530,6 +2665,8 @@ export type ProfilesModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; profilePermissionsTableId?: boolean; @@ -2549,24 +2686,30 @@ export type ProfilesModuleSelect = { apiName?: boolean; privateApiName?: boolean; }; -export type PermissionsModuleSelect = { +export type BillingModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; - tableId?: boolean; - tableName?: boolean; - defaultTableId?: boolean; - defaultTableName?: boolean; - bitlen?: boolean; - scope?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + meterCreditsTableId?: boolean; + meterCreditsTableName?: boolean; + meterSourcesTableId?: boolean; + meterSourcesTableName?: boolean; + meterDefaultsTableId?: boolean; + meterDefaultsTableName?: boolean; + recordUsageFunction?: boolean; prefix?: boolean; - entityTableId?: boolean; - actorTableId?: boolean; - getPaddedMask?: boolean; - getMask?: boolean; - getByMask?: boolean; - getMaskByName?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2596,34 +2739,6 @@ export type RelationProvisionSelect = { outSourceFieldId?: boolean; outTargetFieldId?: boolean; }; -export type FunctionModuleSelect = { - id?: boolean; - databaseId?: boolean; - schemaId?: boolean; - privateSchemaId?: boolean; - publicSchemaName?: boolean; - privateSchemaName?: boolean; - definitionsTableId?: boolean; - invocationsTableId?: boolean; - executionLogsTableId?: boolean; - secretDefinitionsTableId?: boolean; - requirementsTableId?: boolean; - configDefinitionsTableId?: boolean; - configRequirementsTableId?: boolean; - definitionsTableName?: boolean; - invocationsTableName?: boolean; - executionLogsTableName?: boolean; - secretDefinitionsTableName?: boolean; - requirementsTableName?: boolean; - configRequirementsTableName?: boolean; - apiName?: boolean; - privateApiName?: boolean; - scope?: boolean; - prefix?: boolean; - entityTableId?: boolean; - policies?: boolean; - provisions?: boolean; -}; export type UserAuthModuleSelect = { id?: boolean; databaseId?: boolean; @@ -2659,6 +2774,8 @@ export type AgentModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; threadTableId?: boolean; messageTableId?: boolean; taskTableId?: boolean; @@ -2678,6 +2795,7 @@ export type AgentModuleSelect = { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: boolean; privateApiName?: boolean; scope?: boolean; @@ -2686,12 +2804,15 @@ export type AgentModuleSelect = { policies?: boolean; resources?: boolean; provisions?: boolean; + defaultPermissions?: boolean; }; export type LimitsModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; tableId?: boolean; tableName?: boolean; defaultTableId?: boolean; @@ -2728,6 +2849,8 @@ export type MembershipsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; membershipsTableId?: boolean; membershipsTableName?: boolean; membersTableId?: boolean; @@ -2759,14 +2882,60 @@ export type MembershipsModuleSelect = { entityIdsByPerm?: boolean; entityIdsFunction?: boolean; memberProfilesTableId?: boolean; + permissionDefaultPermissionsTableId?: boolean; + permissionDefaultGrantsTableId?: boolean; apiName?: boolean; privateApiName?: boolean; }; +export type EntityTypeProvisionSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + prefix?: boolean; + description?: boolean; + parentEntity?: boolean; + tableName?: boolean; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: boolean; + namespaces?: boolean; + functions?: boolean; + graphs?: boolean; + agents?: boolean; + skipEntityPolicies?: boolean; + tableProvision?: boolean; + outMembershipType?: boolean; + outEntityTableId?: boolean; + outEntityTableName?: boolean; + outInstalledModules?: boolean; + outStorageModuleId?: boolean; + outBucketsTableId?: boolean; + outFilesTableId?: boolean; + outPathSharesTableId?: boolean; + outInvitesModuleId?: boolean; + outNamespaceModuleId?: boolean; + outNamespacesTableId?: boolean; + outNamespaceEventsTableId?: boolean; + outFunctionModuleId?: boolean; + outDefinitionsTableId?: boolean; + outInvocationsTableId?: boolean; + outExecutionLogsTableId?: boolean; + outSecretDefinitionsTableId?: boolean; + outGraphModuleId?: boolean; + outGraphsTableId?: boolean; + outAgentModuleId?: boolean; +}; export type StorageModuleSelect = { id?: boolean; databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; bucketsTableName?: boolean; @@ -2797,6 +2966,7 @@ export type StorageModuleSelect = { hasConfirmUpload?: boolean; confirmUploadDelay?: boolean; fileEventsTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; @@ -2805,6 +2975,8 @@ export type EventsModuleSelect = { databaseId?: boolean; schemaId?: boolean; privateSchemaId?: boolean; + publicSchemaName?: boolean; + privateSchemaName?: boolean; eventsTableId?: boolean; eventsTableName?: boolean; eventAggregatesTableId?: boolean; @@ -2840,53 +3012,10 @@ export type EventsModuleSelect = { prefix?: boolean; entityTableId?: boolean; actorTableId?: boolean; + defaultPermissions?: boolean; apiName?: boolean; privateApiName?: boolean; }; -export type EntityTypeProvisionSelect = { - id?: boolean; - databaseId?: boolean; - name?: boolean; - prefix?: boolean; - description?: boolean; - parentEntity?: boolean; - tableName?: boolean; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: boolean; - namespaces?: boolean; - functions?: boolean; - graphs?: boolean; - agents?: boolean; - skipEntityPolicies?: boolean; - tableProvision?: boolean; - outMembershipType?: boolean; - outEntityTableId?: boolean; - outEntityTableName?: boolean; - outInstalledModules?: boolean; - outStorageModuleId?: boolean; - outBucketsTableId?: boolean; - outFilesTableId?: boolean; - outPathSharesTableId?: boolean; - outInvitesModuleId?: boolean; - outNamespaceModuleId?: boolean; - outNamespacesTableId?: boolean; - outNamespaceEventsTableId?: boolean; - outFunctionModuleId?: boolean; - outDefinitionsTableId?: boolean; - outInvocationsTableId?: boolean; - outExecutionLogsTableId?: boolean; - outSecretDefinitionsTableId?: boolean; - outRequirementsTableId?: boolean; - outConfigRequirementsTableId?: boolean; - outGraphModuleId?: boolean; - outGraphsTableId?: boolean; - outAgentModuleId?: boolean; -}; // ============ Table Filter Types ============ export interface DefaultIdsModuleFilter { /** Filter by the object’s `id` field. */ @@ -3274,36 +3403,6 @@ export interface CryptoAddressesModuleFilter { /** Negates the expression. */ not?: CryptoAddressesModuleFilter; } -export interface IdentityProvidersModuleFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: IdentityProvidersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: IdentityProvidersModuleFilter[]; - /** Negates the expression. */ - not?: IdentityProvidersModuleFilter; -} export interface DenormalizedTableFieldFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3336,7 +3435,7 @@ export interface DenormalizedTableFieldFilter { /** Negates the expression. */ not?: DenormalizedTableFieldFilter; } -export interface RlsModuleFilter { +export interface IdentityProvidersModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3345,16 +3444,50 @@ export interface RlsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `sessionCredentialsTableId` field. */ - sessionCredentialsTableId?: UUIDFilter; - /** Filter by the object’s `sessionsTableId` field. */ - sessionsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `authenticate` field. */ - authenticate?: StringFilter; - /** Filter by the object’s `authenticateStrict` field. */ - authenticateStrict?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: IdentityProvidersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: IdentityProvidersModuleFilter[]; + /** Negates the expression. */ + not?: IdentityProvidersModuleFilter; +} +export interface RlsModuleFilter { + /** 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 `sessionCredentialsTableId` field. */ + sessionCredentialsTableId?: UUIDFilter; + /** Filter by the object’s `sessionsTableId` field. */ + sessionsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `authenticate` field. */ + authenticate?: StringFilter; + /** Filter by the object’s `authenticateStrict` field. */ + authenticateStrict?: StringFilter; /** Filter by the object’s `currentRole` field. */ currentRole?: StringFilter; /** Filter by the object’s `currentRoleId` field. */ @@ -3538,42 +3671,6 @@ export interface CryptoAuthModuleFilter { /** Negates the expression. */ not?: CryptoAuthModuleFilter; } -export interface RateLimitMetersModuleFilter { - /** 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 `rateLimitStateTableId` field. */ - rateLimitStateTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitStateTableName` field. */ - rateLimitStateTableName?: StringFilter; - /** Filter by the object’s `rateLimitOverridesTableId` field. */ - rateLimitOverridesTableId?: UUIDFilter; - /** Filter by the object’s `rateLimitOverridesTableName` field. */ - rateLimitOverridesTableName?: StringFilter; - /** Filter by the object’s `rateWindowLimitsTableId` field. */ - rateWindowLimitsTableId?: UUIDFilter; - /** Filter by the object’s `rateWindowLimitsTableName` field. */ - rateWindowLimitsTableName?: StringFilter; - /** Filter by the object’s `checkRateLimitFunction` field. */ - checkRateLimitFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: RateLimitMetersModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: RateLimitMetersModuleFilter[]; - /** Negates the expression. */ - not?: RateLimitMetersModuleFilter; -} export interface SessionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3604,43 +3701,35 @@ export interface SessionsModuleFilter { /** Negates the expression. */ not?: SessionsModuleFilter; } -export interface ConfigSecretsModuleFilter { +export interface SecureTableProvisionFilter { /** 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 `tableId` field. */ tableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; + /** Filter by the object’s `nodes` field. */ + nodes?: JSONFilter; + /** Filter by the object’s `useRls` field. */ + useRls?: BooleanFilter; + /** Filter by the object’s `fields` field. */ + fields?: JSONListFilter; + /** Filter by the object’s `grants` field. */ + grants?: JSONFilter; /** Filter by the object’s `policies` field. */ policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Filter by the object’s `hasConfig` field. */ - hasConfig?: BooleanFilter; + /** Filter by the object’s `outFields` field. */ + outFields?: UUIDListFilter; /** Checks for all expressions in this list. */ - and?: ConfigSecretsModuleFilter[]; + and?: SecureTableProvisionFilter[]; /** Checks for any expressions in this list. */ - or?: ConfigSecretsModuleFilter[]; + or?: SecureTableProvisionFilter[]; /** Negates the expression. */ - not?: ConfigSecretsModuleFilter; + not?: SecureTableProvisionFilter; } export interface MerkleStoreModuleFilter { /** Filter by the object’s `id` field. */ @@ -3671,6 +3760,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3719,6 +3810,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -3730,76 +3823,6 @@ export interface GraphModuleFilter { /** Filter by the object’s `merkleStoreModule` relation. */ merkleStoreModule?: MerkleStoreModuleFilter; } -export interface SecureTableProvisionFilter { - /** 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 `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `nodes` field. */ - nodes?: JSONFilter; - /** Filter by the object’s `useRls` field. */ - useRls?: BooleanFilter; - /** Filter by the object’s `fields` field. */ - fields?: JSONListFilter; - /** Filter by the object’s `grants` field. */ - grants?: JSONFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `outFields` field. */ - outFields?: UUIDListFilter; - /** Checks for all expressions in this list. */ - and?: SecureTableProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: SecureTableProvisionFilter[]; - /** Negates the expression. */ - not?: SecureTableProvisionFilter; -} -export interface InvitesModuleFilter { - /** 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 `emailsTableId` field. */ - emailsTableId?: UUIDFilter; - /** Filter by the object’s `usersTableId` field. */ - usersTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableId` field. */ - invitesTableId?: UUIDFilter; - /** Filter by the object’s `claimedInvitesTableId` field. */ - claimedInvitesTableId?: UUIDFilter; - /** Filter by the object’s `invitesTableName` field. */ - invitesTableName?: StringFilter; - /** Filter by the object’s `claimedInvitesTableName` field. */ - claimedInvitesTableName?: StringFilter; - /** Filter by the object’s `submitInviteCodeFunction` field. */ - submitInviteCodeFunction?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Checks for all expressions in this list. */ - and?: InvitesModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: InvitesModuleFilter[]; - /** Negates the expression. */ - not?: InvitesModuleFilter; -} export interface DatabaseProvisionModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -3836,7 +3859,7 @@ export interface DatabaseProvisionModuleFilter { /** Negates the expression. */ not?: DatabaseProvisionModuleFilter; } -export interface NamespaceModuleFilter { +export interface ConfigSecretsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3849,14 +3872,12 @@ export interface NamespaceModuleFilter { publicSchemaName?: StringFilter; /** Filter by the object’s `privateSchemaName` field. */ privateSchemaName?: StringFilter; - /** Filter by the object’s `namespacesTableId` field. */ - namespacesTableId?: UUIDFilter; - /** Filter by the object’s `namespaceEventsTableId` field. */ - namespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `namespacesTableName` field. */ - namespacesTableName?: StringFilter; - /** Filter by the object’s `namespaceEventsTableName` field. */ - namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `configDefinitionsTableId` field. */ + configDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -3871,12 +3892,56 @@ export interface NamespaceModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `hasConfig` field. */ + hasConfig?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: NamespaceModuleFilter[]; + and?: ConfigSecretsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NamespaceModuleFilter[]; + or?: ConfigSecretsModuleFilter[]; /** Negates the expression. */ - not?: NamespaceModuleFilter; + not?: ConfigSecretsModuleFilter; +} +export interface RateLimitMetersModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `rateLimitStateTableId` field. */ + rateLimitStateTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitStateTableName` field. */ + rateLimitStateTableName?: StringFilter; + /** Filter by the object’s `rateLimitOverridesTableId` field. */ + rateLimitOverridesTableId?: UUIDFilter; + /** Filter by the object’s `rateLimitOverridesTableName` field. */ + rateLimitOverridesTableName?: StringFilter; + /** Filter by the object’s `rateWindowLimitsTableId` field. */ + rateWindowLimitsTableId?: UUIDFilter; + /** Filter by the object’s `rateWindowLimitsTableName` field. */ + rateWindowLimitsTableName?: StringFilter; + /** Filter by the object’s `checkRateLimitFunction` field. */ + checkRateLimitFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RateLimitMetersModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: RateLimitMetersModuleFilter[]; + /** Negates the expression. */ + not?: RateLimitMetersModuleFilter; } export interface RealtimeModuleFilter { /** Filter by the object’s `id` field. */ @@ -3954,7 +4019,7 @@ export interface WebauthnAuthModuleFilter { /** Negates the expression. */ not?: WebauthnAuthModuleFilter; } -export interface ComputeLogModuleFilter { +export interface FunctionInvocationModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -3963,11 +4028,191 @@ export interface ComputeLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `computeLogTableId` field. */ - computeLogTableId?: UUIDFilter; - /** Filter by the object’s `computeLogTableName` field. */ - computeLogTableName?: StringFilter; - /** Filter by the object’s `usageDailyTableId` field. */ + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `invocationsTableId` field. */ + invocationsTableId?: UUIDFilter; + /** Filter by the object’s `executionLogsTableId` field. */ + executionLogsTableId?: UUIDFilter; + /** Filter by the object’s `invocationsTableName` field. */ + invocationsTableName?: StringFilter; + /** Filter by the object’s `executionLogsTableName` field. */ + executionLogsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionInvocationModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionInvocationModuleFilter[]; + /** Negates the expression. */ + not?: FunctionInvocationModuleFilter; +} +export interface FunctionModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `definitionsTableId` field. */ + definitionsTableId?: UUIDFilter; + /** Filter by the object’s `secretDefinitionsTableId` field. */ + secretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `definitionsTableName` field. */ + definitionsTableName?: StringFilter; + /** Filter by the object’s `secretDefinitionsTableName` field. */ + secretDefinitionsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: FunctionModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: FunctionModuleFilter[]; + /** Negates the expression. */ + not?: FunctionModuleFilter; +} +export interface InvitesModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `emailsTableId` field. */ + emailsTableId?: UUIDFilter; + /** Filter by the object’s `usersTableId` field. */ + usersTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableId` field. */ + invitesTableId?: UUIDFilter; + /** Filter by the object’s `claimedInvitesTableId` field. */ + claimedInvitesTableId?: UUIDFilter; + /** Filter by the object’s `invitesTableName` field. */ + invitesTableName?: StringFilter; + /** Filter by the object’s `claimedInvitesTableName` field. */ + claimedInvitesTableName?: StringFilter; + /** Filter by the object’s `submitInviteCodeFunction` field. */ + submitInviteCodeFunction?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Checks for all expressions in this list. */ + and?: InvitesModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: InvitesModuleFilter[]; + /** Negates the expression. */ + not?: InvitesModuleFilter; +} +export interface NamespaceModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `namespacesTableId` field. */ + namespacesTableId?: UUIDFilter; + /** Filter by the object’s `namespaceEventsTableId` field. */ + namespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `namespacesTableName` field. */ + namespacesTableName?: StringFilter; + /** Filter by the object’s `namespaceEventsTableName` field. */ + namespaceEventsTableName?: StringFilter; + /** Filter by the object’s `apiName` field. */ + apiName?: StringFilter; + /** Filter by the object’s `privateApiName` field. */ + privateApiName?: StringFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `policies` field. */ + policies?: JSONFilter; + /** Filter by the object’s `provisions` field. */ + provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NamespaceModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: NamespaceModuleFilter[]; + /** Negates the expression. */ + not?: NamespaceModuleFilter; +} +export interface ComputeLogModuleFilter { + /** 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 `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `computeLogTableId` field. */ + computeLogTableId?: UUIDFilter; + /** Filter by the object’s `computeLogTableName` field. */ + computeLogTableName?: StringFilter; + /** Filter by the object’s `usageDailyTableId` field. */ usageDailyTableId?: UUIDFilter; /** Filter by the object’s `usageDailyTableName` field. */ usageDailyTableName?: StringFilter; @@ -4005,6 +4250,10 @@ export interface InferenceLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `inferenceLogTableId` field. */ inferenceLogTableId?: UUIDFilter; /** Filter by the object’s `inferenceLogTableName` field. */ @@ -4047,6 +4296,10 @@ export interface StorageLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `storageLogTableId` field. */ storageLogTableId?: UUIDFilter; /** Filter by the object’s `storageLogTableName` field. */ @@ -4089,6 +4342,10 @@ export interface TransferLogModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `transferLogTableId` field. */ transferLogTableId?: UUIDFilter; /** Filter by the object’s `transferLogTableName` field. */ @@ -4122,7 +4379,7 @@ export interface TransferLogModuleFilter { /** Negates the expression. */ not?: TransferLogModuleFilter; } -export interface DbUsageModuleFilter { +export interface PlansModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4131,30 +4388,34 @@ export interface DbUsageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableId` field. */ - tableStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsLogTableName` field. */ - tableStatsLogTableName?: StringFilter; - /** Filter by the object’s `tableStatsDailyTableId` field. */ - tableStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `tableStatsDailyTableName` field. */ - tableStatsDailyTableName?: StringFilter; - /** Filter by the object’s `queryStatsLogTableId` field. */ - queryStatsLogTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsLogTableName` field. */ - queryStatsLogTableName?: StringFilter; - /** Filter by the object’s `queryStatsDailyTableId` field. */ - queryStatsDailyTableId?: UUIDFilter; - /** Filter by the object’s `queryStatsDailyTableName` field. */ - queryStatsDailyTableName?: StringFilter; - /** Filter by the object’s `interval` field. */ - interval?: StringFilter; - /** Filter by the object’s `retention` field. */ - retention?: StringFilter; - /** Filter by the object’s `premake` field. */ - premake?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `planPricingTableId` field. */ + planPricingTableId?: UUIDFilter; + /** Filter by the object’s `planOverridesTableId` field. */ + planOverridesTableId?: UUIDFilter; + /** Filter by the object’s `planMeterLimitsTableId` field. */ + planMeterLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planCapsTableId` field. */ + planCapsTableId?: UUIDFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `applyBillingPlanFunction` field. */ + applyBillingPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanCapsFunction` field. */ + applyPlanCapsFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ @@ -4162,13 +4423,13 @@ export interface DbUsageModuleFilter { /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: DbUsageModuleFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: DbUsageModuleFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: DbUsageModuleFilter; + not?: PlansModuleFilter; } -export interface NotificationsModuleFilter { +export interface BillingProviderModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4177,44 +4438,50 @@ export interface NotificationsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `notificationsTableId` field. */ - notificationsTableId?: UUIDFilter; - /** Filter by the object’s `readStateTableId` field. */ - readStateTableId?: UUIDFilter; - /** Filter by the object’s `preferencesTableId` field. */ - preferencesTableId?: UUIDFilter; - /** Filter by the object’s `channelsTableId` field. */ - channelsTableId?: UUIDFilter; - /** Filter by the object’s `deliveryLogTableId` field. */ - deliveryLogTableId?: UUIDFilter; - /** Filter by the object’s `ownerTableId` field. */ - ownerTableId?: UUIDFilter; - /** Filter by the object’s `userSettingsTableId` field. */ - userSettingsTableId?: UUIDFilter; - /** Filter by the object’s `organizationSettingsTableId` field. */ - organizationSettingsTableId?: UUIDFilter; - /** Filter by the object’s `hasChannels` field. */ - hasChannels?: BooleanFilter; - /** Filter by the object’s `hasPreferences` field. */ - hasPreferences?: BooleanFilter; - /** Filter by the object’s `hasSettingsExtension` field. */ - hasSettingsExtension?: BooleanFilter; - /** Filter by the object’s `hasDigestMetadata` field. */ - hasDigestMetadata?: BooleanFilter; - /** Filter by the object’s `hasSubscriptions` field. */ - hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `provider` field. */ + provider?: StringFilter; + /** Filter by the object’s `productsTableId` field. */ + productsTableId?: UUIDFilter; + /** Filter by the object’s `pricesTableId` field. */ + pricesTableId?: UUIDFilter; + /** Filter by the object’s `subscriptionsTableId` field. */ + subscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableId` field. */ + billingCustomersTableId?: UUIDFilter; + /** Filter by the object’s `billingCustomersTableName` field. */ + billingCustomersTableName?: StringFilter; + /** Filter by the object’s `billingProductsTableId` field. */ + billingProductsTableId?: UUIDFilter; + /** Filter by the object’s `billingProductsTableName` field. */ + billingProductsTableName?: StringFilter; + /** Filter by the object’s `billingPricesTableId` field. */ + billingPricesTableId?: UUIDFilter; + /** Filter by the object’s `billingPricesTableName` field. */ + billingPricesTableName?: StringFilter; + /** Filter by the object’s `billingSubscriptionsTableId` field. */ + billingSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `billingSubscriptionsTableName` field. */ + billingSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `billingWebhookEventsTableId` field. */ + billingWebhookEventsTableId?: UUIDFilter; + /** Filter by the object’s `billingWebhookEventsTableName` field. */ + billingWebhookEventsTableName?: StringFilter; + /** Filter by the object’s `processBillingEventFunction` field. */ + processBillingEventFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: NotificationsModuleFilter[]; + and?: BillingProviderModuleFilter[]; /** Checks for any expressions in this list. */ - or?: NotificationsModuleFilter[]; + or?: BillingProviderModuleFilter[]; /** Negates the expression. */ - not?: NotificationsModuleFilter; + not?: BillingProviderModuleFilter; } -export interface PlansModuleFilter { +export interface DbUsageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4223,42 +4490,48 @@ export interface PlansModuleFilter { 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 `planPricingTableId` field. */ - planPricingTableId?: UUIDFilter; - /** Filter by the object’s `planOverridesTableId` field. */ - planOverridesTableId?: UUIDFilter; - /** Filter by the object’s `planMeterLimitsTableId` field. */ - planMeterLimitsTableId?: UUIDFilter; - /** Filter by the object’s `planCapsTableId` field. */ - planCapsTableId?: UUIDFilter; - /** Filter by the object’s `applyPlanFunction` field. */ - applyPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanAggregateFunction` field. */ - applyPlanAggregateFunction?: StringFilter; - /** Filter by the object’s `applyBillingPlanFunction` field. */ - applyBillingPlanFunction?: StringFilter; - /** Filter by the object’s `applyPlanCapsFunction` field. */ - applyPlanCapsFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableStatsLogTableId` field. */ + tableStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsLogTableName` field. */ + tableStatsLogTableName?: StringFilter; + /** Filter by the object’s `tableStatsDailyTableId` field. */ + tableStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `tableStatsDailyTableName` field. */ + tableStatsDailyTableName?: StringFilter; + /** Filter by the object’s `queryStatsLogTableId` field. */ + queryStatsLogTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsLogTableName` field. */ + queryStatsLogTableName?: StringFilter; + /** Filter by the object’s `queryStatsDailyTableId` field. */ + queryStatsDailyTableId?: UUIDFilter; + /** Filter by the object’s `queryStatsDailyTableName` field. */ + queryStatsDailyTableName?: StringFilter; + /** Filter by the object’s `interval` field. */ + interval?: StringFilter; + /** Filter by the object’s `retention` field. */ + retention?: StringFilter; + /** Filter by the object’s `premake` field. */ + premake?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PlansModuleFilter[]; + and?: DbUsageModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PlansModuleFilter[]; + or?: DbUsageModuleFilter[]; /** Negates the expression. */ - not?: PlansModuleFilter; + not?: DbUsageModuleFilter; } export interface HierarchyModuleFilter { /** Filter by the object’s `id` field. */ @@ -4301,6 +4574,8 @@ export interface HierarchyModuleFilter { getManagersFunction?: StringFilter; /** Filter by the object’s `isManagerOfFunction` field. */ isManagerOfFunction?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -4310,7 +4585,7 @@ export interface HierarchyModuleFilter { /** Negates the expression. */ not?: HierarchyModuleFilter; } -export interface BillingModuleFilter { +export interface PermissionsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4319,50 +4594,48 @@ export interface BillingModuleFilter { 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 `meterCreditsTableId` field. */ - meterCreditsTableId?: UUIDFilter; - /** Filter by the object’s `meterCreditsTableName` field. */ - meterCreditsTableName?: StringFilter; - /** Filter by the object’s `meterSourcesTableId` field. */ - meterSourcesTableId?: UUIDFilter; - /** Filter by the object’s `meterSourcesTableName` field. */ - meterSourcesTableName?: StringFilter; - /** Filter by the object’s `meterDefaultsTableId` field. */ - meterDefaultsTableId?: UUIDFilter; - /** Filter by the object’s `meterDefaultsTableName` field. */ - meterDefaultsTableName?: StringFilter; - /** Filter by the object’s `recordUsageFunction` field. */ - recordUsageFunction?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `defaultTableId` field. */ + defaultTableId?: UUIDFilter; + /** Filter by the object’s `defaultTableName` field. */ + defaultTableName?: StringFilter; + /** Filter by the object’s `bitlen` field. */ + bitlen?: IntFilter; + /** Filter by the object’s `scope` field. */ + scope?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; + /** Filter by the object’s `entityTableId` field. */ + entityTableId?: UUIDFilter; + /** Filter by the object’s `actorTableId` field. */ + actorTableId?: UUIDFilter; + /** Filter by the object’s `getPaddedMask` field. */ + getPaddedMask?: StringFilter; + /** Filter by the object’s `getMask` field. */ + getMask?: StringFilter; + /** Filter by the object’s `getByMask` field. */ + getByMask?: StringFilter; + /** Filter by the object’s `getMaskByName` field. */ + getMaskByName?: StringFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingModuleFilter[]; + and?: PermissionsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingModuleFilter[]; + or?: PermissionsModuleFilter[]; /** Negates the expression. */ - not?: BillingModuleFilter; + not?: PermissionsModuleFilter; } -export interface BillingProviderModuleFilter { +export interface NotificationsModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4371,48 +4644,50 @@ export interface BillingProviderModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `provider` field. */ - provider?: StringFilter; - /** Filter by the object’s `productsTableId` field. */ - productsTableId?: UUIDFilter; - /** Filter by the object’s `pricesTableId` field. */ - pricesTableId?: UUIDFilter; - /** Filter by the object’s `subscriptionsTableId` field. */ - subscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableId` field. */ - billingCustomersTableId?: UUIDFilter; - /** Filter by the object’s `billingCustomersTableName` field. */ - billingCustomersTableName?: StringFilter; - /** Filter by the object’s `billingProductsTableId` field. */ - billingProductsTableId?: UUIDFilter; - /** Filter by the object’s `billingProductsTableName` field. */ - billingProductsTableName?: StringFilter; - /** Filter by the object’s `billingPricesTableId` field. */ - billingPricesTableId?: UUIDFilter; - /** Filter by the object’s `billingPricesTableName` field. */ - billingPricesTableName?: StringFilter; - /** Filter by the object’s `billingSubscriptionsTableId` field. */ - billingSubscriptionsTableId?: UUIDFilter; - /** Filter by the object’s `billingSubscriptionsTableName` field. */ - billingSubscriptionsTableName?: StringFilter; - /** Filter by the object’s `billingWebhookEventsTableId` field. */ - billingWebhookEventsTableId?: UUIDFilter; - /** Filter by the object’s `billingWebhookEventsTableName` field. */ - billingWebhookEventsTableName?: StringFilter; - /** Filter by the object’s `processBillingEventFunction` field. */ - processBillingEventFunction?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `notificationsTableId` field. */ + notificationsTableId?: UUIDFilter; + /** Filter by the object’s `readStateTableId` field. */ + readStateTableId?: UUIDFilter; + /** Filter by the object’s `preferencesTableId` field. */ + preferencesTableId?: UUIDFilter; + /** Filter by the object’s `channelsTableId` field. */ + channelsTableId?: UUIDFilter; + /** Filter by the object’s `deliveryLogTableId` field. */ + deliveryLogTableId?: UUIDFilter; + /** Filter by the object’s `suppressionsTableId` field. */ + suppressionsTableId?: UUIDFilter; + /** Filter by the object’s `ownerTableId` field. */ + ownerTableId?: UUIDFilter; + /** Filter by the object’s `userSettingsTableId` field. */ + userSettingsTableId?: UUIDFilter; + /** Filter by the object’s `organizationSettingsTableId` field. */ + organizationSettingsTableId?: UUIDFilter; + /** Filter by the object’s `hasChannels` field. */ + hasChannels?: BooleanFilter; + /** Filter by the object’s `hasPreferences` field. */ + hasPreferences?: BooleanFilter; + /** Filter by the object’s `hasSettingsExtension` field. */ + hasSettingsExtension?: BooleanFilter; + /** Filter by the object’s `hasDigestMetadata` field. */ + hasDigestMetadata?: BooleanFilter; + /** Filter by the object’s `hasSubscriptions` field. */ + hasSubscriptions?: BooleanFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: BillingProviderModuleFilter[]; + and?: NotificationsModuleFilter[]; /** Checks for any expressions in this list. */ - or?: BillingProviderModuleFilter[]; + or?: NotificationsModuleFilter[]; /** Negates the expression. */ - not?: BillingProviderModuleFilter; + not?: NotificationsModuleFilter; } export interface ProfilesModuleFilter { /** Filter by the object’s `id` field. */ @@ -4423,8 +4698,12 @@ export interface ProfilesModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** Filter by the object’s `tableId` field. */ + tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ tableName?: StringFilter; /** Filter by the object’s `profilePermissionsTableId` field. */ @@ -4466,7 +4745,7 @@ export interface ProfilesModuleFilter { /** Negates the expression. */ not?: ProfilesModuleFilter; } -export interface PermissionsModuleFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `databaseId` field. */ @@ -4475,42 +4754,54 @@ export interface PermissionsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; - /** Filter by the object’s `tableId` field. */ - tableId?: UUIDFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `defaultTableId` field. */ - defaultTableId?: UUIDFilter; - /** Filter by the object’s `defaultTableName` field. */ - defaultTableName?: StringFilter; - /** Filter by the object’s `bitlen` field. */ - bitlen?: IntFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; + /** 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 `meterCreditsTableId` field. */ + meterCreditsTableId?: UUIDFilter; + /** Filter by the object’s `meterCreditsTableName` field. */ + meterCreditsTableName?: StringFilter; + /** Filter by the object’s `meterSourcesTableId` field. */ + meterSourcesTableId?: UUIDFilter; + /** Filter by the object’s `meterSourcesTableName` field. */ + meterSourcesTableName?: StringFilter; + /** Filter by the object’s `meterDefaultsTableId` field. */ + meterDefaultsTableId?: UUIDFilter; + /** Filter by the object’s `meterDefaultsTableName` field. */ + meterDefaultsTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `actorTableId` field. */ - actorTableId?: UUIDFilter; - /** Filter by the object’s `getPaddedMask` field. */ - getPaddedMask?: StringFilter; - /** Filter by the object’s `getMask` field. */ - getMask?: StringFilter; - /** Filter by the object’s `getByMask` field. */ - getByMask?: StringFilter; - /** Filter by the object’s `getMaskByName` field. */ - getMaskByName?: StringFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ privateApiName?: StringFilter; /** Checks for all expressions in this list. */ - and?: PermissionsModuleFilter[]; + and?: BillingModuleFilter[]; /** Checks for any expressions in this list. */ - or?: PermissionsModuleFilter[]; + or?: BillingModuleFilter[]; /** Negates the expression. */ - not?: PermissionsModuleFilter; + not?: BillingModuleFilter; } export interface RelationProvisionFilter { /** Filter by the object’s `id` field. */ @@ -4568,66 +4859,6 @@ export interface RelationProvisionFilter { /** Negates the expression. */ not?: RelationProvisionFilter; } -export interface FunctionModuleFilter { - /** 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 `publicSchemaName` field. */ - publicSchemaName?: StringFilter; - /** Filter by the object’s `privateSchemaName` field. */ - privateSchemaName?: StringFilter; - /** Filter by the object’s `definitionsTableId` field. */ - definitionsTableId?: UUIDFilter; - /** Filter by the object’s `invocationsTableId` field. */ - invocationsTableId?: UUIDFilter; - /** Filter by the object’s `executionLogsTableId` field. */ - executionLogsTableId?: UUIDFilter; - /** Filter by the object’s `secretDefinitionsTableId` field. */ - secretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `requirementsTableId` field. */ - requirementsTableId?: UUIDFilter; - /** Filter by the object’s `configDefinitionsTableId` field. */ - configDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `configRequirementsTableId` field. */ - configRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `definitionsTableName` field. */ - definitionsTableName?: StringFilter; - /** Filter by the object’s `invocationsTableName` field. */ - invocationsTableName?: StringFilter; - /** Filter by the object’s `executionLogsTableName` field. */ - executionLogsTableName?: StringFilter; - /** Filter by the object’s `secretDefinitionsTableName` field. */ - secretDefinitionsTableName?: StringFilter; - /** Filter by the object’s `requirementsTableName` field. */ - requirementsTableName?: StringFilter; - /** Filter by the object’s `configRequirementsTableName` field. */ - configRequirementsTableName?: StringFilter; - /** Filter by the object’s `apiName` field. */ - apiName?: StringFilter; - /** Filter by the object’s `privateApiName` field. */ - privateApiName?: StringFilter; - /** Filter by the object’s `scope` field. */ - scope?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `entityTableId` field. */ - entityTableId?: UUIDFilter; - /** Filter by the object’s `policies` field. */ - policies?: JSONFilter; - /** Filter by the object’s `provisions` field. */ - provisions?: JSONFilter; - /** Checks for all expressions in this list. */ - and?: FunctionModuleFilter[]; - /** Checks for any expressions in this list. */ - or?: FunctionModuleFilter[]; - /** Negates the expression. */ - not?: FunctionModuleFilter; -} export interface UserAuthModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4701,6 +4932,10 @@ export interface AgentModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `threadTableId` field. */ threadTableId?: UUIDFilter; /** Filter by the object’s `messageTableId` field. */ @@ -4739,6 +4974,8 @@ export interface AgentModuleFilter { hasResources?: BooleanFilter; /** Filter by the object’s `hasAgents` field. */ hasAgents?: BooleanFilter; + /** Filter by the object’s `shared` field. */ + shared?: BooleanFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4755,6 +4992,8 @@ export interface AgentModuleFilter { resources?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Checks for all expressions in this list. */ and?: AgentModuleFilter[]; /** Checks for any expressions in this list. */ @@ -4771,6 +5010,10 @@ export interface LimitsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `tableId` field. */ tableId?: UUIDFilter; /** Filter by the object’s `tableName` field. */ @@ -4847,6 +5090,10 @@ export interface MembershipsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `membershipsTableId` field. */ membershipsTableId?: UUIDFilter; /** Filter by the object’s `membershipsTableName` field. */ @@ -4909,6 +5156,10 @@ export interface MembershipsModuleFilter { entityIdsFunction?: StringFilter; /** Filter by the object’s `memberProfilesTableId` field. */ memberProfilesTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultPermissionsTableId` field. */ + permissionDefaultPermissionsTableId?: UUIDFilter; + /** Filter by the object’s `permissionDefaultGrantsTableId` field. */ + permissionDefaultGrantsTableId?: UUIDFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -4920,6 +5171,94 @@ export interface MembershipsModuleFilter { /** Negates the expression. */ not?: MembershipsModuleFilter; } +export interface EntityTypeProvisionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parentEntity` field. */ + parentEntity?: StringFilter; + /** Filter by the object’s `tableName` field. */ + tableName?: StringFilter; + /** Filter by the object’s `isVisible` field. */ + isVisible?: BooleanFilter; + /** Filter by the object’s `hasLimits` field. */ + hasLimits?: BooleanFilter; + /** Filter by the object’s `hasProfiles` field. */ + hasProfiles?: BooleanFilter; + /** Filter by the object’s `hasLevels` field. */ + hasLevels?: BooleanFilter; + /** Filter by the object’s `hasInvites` field. */ + hasInvites?: BooleanFilter; + /** Filter by the object’s `hasInviteAchievements` field. */ + hasInviteAchievements?: BooleanFilter; + /** Filter by the object’s `storage` field. */ + storage?: JSONFilter; + /** Filter by the object’s `namespaces` field. */ + namespaces?: JSONFilter; + /** Filter by the object’s `functions` field. */ + functions?: JSONFilter; + /** Filter by the object’s `graphs` field. */ + graphs?: JSONFilter; + /** Filter by the object’s `agents` field. */ + agents?: JSONFilter; + /** Filter by the object’s `skipEntityPolicies` field. */ + skipEntityPolicies?: BooleanFilter; + /** Filter by the object’s `tableProvision` field. */ + tableProvision?: JSONFilter; + /** Filter by the object’s `outMembershipType` field. */ + outMembershipType?: IntFilter; + /** Filter by the object’s `outEntityTableId` field. */ + outEntityTableId?: UUIDFilter; + /** Filter by the object’s `outEntityTableName` field. */ + outEntityTableName?: StringFilter; + /** Filter by the object’s `outInstalledModules` field. */ + outInstalledModules?: StringListFilter; + /** Filter by the object’s `outStorageModuleId` field. */ + outStorageModuleId?: UUIDFilter; + /** Filter by the object’s `outBucketsTableId` field. */ + outBucketsTableId?: UUIDFilter; + /** Filter by the object’s `outFilesTableId` field. */ + outFilesTableId?: UUIDFilter; + /** Filter by the object’s `outPathSharesTableId` field. */ + outPathSharesTableId?: UUIDFilter; + /** Filter by the object’s `outInvitesModuleId` field. */ + outInvitesModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespaceModuleId` field. */ + outNamespaceModuleId?: UUIDFilter; + /** Filter by the object’s `outNamespacesTableId` field. */ + outNamespacesTableId?: UUIDFilter; + /** Filter by the object’s `outNamespaceEventsTableId` field. */ + outNamespaceEventsTableId?: UUIDFilter; + /** Filter by the object’s `outFunctionModuleId` field. */ + outFunctionModuleId?: UUIDFilter; + /** Filter by the object’s `outDefinitionsTableId` field. */ + outDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outInvocationsTableId` field. */ + outInvocationsTableId?: UUIDFilter; + /** Filter by the object’s `outExecutionLogsTableId` field. */ + outExecutionLogsTableId?: UUIDFilter; + /** Filter by the object’s `outSecretDefinitionsTableId` field. */ + outSecretDefinitionsTableId?: UUIDFilter; + /** Filter by the object’s `outGraphModuleId` field. */ + outGraphModuleId?: UUIDFilter; + /** Filter by the object’s `outGraphsTableId` field. */ + outGraphsTableId?: UUIDFilter; + /** Filter by the object’s `outAgentModuleId` field. */ + outAgentModuleId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: EntityTypeProvisionFilter[]; + /** Checks for any expressions in this list. */ + or?: EntityTypeProvisionFilter[]; + /** Negates the expression. */ + not?: EntityTypeProvisionFilter; +} export interface StorageModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -4929,6 +5268,10 @@ export interface StorageModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `bucketsTableId` field. */ bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ @@ -4989,6 +5332,8 @@ export interface StorageModuleFilter { confirmUploadDelay?: IntervalFilter; /** Filter by the object’s `fileEventsTableId` field. */ fileEventsTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5009,6 +5354,10 @@ export interface EventsModuleFilter { schemaId?: UUIDFilter; /** Filter by the object’s `privateSchemaId` field. */ privateSchemaId?: UUIDFilter; + /** Filter by the object’s `publicSchemaName` field. */ + publicSchemaName?: StringFilter; + /** Filter by the object’s `privateSchemaName` field. */ + privateSchemaName?: StringFilter; /** Filter by the object’s `eventsTableId` field. */ eventsTableId?: UUIDFilter; /** Filter by the object’s `eventsTableName` field. */ @@ -5079,6 +5428,8 @@ export interface EventsModuleFilter { entityTableId?: UUIDFilter; /** Filter by the object’s `actorTableId` field. */ actorTableId?: UUIDFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `apiName` field. */ apiName?: StringFilter; /** Filter by the object’s `privateApiName` field. */ @@ -5090,98 +5441,6 @@ export interface EventsModuleFilter { /** Negates the expression. */ not?: EventsModuleFilter; } -export interface EntityTypeProvisionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `parentEntity` field. */ - parentEntity?: StringFilter; - /** Filter by the object’s `tableName` field. */ - tableName?: StringFilter; - /** Filter by the object’s `isVisible` field. */ - isVisible?: BooleanFilter; - /** Filter by the object’s `hasLimits` field. */ - hasLimits?: BooleanFilter; - /** Filter by the object’s `hasProfiles` field. */ - hasProfiles?: BooleanFilter; - /** Filter by the object’s `hasLevels` field. */ - hasLevels?: BooleanFilter; - /** Filter by the object’s `hasInvites` field. */ - hasInvites?: BooleanFilter; - /** Filter by the object’s `hasInviteAchievements` field. */ - hasInviteAchievements?: BooleanFilter; - /** Filter by the object’s `storage` field. */ - storage?: JSONFilter; - /** Filter by the object’s `namespaces` field. */ - namespaces?: JSONFilter; - /** Filter by the object’s `functions` field. */ - functions?: JSONFilter; - /** Filter by the object’s `graphs` field. */ - graphs?: JSONFilter; - /** Filter by the object’s `agents` field. */ - agents?: JSONFilter; - /** Filter by the object’s `skipEntityPolicies` field. */ - skipEntityPolicies?: BooleanFilter; - /** Filter by the object’s `tableProvision` field. */ - tableProvision?: JSONFilter; - /** Filter by the object’s `outMembershipType` field. */ - outMembershipType?: IntFilter; - /** Filter by the object’s `outEntityTableId` field. */ - outEntityTableId?: UUIDFilter; - /** Filter by the object’s `outEntityTableName` field. */ - outEntityTableName?: StringFilter; - /** Filter by the object’s `outInstalledModules` field. */ - outInstalledModules?: StringListFilter; - /** Filter by the object’s `outStorageModuleId` field. */ - outStorageModuleId?: UUIDFilter; - /** Filter by the object’s `outBucketsTableId` field. */ - outBucketsTableId?: UUIDFilter; - /** Filter by the object’s `outFilesTableId` field. */ - outFilesTableId?: UUIDFilter; - /** Filter by the object’s `outPathSharesTableId` field. */ - outPathSharesTableId?: UUIDFilter; - /** Filter by the object’s `outInvitesModuleId` field. */ - outInvitesModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespaceModuleId` field. */ - outNamespaceModuleId?: UUIDFilter; - /** Filter by the object’s `outNamespacesTableId` field. */ - outNamespacesTableId?: UUIDFilter; - /** Filter by the object’s `outNamespaceEventsTableId` field. */ - outNamespaceEventsTableId?: UUIDFilter; - /** Filter by the object’s `outFunctionModuleId` field. */ - outFunctionModuleId?: UUIDFilter; - /** Filter by the object’s `outDefinitionsTableId` field. */ - outDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outInvocationsTableId` field. */ - outInvocationsTableId?: UUIDFilter; - /** Filter by the object’s `outExecutionLogsTableId` field. */ - outExecutionLogsTableId?: UUIDFilter; - /** Filter by the object’s `outSecretDefinitionsTableId` field. */ - outSecretDefinitionsTableId?: UUIDFilter; - /** Filter by the object’s `outRequirementsTableId` field. */ - outRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outConfigRequirementsTableId` field. */ - outConfigRequirementsTableId?: UUIDFilter; - /** Filter by the object’s `outGraphModuleId` field. */ - outGraphModuleId?: UUIDFilter; - /** Filter by the object’s `outGraphsTableId` field. */ - outGraphsTableId?: UUIDFilter; - /** Filter by the object’s `outAgentModuleId` field. */ - outAgentModuleId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: EntityTypeProvisionFilter[]; - /** Checks for any expressions in this list. */ - or?: EntityTypeProvisionFilter[]; - /** Negates the expression. */ - not?: EntityTypeProvisionFilter; -} // ============ OrderBy Types ============ export type DefaultIdsModuleOrderBy = | 'NATURAL' @@ -5501,32 +5760,6 @@ export type CryptoAddressesModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type IdentityProvidersModuleOrderBy = - | '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' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC'; export type DenormalizedTableFieldOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5555,6 +5788,36 @@ export type DenormalizedTableFieldOrderBy = | 'FUNC_NAME_DESC' | 'FUNC_ORDER_ASC' | 'FUNC_ORDER_DESC'; +export type IdentityProvidersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5715,38 +5978,6 @@ export type CryptoAuthModuleOrderBy = | 'SIGN_UP_WITH_KEY_DESC' | 'SIGN_IN_WITH_CHALLENGE_ASC' | 'SIGN_IN_WITH_CHALLENGE_DESC'; -export type RateLimitMetersModuleOrderBy = - | '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' - | 'RATE_LIMIT_STATE_TABLE_ID_ASC' - | 'RATE_LIMIT_STATE_TABLE_ID_DESC' - | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' - | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' - | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' - | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' - | 'CHECK_RATE_LIMIT_FUNCTION_ASC' - | 'CHECK_RATE_LIMIT_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type SessionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5773,7 +6004,7 @@ export type SessionsModuleOrderBy = | 'SESSION_CREDENTIALS_TABLE_DESC' | 'AUTH_SETTINGS_TABLE_ASC' | 'AUTH_SETTINGS_TABLE_DESC'; -export type ConfigSecretsModuleOrderBy = +export type SecureTableProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5783,30 +6014,22 @@ export type ConfigSecretsModuleOrderBy = | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' | 'TABLE_NAME_ASC' | 'TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' + | 'NODES_ASC' + | 'NODES_DESC' + | 'USE_RLS_ASC' + | 'USE_RLS_DESC' + | 'FIELDS_ASC' + | 'FIELDS_DESC' + | 'GRANTS_ASC' + | 'GRANTS_DESC' | 'POLICIES_ASC' | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'HAS_CONFIG_ASC' - | 'HAS_CONFIG_DESC'; + | 'OUT_FIELDS_ASC' + | 'OUT_FIELDS_DESC'; export type MerkleStoreModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5839,6 +6062,8 @@ export type MerkleStoreModuleOrderBy = | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' + | 'FUNCTION_PREFIX_ASC' + | 'FUNCTION_PREFIX_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; export type GraphModuleOrderBy = @@ -5879,70 +6104,10 @@ export type GraphModuleOrderBy = | 'POLICIES_DESC' | 'PROVISIONS_ASC' | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type SecureTableProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'NODES_ASC' - | 'NODES_DESC' - | 'USE_RLS_ASC' - | 'USE_RLS_DESC' - | 'FIELDS_ASC' - | 'FIELDS_DESC' - | 'GRANTS_ASC' - | 'GRANTS_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'OUT_FIELDS_ASC' - | 'OUT_FIELDS_DESC'; -export type InvitesModuleOrderBy = - | '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' - | 'EMAILS_TABLE_ID_ASC' - | 'EMAILS_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'INVITES_TABLE_ID_ASC' - | 'INVITES_TABLE_ID_DESC' - | 'CLAIMED_INVITES_TABLE_ID_ASC' - | 'CLAIMED_INVITES_TABLE_ID_DESC' - | 'INVITES_TABLE_NAME_ASC' - | 'INVITES_TABLE_NAME_DESC' - | 'CLAIMED_INVITES_TABLE_NAME_ASC' - | 'CLAIMED_INVITES_TABLE_NAME_DESC' - | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' - | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type DatabaseProvisionModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -5975,7 +6140,7 @@ export type DatabaseProvisionModuleOrderBy = | 'UPDATED_AT_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC'; -export type NamespaceModuleOrderBy = +export type ConfigSecretsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -5991,16 +6156,14 @@ export type NamespaceModuleOrderBy = | 'PUBLIC_SCHEMA_NAME_DESC' | 'PRIVATE_SCHEMA_NAME_ASC' | 'PRIVATE_SCHEMA_NAME_DESC' - | 'NAMESPACES_TABLE_ID_ASC' - | 'NAMESPACES_TABLE_ID_DESC' - | 'NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'NAMESPACES_TABLE_NAME_ASC' - | 'NAMESPACES_TABLE_NAME_DESC' - | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' - | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' + | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC' | 'SCOPE_ASC' @@ -6012,7 +6175,47 @@ export type NamespaceModuleOrderBy = | 'POLICIES_ASC' | 'POLICIES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'HAS_CONFIG_ASC' + | 'HAS_CONFIG_DESC'; +export type RateLimitMetersModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'RATE_LIMIT_STATE_TABLE_ID_ASC' + | 'RATE_LIMIT_STATE_TABLE_ID_DESC' + | 'RATE_LIMIT_STATE_TABLE_NAME_ASC' + | 'RATE_LIMIT_STATE_TABLE_NAME_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_ID_DESC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_ASC' + | 'RATE_LIMIT_OVERRIDES_TABLE_NAME_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_ID_DESC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_ASC' + | 'RATE_WINDOW_LIMITS_TABLE_NAME_DESC' + | 'CHECK_RATE_LIMIT_FUNCTION_ASC' + | 'CHECK_RATE_LIMIT_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; export type RealtimeModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6081,6 +6284,166 @@ export type WebauthnAuthModuleOrderBy = | 'RESIDENT_KEY_DESC' | 'CHALLENGE_EXPIRY_ASC' | 'CHALLENGE_EXPIRY_DESC'; +export type FunctionInvocationModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'INVOCATIONS_TABLE_ID_ASC' + | 'INVOCATIONS_TABLE_ID_DESC' + | 'EXECUTION_LOGS_TABLE_ID_ASC' + | 'EXECUTION_LOGS_TABLE_ID_DESC' + | 'INVOCATIONS_TABLE_NAME_ASC' + | 'INVOCATIONS_TABLE_NAME_DESC' + | 'EXECUTION_LOGS_TABLE_NAME_ASC' + | 'EXECUTION_LOGS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type FunctionModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'DEFINITIONS_TABLE_ID_ASC' + | 'DEFINITIONS_TABLE_ID_DESC' + | 'SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'DEFINITIONS_TABLE_NAME_ASC' + | 'DEFINITIONS_TABLE_NAME_DESC' + | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' + | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; +export type InvitesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'EMAILS_TABLE_ID_ASC' + | 'EMAILS_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'INVITES_TABLE_ID_ASC' + | 'INVITES_TABLE_ID_DESC' + | 'CLAIMED_INVITES_TABLE_ID_ASC' + | 'CLAIMED_INVITES_TABLE_ID_DESC' + | 'INVITES_TABLE_NAME_ASC' + | 'INVITES_TABLE_NAME_DESC' + | 'CLAIMED_INVITES_TABLE_NAME_ASC' + | 'CLAIMED_INVITES_TABLE_NAME_DESC' + | 'SUBMIT_INVITE_CODE_FUNCTION_ASC' + | 'SUBMIT_INVITE_CODE_FUNCTION_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type NamespaceModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NAMESPACES_TABLE_ID_ASC' + | 'NAMESPACES_TABLE_ID_DESC' + | 'NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'NAMESPACES_TABLE_NAME_ASC' + | 'NAMESPACES_TABLE_NAME_DESC' + | 'NAMESPACE_EVENTS_TABLE_NAME_ASC' + | 'NAMESPACE_EVENTS_TABLE_NAME_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type ComputeLogModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6093,6 +6456,10 @@ export type ComputeLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'COMPUTE_LOG_TABLE_ID_ASC' | 'COMPUTE_LOG_TABLE_ID_DESC' | 'COMPUTE_LOG_TABLE_NAME_ASC' @@ -6131,6 +6498,10 @@ export type InferenceLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'INFERENCE_LOG_TABLE_ID_ASC' | 'INFERENCE_LOG_TABLE_ID_DESC' | 'INFERENCE_LOG_TABLE_NAME_ASC' @@ -6169,6 +6540,10 @@ export type StorageLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'STORAGE_LOG_TABLE_ID_ASC' | 'STORAGE_LOG_TABLE_ID_DESC' | 'STORAGE_LOG_TABLE_NAME_ASC' @@ -6207,6 +6582,10 @@ export type TransferLogModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TRANSFER_LOG_TABLE_ID_ASC' | 'TRANSFER_LOG_TABLE_ID_DESC' | 'TRANSFER_LOG_TABLE_NAME_ASC' @@ -6233,91 +6612,7 @@ export type TransferLogModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type DbUsageModuleOrderBy = - | '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' - | 'TABLE_STATS_LOG_TABLE_ID_ASC' - | 'TABLE_STATS_LOG_TABLE_ID_DESC' - | 'TABLE_STATS_LOG_TABLE_NAME_ASC' - | 'TABLE_STATS_LOG_TABLE_NAME_DESC' - | 'TABLE_STATS_DAILY_TABLE_ID_ASC' - | 'TABLE_STATS_DAILY_TABLE_ID_DESC' - | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' - | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' - | 'QUERY_STATS_LOG_TABLE_ID_ASC' - | 'QUERY_STATS_LOG_TABLE_ID_DESC' - | 'QUERY_STATS_LOG_TABLE_NAME_ASC' - | 'QUERY_STATS_LOG_TABLE_NAME_DESC' - | 'QUERY_STATS_DAILY_TABLE_ID_ASC' - | 'QUERY_STATS_DAILY_TABLE_ID_DESC' - | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' - | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' - | 'INTERVAL_ASC' - | 'INTERVAL_DESC' - | 'RETENTION_ASC' - | 'RETENTION_DESC' - | 'PREMAKE_ASC' - | 'PREMAKE_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type NotificationsModuleOrderBy = - | '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' - | 'NOTIFICATIONS_TABLE_ID_ASC' - | 'NOTIFICATIONS_TABLE_ID_DESC' - | 'READ_STATE_TABLE_ID_ASC' - | 'READ_STATE_TABLE_ID_DESC' - | 'PREFERENCES_TABLE_ID_ASC' - | 'PREFERENCES_TABLE_ID_DESC' - | 'CHANNELS_TABLE_ID_ASC' - | 'CHANNELS_TABLE_ID_DESC' - | 'DELIVERY_LOG_TABLE_ID_ASC' - | 'DELIVERY_LOG_TABLE_ID_DESC' - | 'OWNER_TABLE_ID_ASC' - | 'OWNER_TABLE_ID_DESC' - | 'USER_SETTINGS_TABLE_ID_ASC' - | 'USER_SETTINGS_TABLE_ID_DESC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' - | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' - | 'HAS_CHANNELS_ASC' - | 'HAS_CHANNELS_DESC' - | 'HAS_PREFERENCES_ASC' - | 'HAS_PREFERENCES_DESC' - | 'HAS_SETTINGS_EXTENSION_ASC' - | 'HAS_SETTINGS_EXTENSION_DESC' - | 'HAS_DIGEST_METADATA_ASC' - | 'HAS_DIGEST_METADATA_DESC' - | 'HAS_SUBSCRIPTIONS_ASC' - | 'HAS_SUBSCRIPTIONS_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; -export type PlansModuleOrderBy = +export type PlansModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6329,6 +6624,10 @@ export type PlansModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'PLANS_TABLE_ID_ASC' | 'PLANS_TABLE_ID_DESC' | 'PLANS_TABLE_NAME_ASC' @@ -6359,100 +6658,6 @@ export type PlansModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type HierarchyModuleOrderBy = - | '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' - | 'CHART_EDGES_TABLE_ID_ASC' - | 'CHART_EDGES_TABLE_ID_DESC' - | 'CHART_EDGES_TABLE_NAME_ASC' - | 'CHART_EDGES_TABLE_NAME_DESC' - | 'HIERARCHY_SPRT_TABLE_ID_ASC' - | 'HIERARCHY_SPRT_TABLE_ID_DESC' - | 'HIERARCHY_SPRT_TABLE_NAME_ASC' - | 'HIERARCHY_SPRT_TABLE_NAME_DESC' - | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' - | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' - | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'USERS_TABLE_ID_ASC' - | 'USERS_TABLE_ID_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'SPRT_TABLE_NAME_ASC' - | 'SPRT_TABLE_NAME_DESC' - | 'REBUILD_HIERARCHY_FUNCTION_ASC' - | 'REBUILD_HIERARCHY_FUNCTION_DESC' - | 'GET_SUBORDINATES_FUNCTION_ASC' - | 'GET_SUBORDINATES_FUNCTION_DESC' - | 'GET_MANAGERS_FUNCTION_ASC' - | 'GET_MANAGERS_FUNCTION_DESC' - | 'IS_MANAGER_OF_FUNCTION_ASC' - | 'IS_MANAGER_OF_FUNCTION_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; -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' - | 'METER_CREDITS_TABLE_ID_ASC' - | 'METER_CREDITS_TABLE_ID_DESC' - | 'METER_CREDITS_TABLE_NAME_ASC' - | 'METER_CREDITS_TABLE_NAME_DESC' - | 'METER_SOURCES_TABLE_ID_ASC' - | 'METER_SOURCES_TABLE_ID_DESC' - | 'METER_SOURCES_TABLE_NAME_ASC' - | 'METER_SOURCES_TABLE_NAME_DESC' - | 'METER_DEFAULTS_TABLE_ID_ASC' - | 'METER_DEFAULTS_TABLE_ID_DESC' - | 'METER_DEFAULTS_TABLE_NAME_ASC' - | 'METER_DEFAULTS_TABLE_NAME_DESC' - | 'RECORD_USAGE_FUNCTION_ASC' - | 'RECORD_USAGE_FUNCTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC'; export type BillingProviderModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6501,7 +6706,7 @@ export type BillingProviderModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type ProfilesModuleOrderBy = +export type DbUsageModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6513,42 +6718,90 @@ export type ProfilesModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' - | 'TABLE_ID_ASC' - | 'TABLE_ID_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' - | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' - | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' - | 'PROFILE_GRANTS_TABLE_ID_ASC' - | 'PROFILE_GRANTS_TABLE_ID_DESC' - | 'PROFILE_GRANTS_TABLE_NAME_ASC' - | 'PROFILE_GRANTS_TABLE_NAME_DESC' - | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' - | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_STATS_LOG_TABLE_ID_ASC' + | 'TABLE_STATS_LOG_TABLE_ID_DESC' + | 'TABLE_STATS_LOG_TABLE_NAME_ASC' + | 'TABLE_STATS_LOG_TABLE_NAME_DESC' + | 'TABLE_STATS_DAILY_TABLE_ID_ASC' + | 'TABLE_STATS_DAILY_TABLE_ID_DESC' + | 'TABLE_STATS_DAILY_TABLE_NAME_ASC' + | 'TABLE_STATS_DAILY_TABLE_NAME_DESC' + | 'QUERY_STATS_LOG_TABLE_ID_ASC' + | 'QUERY_STATS_LOG_TABLE_ID_DESC' + | 'QUERY_STATS_LOG_TABLE_NAME_ASC' + | 'QUERY_STATS_LOG_TABLE_NAME_DESC' + | 'QUERY_STATS_DAILY_TABLE_ID_ASC' + | 'QUERY_STATS_DAILY_TABLE_ID_DESC' + | 'QUERY_STATS_DAILY_TABLE_NAME_ASC' + | 'QUERY_STATS_DAILY_TABLE_NAME_DESC' + | 'INTERVAL_ASC' + | 'INTERVAL_DESC' + | 'RETENTION_ASC' + | 'RETENTION_DESC' + | 'PREMAKE_ASC' + | 'PREMAKE_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ACTOR_TABLE_ID_ASC' - | 'ACTOR_TABLE_ID_DESC' - | 'PERMISSIONS_TABLE_ID_ASC' - | 'PERMISSIONS_TABLE_ID_DESC' - | 'MEMBERSHIPS_TABLE_ID_ASC' - | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; +export type HierarchyModuleOrderBy = + | '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' + | 'CHART_EDGES_TABLE_ID_ASC' + | 'CHART_EDGES_TABLE_ID_DESC' + | 'CHART_EDGES_TABLE_NAME_ASC' + | 'CHART_EDGES_TABLE_NAME_DESC' + | 'HIERARCHY_SPRT_TABLE_ID_ASC' + | 'HIERARCHY_SPRT_TABLE_ID_DESC' + | 'HIERARCHY_SPRT_TABLE_NAME_ASC' + | 'HIERARCHY_SPRT_TABLE_NAME_DESC' + | 'CHART_EDGE_GRANTS_TABLE_ID_ASC' + | 'CHART_EDGE_GRANTS_TABLE_ID_DESC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_ASC' + | 'CHART_EDGE_GRANTS_TABLE_NAME_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'USERS_TABLE_ID_ASC' + | 'USERS_TABLE_ID_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'SPRT_TABLE_NAME_ASC' + | 'SPRT_TABLE_NAME_DESC' + | 'REBUILD_HIERARCHY_FUNCTION_ASC' + | 'REBUILD_HIERARCHY_FUNCTION_DESC' + | 'GET_SUBORDINATES_FUNCTION_ASC' + | 'GET_SUBORDINATES_FUNCTION_DESC' + | 'GET_MANAGERS_FUNCTION_ASC' + | 'GET_MANAGERS_FUNCTION_DESC' + | 'IS_MANAGER_OF_FUNCTION_ASC' + | 'IS_MANAGER_OF_FUNCTION_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type PermissionsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6561,6 +6814,10 @@ export type PermissionsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6591,7 +6848,7 @@ export type PermissionsModuleOrderBy = | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type RelationProvisionOrderBy = +export type NotificationsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6599,10 +6856,166 @@ export type RelationProvisionOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'RELATION_TYPE_ASC' - | 'RELATION_TYPE_DESC' - | 'SOURCE_TABLE_ID_ASC' - | 'SOURCE_TABLE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'NOTIFICATIONS_TABLE_ID_ASC' + | 'NOTIFICATIONS_TABLE_ID_DESC' + | 'READ_STATE_TABLE_ID_ASC' + | 'READ_STATE_TABLE_ID_DESC' + | 'PREFERENCES_TABLE_ID_ASC' + | 'PREFERENCES_TABLE_ID_DESC' + | 'CHANNELS_TABLE_ID_ASC' + | 'CHANNELS_TABLE_ID_DESC' + | 'DELIVERY_LOG_TABLE_ID_ASC' + | 'DELIVERY_LOG_TABLE_ID_DESC' + | 'SUPPRESSIONS_TABLE_ID_ASC' + | 'SUPPRESSIONS_TABLE_ID_DESC' + | 'OWNER_TABLE_ID_ASC' + | 'OWNER_TABLE_ID_DESC' + | 'USER_SETTINGS_TABLE_ID_ASC' + | 'USER_SETTINGS_TABLE_ID_DESC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_ASC' + | 'ORGANIZATION_SETTINGS_TABLE_ID_DESC' + | 'HAS_CHANNELS_ASC' + | 'HAS_CHANNELS_DESC' + | 'HAS_PREFERENCES_ASC' + | 'HAS_PREFERENCES_DESC' + | 'HAS_SETTINGS_EXTENSION_ASC' + | 'HAS_SETTINGS_EXTENSION_DESC' + | 'HAS_DIGEST_METADATA_ASC' + | 'HAS_DIGEST_METADATA_DESC' + | 'HAS_SUBSCRIPTIONS_ASC' + | 'HAS_SUBSCRIPTIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type ProfilesModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'TABLE_ID_ASC' + | 'TABLE_ID_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'PROFILE_PERMISSIONS_TABLE_ID_ASC' + | 'PROFILE_PERMISSIONS_TABLE_ID_DESC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_ASC' + | 'PROFILE_PERMISSIONS_TABLE_NAME_DESC' + | 'PROFILE_GRANTS_TABLE_ID_ASC' + | 'PROFILE_GRANTS_TABLE_ID_DESC' + | 'PROFILE_GRANTS_TABLE_NAME_ASC' + | 'PROFILE_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_ASC' + | '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' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ACTOR_TABLE_ID_ASC' + | 'ACTOR_TABLE_ID_DESC' + | 'PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSIONS_TABLE_ID_DESC' + | 'MEMBERSHIPS_TABLE_ID_ASC' + | 'MEMBERSHIPS_TABLE_ID_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_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' + | 'METER_CREDITS_TABLE_ID_ASC' + | 'METER_CREDITS_TABLE_ID_DESC' + | 'METER_CREDITS_TABLE_NAME_ASC' + | 'METER_CREDITS_TABLE_NAME_DESC' + | 'METER_SOURCES_TABLE_ID_ASC' + | 'METER_SOURCES_TABLE_ID_DESC' + | 'METER_SOURCES_TABLE_NAME_ASC' + | 'METER_SOURCES_TABLE_NAME_DESC' + | 'METER_DEFAULTS_TABLE_ID_ASC' + | 'METER_DEFAULTS_TABLE_ID_DESC' + | 'METER_DEFAULTS_TABLE_NAME_ASC' + | 'METER_DEFAULTS_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' + | 'API_NAME_ASC' + | 'API_NAME_DESC' + | 'PRIVATE_API_NAME_ASC' + | 'PRIVATE_API_NAME_DESC'; +export type RelationProvisionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'RELATION_TYPE_ASC' + | 'RELATION_TYPE_DESC' + | 'SOURCE_TABLE_ID_ASC' + | 'SOURCE_TABLE_ID_DESC' | 'TARGET_TABLE_ID_ASC' | 'TARGET_TABLE_ID_DESC' | 'FIELD_NAME_ASC' @@ -6643,62 +7056,6 @@ export type RelationProvisionOrderBy = | 'OUT_SOURCE_FIELD_ID_DESC' | 'OUT_TARGET_FIELD_ID_ASC' | 'OUT_TARGET_FIELD_ID_DESC'; -export type FunctionModuleOrderBy = - | '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' - | 'PUBLIC_SCHEMA_NAME_ASC' - | 'PUBLIC_SCHEMA_NAME_DESC' - | 'PRIVATE_SCHEMA_NAME_ASC' - | 'PRIVATE_SCHEMA_NAME_DESC' - | 'DEFINITIONS_TABLE_ID_ASC' - | 'DEFINITIONS_TABLE_ID_DESC' - | 'INVOCATIONS_TABLE_ID_ASC' - | 'INVOCATIONS_TABLE_ID_DESC' - | 'EXECUTION_LOGS_TABLE_ID_ASC' - | 'EXECUTION_LOGS_TABLE_ID_DESC' - | 'SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'REQUIREMENTS_TABLE_ID_ASC' - | 'REQUIREMENTS_TABLE_ID_DESC' - | 'CONFIG_DEFINITIONS_TABLE_ID_ASC' - | 'CONFIG_DEFINITIONS_TABLE_ID_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'DEFINITIONS_TABLE_NAME_ASC' - | 'DEFINITIONS_TABLE_NAME_DESC' - | 'INVOCATIONS_TABLE_NAME_ASC' - | 'INVOCATIONS_TABLE_NAME_DESC' - | 'EXECUTION_LOGS_TABLE_NAME_ASC' - | 'EXECUTION_LOGS_TABLE_NAME_DESC' - | 'SECRET_DEFINITIONS_TABLE_NAME_ASC' - | 'SECRET_DEFINITIONS_TABLE_NAME_DESC' - | 'REQUIREMENTS_TABLE_NAME_ASC' - | 'REQUIREMENTS_TABLE_NAME_DESC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_ASC' - | 'CONFIG_REQUIREMENTS_TABLE_NAME_DESC' - | 'API_NAME_ASC' - | 'API_NAME_DESC' - | 'PRIVATE_API_NAME_ASC' - | 'PRIVATE_API_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; export type UserAuthModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6771,6 +7128,10 @@ export type AgentModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'THREAD_TABLE_ID_ASC' | 'THREAD_TABLE_ID_DESC' | 'MESSAGE_TABLE_ID_ASC' @@ -6809,6 +7170,8 @@ export type AgentModuleOrderBy = | 'HAS_RESOURCES_DESC' | 'HAS_AGENTS_ASC' | 'HAS_AGENTS_DESC' + | 'SHARED_ASC' + | 'SHARED_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -6824,7 +7187,9 @@ export type AgentModuleOrderBy = | 'RESOURCES_ASC' | 'RESOURCES_DESC' | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC'; + | 'PROVISIONS_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC'; export type LimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -6837,6 +7202,10 @@ export type LimitsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'TABLE_ID_ASC' | 'TABLE_ID_DESC' | 'TABLE_NAME_ASC' @@ -6909,6 +7278,10 @@ export type MembershipsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'MEMBERSHIPS_TABLE_ID_ASC' | 'MEMBERSHIPS_TABLE_ID_DESC' | 'MEMBERSHIPS_TABLE_NAME_ASC' @@ -6971,11 +7344,15 @@ export type MembershipsModuleOrderBy = | 'ENTITY_IDS_FUNCTION_DESC' | 'MEMBER_PROFILES_TABLE_ID_ASC' | 'MEMBER_PROFILES_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_PERMISSIONS_TABLE_ID_DESC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_ASC' + | 'PERMISSION_DEFAULT_GRANTS_TABLE_ID_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type StorageModuleOrderBy = +export type EntityTypeProvisionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -6983,46 +7360,134 @@ export type StorageModuleOrderBy = | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'PRIVATE_SCHEMA_ID_ASC' - | 'PRIVATE_SCHEMA_ID_DESC' - | 'BUCKETS_TABLE_ID_ASC' - | 'BUCKETS_TABLE_ID_DESC' - | 'FILES_TABLE_ID_ASC' - | 'FILES_TABLE_ID_DESC' - | 'BUCKETS_TABLE_NAME_ASC' - | 'BUCKETS_TABLE_NAME_DESC' - | 'FILES_TABLE_NAME_ASC' - | 'FILES_TABLE_NAME_DESC' - | 'SCOPE_ASC' - | 'SCOPE_DESC' + | 'NAME_ASC' + | 'NAME_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' - | 'POLICIES_ASC' - | 'POLICIES_DESC' - | 'PROVISIONS_ASC' - | 'PROVISIONS_DESC' - | 'ENTITY_TABLE_ID_ASC' - | 'ENTITY_TABLE_ID_DESC' - | 'ENDPOINT_ASC' - | 'ENDPOINT_DESC' - | 'PUBLIC_URL_PREFIX_ASC' - | 'PUBLIC_URL_PREFIX_DESC' - | 'PROVIDER_ASC' - | 'PROVIDER_DESC' - | 'ALLOWED_ORIGINS_ASC' - | 'ALLOWED_ORIGINS_DESC' - | 'RESTRICT_READS_ASC' - | 'RESTRICT_READS_DESC' - | 'HAS_PATH_SHARES_ASC' - | 'HAS_PATH_SHARES_DESC' - | 'PATH_SHARES_TABLE_ID_ASC' - | 'PATH_SHARES_TABLE_ID_DESC' - | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' - | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' - | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARENT_ENTITY_ASC' + | 'PARENT_ENTITY_DESC' + | 'TABLE_NAME_ASC' + | 'TABLE_NAME_DESC' + | 'IS_VISIBLE_ASC' + | 'IS_VISIBLE_DESC' + | 'HAS_LIMITS_ASC' + | 'HAS_LIMITS_DESC' + | 'HAS_PROFILES_ASC' + | 'HAS_PROFILES_DESC' + | 'HAS_LEVELS_ASC' + | 'HAS_LEVELS_DESC' + | 'HAS_INVITES_ASC' + | 'HAS_INVITES_DESC' + | 'HAS_INVITE_ACHIEVEMENTS_ASC' + | 'HAS_INVITE_ACHIEVEMENTS_DESC' + | 'STORAGE_ASC' + | 'STORAGE_DESC' + | 'NAMESPACES_ASC' + | 'NAMESPACES_DESC' + | 'FUNCTIONS_ASC' + | 'FUNCTIONS_DESC' + | 'GRAPHS_ASC' + | 'GRAPHS_DESC' + | 'AGENTS_ASC' + | 'AGENTS_DESC' + | 'SKIP_ENTITY_POLICIES_ASC' + | 'SKIP_ENTITY_POLICIES_DESC' + | 'TABLE_PROVISION_ASC' + | 'TABLE_PROVISION_DESC' + | 'OUT_MEMBERSHIP_TYPE_ASC' + | 'OUT_MEMBERSHIP_TYPE_DESC' + | 'OUT_ENTITY_TABLE_ID_ASC' + | 'OUT_ENTITY_TABLE_ID_DESC' + | 'OUT_ENTITY_TABLE_NAME_ASC' + | 'OUT_ENTITY_TABLE_NAME_DESC' + | 'OUT_INSTALLED_MODULES_ASC' + | 'OUT_INSTALLED_MODULES_DESC' + | 'OUT_STORAGE_MODULE_ID_ASC' + | 'OUT_STORAGE_MODULE_ID_DESC' + | 'OUT_BUCKETS_TABLE_ID_ASC' + | 'OUT_BUCKETS_TABLE_ID_DESC' + | 'OUT_FILES_TABLE_ID_ASC' + | 'OUT_FILES_TABLE_ID_DESC' + | 'OUT_PATH_SHARES_TABLE_ID_ASC' + | 'OUT_PATH_SHARES_TABLE_ID_DESC' + | 'OUT_INVITES_MODULE_ID_ASC' + | 'OUT_INVITES_MODULE_ID_DESC' + | 'OUT_NAMESPACE_MODULE_ID_ASC' + | 'OUT_NAMESPACE_MODULE_ID_DESC' + | 'OUT_NAMESPACES_TABLE_ID_ASC' + | 'OUT_NAMESPACES_TABLE_ID_DESC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' + | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' + | 'OUT_FUNCTION_MODULE_ID_ASC' + | 'OUT_FUNCTION_MODULE_ID_DESC' + | 'OUT_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_INVOCATIONS_TABLE_ID_ASC' + | 'OUT_INVOCATIONS_TABLE_ID_DESC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' + | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' + | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' + | 'OUT_GRAPH_MODULE_ID_ASC' + | 'OUT_GRAPH_MODULE_ID_DESC' + | 'OUT_GRAPHS_TABLE_ID_ASC' + | 'OUT_GRAPHS_TABLE_ID_DESC' + | 'OUT_AGENT_MODULE_ID_ASC' + | 'OUT_AGENT_MODULE_ID_DESC'; +export type StorageModuleOrderBy = + | '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' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' + | 'BUCKETS_TABLE_ID_ASC' + | 'BUCKETS_TABLE_ID_DESC' + | 'FILES_TABLE_ID_ASC' + | 'FILES_TABLE_ID_DESC' + | 'BUCKETS_TABLE_NAME_ASC' + | 'BUCKETS_TABLE_NAME_DESC' + | 'FILES_TABLE_NAME_ASC' + | 'FILES_TABLE_NAME_DESC' + | 'SCOPE_ASC' + | 'SCOPE_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'POLICIES_ASC' + | 'POLICIES_DESC' + | 'PROVISIONS_ASC' + | 'PROVISIONS_DESC' + | 'ENTITY_TABLE_ID_ASC' + | 'ENTITY_TABLE_ID_DESC' + | 'ENDPOINT_ASC' + | 'ENDPOINT_DESC' + | 'PUBLIC_URL_PREFIX_ASC' + | 'PUBLIC_URL_PREFIX_DESC' + | 'PROVIDER_ASC' + | 'PROVIDER_DESC' + | 'ALLOWED_ORIGINS_ASC' + | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' + | 'HAS_PATH_SHARES_ASC' + | 'HAS_PATH_SHARES_DESC' + | 'PATH_SHARES_TABLE_ID_ASC' + | 'PATH_SHARES_TABLE_ID_DESC' + | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' + | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' + | 'DOWNLOAD_URL_EXPIRY_SECONDS_DESC' | 'DEFAULT_MAX_FILE_SIZE_ASC' | 'DEFAULT_MAX_FILE_SIZE_DESC' | 'MAX_FILENAME_LENGTH_ASC' @@ -7047,6 +7512,8 @@ export type StorageModuleOrderBy = | 'CONFIRM_UPLOAD_DELAY_DESC' | 'FILE_EVENTS_TABLE_ID_ASC' | 'FILE_EVENTS_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' @@ -7063,6 +7530,10 @@ export type EventsModuleOrderBy = | 'SCHEMA_ID_DESC' | 'PRIVATE_SCHEMA_ID_ASC' | 'PRIVATE_SCHEMA_ID_DESC' + | 'PUBLIC_SCHEMA_NAME_ASC' + | 'PUBLIC_SCHEMA_NAME_DESC' + | 'PRIVATE_SCHEMA_NAME_ASC' + | 'PRIVATE_SCHEMA_NAME_DESC' | 'EVENTS_TABLE_ID_ASC' | 'EVENTS_TABLE_ID_DESC' | 'EVENTS_TABLE_NAME_ASC' @@ -7133,98 +7604,12 @@ export type EventsModuleOrderBy = | 'ENTITY_TABLE_ID_DESC' | 'ACTOR_TABLE_ID_ASC' | 'ACTOR_TABLE_ID_DESC' + | 'DEFAULT_PERMISSIONS_ASC' + | 'DEFAULT_PERMISSIONS_DESC' | 'API_NAME_ASC' | 'API_NAME_DESC' | 'PRIVATE_API_NAME_ASC' | 'PRIVATE_API_NAME_DESC'; -export type EntityTypeProvisionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PARENT_ENTITY_ASC' - | 'PARENT_ENTITY_DESC' - | 'TABLE_NAME_ASC' - | 'TABLE_NAME_DESC' - | 'IS_VISIBLE_ASC' - | 'IS_VISIBLE_DESC' - | 'HAS_LIMITS_ASC' - | 'HAS_LIMITS_DESC' - | 'HAS_PROFILES_ASC' - | 'HAS_PROFILES_DESC' - | 'HAS_LEVELS_ASC' - | 'HAS_LEVELS_DESC' - | 'HAS_INVITES_ASC' - | 'HAS_INVITES_DESC' - | 'HAS_INVITE_ACHIEVEMENTS_ASC' - | 'HAS_INVITE_ACHIEVEMENTS_DESC' - | 'STORAGE_ASC' - | 'STORAGE_DESC' - | 'NAMESPACES_ASC' - | 'NAMESPACES_DESC' - | 'FUNCTIONS_ASC' - | 'FUNCTIONS_DESC' - | 'GRAPHS_ASC' - | 'GRAPHS_DESC' - | 'AGENTS_ASC' - | 'AGENTS_DESC' - | 'SKIP_ENTITY_POLICIES_ASC' - | 'SKIP_ENTITY_POLICIES_DESC' - | 'TABLE_PROVISION_ASC' - | 'TABLE_PROVISION_DESC' - | 'OUT_MEMBERSHIP_TYPE_ASC' - | 'OUT_MEMBERSHIP_TYPE_DESC' - | 'OUT_ENTITY_TABLE_ID_ASC' - | 'OUT_ENTITY_TABLE_ID_DESC' - | 'OUT_ENTITY_TABLE_NAME_ASC' - | 'OUT_ENTITY_TABLE_NAME_DESC' - | 'OUT_INSTALLED_MODULES_ASC' - | 'OUT_INSTALLED_MODULES_DESC' - | 'OUT_STORAGE_MODULE_ID_ASC' - | 'OUT_STORAGE_MODULE_ID_DESC' - | 'OUT_BUCKETS_TABLE_ID_ASC' - | 'OUT_BUCKETS_TABLE_ID_DESC' - | 'OUT_FILES_TABLE_ID_ASC' - | 'OUT_FILES_TABLE_ID_DESC' - | 'OUT_PATH_SHARES_TABLE_ID_ASC' - | 'OUT_PATH_SHARES_TABLE_ID_DESC' - | 'OUT_INVITES_MODULE_ID_ASC' - | 'OUT_INVITES_MODULE_ID_DESC' - | 'OUT_NAMESPACE_MODULE_ID_ASC' - | 'OUT_NAMESPACE_MODULE_ID_DESC' - | 'OUT_NAMESPACES_TABLE_ID_ASC' - | 'OUT_NAMESPACES_TABLE_ID_DESC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_ASC' - | 'OUT_NAMESPACE_EVENTS_TABLE_ID_DESC' - | 'OUT_FUNCTION_MODULE_ID_ASC' - | 'OUT_FUNCTION_MODULE_ID_DESC' - | 'OUT_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_INVOCATIONS_TABLE_ID_ASC' - | 'OUT_INVOCATIONS_TABLE_ID_DESC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_ASC' - | 'OUT_EXECUTION_LOGS_TABLE_ID_DESC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_ASC' - | 'OUT_SECRET_DEFINITIONS_TABLE_ID_DESC' - | 'OUT_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_ASC' - | 'OUT_CONFIG_REQUIREMENTS_TABLE_ID_DESC' - | 'OUT_GRAPH_MODULE_ID_ASC' - | 'OUT_GRAPH_MODULE_ID_DESC' - | 'OUT_GRAPHS_TABLE_ID_ASC' - | 'OUT_GRAPHS_TABLE_ID_DESC' - | 'OUT_AGENT_MODULE_ID_ASC' - | 'OUT_AGENT_MODULE_ID_DESC'; // ============ CRUD Input Types ============ export interface CreateDefaultIdsModuleInput { clientMutationId?: string; @@ -7714,42 +8099,6 @@ export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface CreateIdentityProvidersModuleInput { - clientMutationId?: string; - identityProvidersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - }; -} -export interface IdentityProvidersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; -} -export interface UpdateIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; - identityProvidersModulePatch: IdentityProvidersModulePatch; -} -export interface DeleteIdentityProvidersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDenormalizedTableFieldInput { clientMutationId?: string; denormalizedTableField: { @@ -7788,16 +8137,56 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface CreateRlsModuleInput { +export interface CreateIdentityProvidersModuleInput { clientMutationId?: string; - rlsModule: { + identityProvidersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - sessionCredentialsTableId?: string; - sessionsTableId?: string; - usersTableId?: string; - authenticate?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + }; +} +export interface IdentityProvidersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableId?: string | null; + tableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; +} +export interface UpdateIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; + identityProvidersModulePatch: IdentityProvidersModulePatch; +} +export interface DeleteIdentityProvidersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRlsModuleInput { + clientMutationId?: string; + rlsModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; authenticateStrict?: string; currentRole?: string; currentRoleId?: string; @@ -7986,48 +8375,6 @@ export interface DeleteCryptoAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateRateLimitMetersModuleInput { - clientMutationId?: string; - rateLimitMetersModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - rateLimitStateTableId?: string; - rateLimitStateTableName?: string; - rateLimitOverridesTableId?: string; - rateLimitOverridesTableName?: string; - rateWindowLimitsTableId?: string; - rateWindowLimitsTableName?: string; - checkRateLimitFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RateLimitMetersModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - rateLimitStateTableId?: string | null; - rateLimitStateTableName?: string | null; - rateLimitOverridesTableId?: string | null; - rateLimitOverridesTableName?: string | null; - rateWindowLimitsTableId?: string | null; - rateWindowLimitsTableName?: string | null; - checkRateLimitFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; - rateLimitMetersModulePatch: RateLimitMetersModulePatch; -} -export interface DeleteRateLimitMetersModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateSessionsModuleInput { clientMutationId?: string; sessionsModule: { @@ -8064,47 +8411,39 @@ export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateConfigSecretsModuleInput { +export interface CreateSecureTableProvisionInput { clientMutationId?: string; - configSecretsModule: { + secureTableProvision: { databaseId: string; schemaId?: string; - privateSchemaId?: string; tableId?: string; - configDefinitionsTableId?: string; tableName?: string; - apiName?: string; - privateApiName?: string; - scope?: string; - prefix?: string; - entityTableId?: string; + nodes?: Record; + useRls?: boolean; + fields?: Record[]; + grants?: Record; policies?: Record; - provisions?: Record; - hasConfig?: boolean; + outFields?: string[]; }; } -export interface ConfigSecretsModulePatch { +export interface SecureTableProvisionPatch { databaseId?: string | null; schemaId?: string | null; - privateSchemaId?: string | null; tableId?: string | null; - configDefinitionsTableId?: string | null; tableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; + nodes?: Record | null; + useRls?: boolean | null; + fields?: Record[] | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; - hasConfig?: boolean | null; + outFields?: string[] | null; } -export interface UpdateConfigSecretsModuleInput { +export interface UpdateSecureTableProvisionInput { clientMutationId?: string; id: string; - configSecretsModulePatch: ConfigSecretsModulePatch; + secureTableProvisionPatch: SecureTableProvisionPatch; } -export interface DeleteConfigSecretsModuleInput { +export interface DeleteSecureTableProvisionInput { clientMutationId?: string; id: string; } @@ -8124,6 +8463,7 @@ export interface CreateMerkleStoreModuleInput { apiName?: string; privateApiName?: string; scope?: string; + functionPrefix?: string; }; } export interface MerkleStoreModulePatch { @@ -8140,6 +8480,7 @@ export interface MerkleStoreModulePatch { apiName?: string | null; privateApiName?: string | null; scope?: string | null; + functionPrefix?: string | null; } export interface UpdateMerkleStoreModuleInput { clientMutationId?: string; @@ -8169,6 +8510,7 @@ export interface CreateGraphModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface GraphModulePatch { @@ -8188,6 +8530,7 @@ export interface GraphModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateGraphModuleInput { clientMutationId?: string; @@ -8198,88 +8541,6 @@ export interface DeleteGraphModuleInput { clientMutationId?: string; id: string; } -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - secureTableProvision: { - databaseId: string; - schemaId?: string; - tableId?: string; - tableName?: string; - nodes?: Record; - useRls?: boolean; - fields?: Record[]; - grants?: Record; - policies?: Record; - outFields?: string[]; - }; -} -export interface SecureTableProvisionPatch { - databaseId?: string | null; - schemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - nodes?: Record | null; - useRls?: boolean | null; - fields?: Record[] | null; - grants?: Record | null; - policies?: Record | null; - outFields?: string[] | null; -} -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - id: string; - secureTableProvisionPatch: SecureTableProvisionPatch; -} -export interface DeleteSecureTableProvisionInput { - clientMutationId?: string; - id: string; -} -export interface CreateInvitesModuleInput { - clientMutationId?: string; - invitesModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - emailsTableId?: string; - usersTableId?: string; - invitesTableId?: string; - claimedInvitesTableId?: string; - invitesTableName?: string; - claimedInvitesTableName?: string; - submitInviteCodeFunction?: string; - scope?: string; - prefix?: string; - entityTableId?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface InvitesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - emailsTableId?: string | null; - usersTableId?: string | null; - invitesTableId?: string | null; - claimedInvitesTableId?: string | null; - invitesTableName?: string | null; - claimedInvitesTableName?: string | null; - submitInviteCodeFunction?: string | null; - scope?: string | null; - prefix?: string | null; - entityTableId?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateInvitesModuleInput { - clientMutationId?: string; - id: string; - invitesModulePatch: InvitesModulePatch; -} -export interface DeleteInvitesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateDatabaseProvisionModuleInput { clientMutationId?: string; databaseProvisionModule: { @@ -8318,18 +8579,17 @@ export interface DeleteDatabaseProvisionModuleInput { clientMutationId?: string; id: string; } -export interface CreateNamespaceModuleInput { +export interface CreateConfigSecretsModuleInput { clientMutationId?: string; - namespaceModule: { + configSecretsModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - namespacesTableId?: string; - namespaceEventsTableId?: string; - namespacesTableName?: string; - namespaceEventsTableName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; apiName?: string; privateApiName?: string; scope?: string; @@ -8337,18 +8597,18 @@ export interface CreateNamespaceModuleInput { entityTableId?: string; policies?: Record; provisions?: Record; + hasConfig?: boolean; }; } -export interface NamespaceModulePatch { +export interface ConfigSecretsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - namespacesTableId?: string | null; - namespaceEventsTableId?: string | null; - namespacesTableName?: string | null; - namespaceEventsTableName?: string | null; + tableId?: string | null; + configDefinitionsTableId?: string | null; + tableName?: string | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -8356,38 +8616,87 @@ export interface NamespaceModulePatch { entityTableId?: string | null; policies?: Record | null; provisions?: Record | null; + hasConfig?: boolean | null; } -export interface UpdateNamespaceModuleInput { +export interface UpdateConfigSecretsModuleInput { clientMutationId?: string; id: string; - namespaceModulePatch: NamespaceModulePatch; + configSecretsModulePatch: ConfigSecretsModulePatch; } -export interface DeleteNamespaceModuleInput { +export interface DeleteConfigSecretsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRealtimeModuleInput { +export interface CreateRateLimitMetersModuleInput { clientMutationId?: string; - realtimeModule: { + rateLimitMetersModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - subscriptionsSchemaId?: string; - changeLogTableId?: string; - listenerNodeTableId?: string; - sourceRegistryTableId?: string; - retentionHours?: number; - premake?: number; - interval?: string; - notifyChannel?: string; - apiName?: string; - privateApiName?: string; - }; -} -export interface RealtimeModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface RateLimitMetersModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + rateLimitStateTableId?: string | null; + rateLimitStateTableName?: string | null; + rateLimitOverridesTableId?: string | null; + rateLimitOverridesTableName?: string | null; + rateWindowLimitsTableId?: string | null; + rateWindowLimitsTableName?: string | null; + checkRateLimitFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; + rateLimitMetersModulePatch: RateLimitMetersModulePatch; +} +export interface DeleteRateLimitMetersModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRealtimeModuleInput { + clientMutationId?: string; + realtimeModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface RealtimeModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; subscriptionsSchemaId?: string | null; changeLogTableId?: string | null; listenerNodeTableId?: string | null; @@ -8454,299 +8763,411 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } -export interface CreateComputeLogModuleInput { +export interface CreateFunctionInvocationModuleInput { clientMutationId?: string; - computeLogModule: { + functionInvocationModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - computeLogTableId?: string; - computeLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface ComputeLogModulePatch { +export interface FunctionInvocationModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - computeLogTableId?: string | null; - computeLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + invocationsTableId?: string | null; + executionLogsTableId?: string | null; + invocationsTableName?: string | null; + executionLogsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateComputeLogModuleInput { +export interface UpdateFunctionInvocationModuleInput { clientMutationId?: string; id: string; - computeLogModulePatch: ComputeLogModulePatch; + functionInvocationModulePatch: FunctionInvocationModulePatch; } -export interface DeleteComputeLogModuleInput { +export interface DeleteFunctionInvocationModuleInput { clientMutationId?: string; id: string; } -export interface CreateInferenceLogModuleInput { +export interface CreateFunctionModuleInput { clientMutationId?: string; - inferenceLogModule: { + functionModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - inferenceLogTableId?: string; - inferenceLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface InferenceLogModulePatch { +export interface FunctionModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - inferenceLogTableId?: string | null; - inferenceLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; - prefix?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + definitionsTableId?: string | null; + secretDefinitionsTableId?: string | null; + definitionsTableName?: string | null; + secretDefinitionsTableName?: string | null; apiName?: string | null; privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; } -export interface UpdateInferenceLogModuleInput { +export interface UpdateFunctionModuleInput { clientMutationId?: string; id: string; - inferenceLogModulePatch: InferenceLogModulePatch; + functionModulePatch: FunctionModulePatch; } -export interface DeleteInferenceLogModuleInput { +export interface DeleteFunctionModuleInput { clientMutationId?: string; id: string; } -export interface CreateStorageLogModuleInput { +export interface CreateInvitesModuleInput { clientMutationId?: string; - storageLogModule: { + invitesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - storageLogTableId?: string; - storageLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; prefix?: string; + entityTableId?: string; apiName?: string; privateApiName?: string; }; } -export interface StorageLogModulePatch { +export interface InvitesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - storageLogTableId?: string | null; - storageLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + emailsTableId?: string | null; + usersTableId?: string | null; + invitesTableId?: string | null; + claimedInvitesTableId?: string | null; + invitesTableName?: string | null; + claimedInvitesTableName?: string | null; + submitInviteCodeFunction?: string | null; scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; prefix?: string | null; + entityTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateStorageLogModuleInput { +export interface UpdateInvitesModuleInput { clientMutationId?: string; id: string; - storageLogModulePatch: StorageLogModulePatch; + invitesModulePatch: InvitesModulePatch; } -export interface DeleteStorageLogModuleInput { +export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } -export interface CreateTransferLogModuleInput { +export interface CreateNamespaceModuleInput { clientMutationId?: string; - transferLogModule: { + namespaceModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - transferLogTableId?: string; - transferLogTableName?: string; - usageDailyTableId?: string; - usageDailyTableName?: string; - interval?: string; - retention?: string; - premake?: number; - scope?: string; - actorFkTableId?: string; - entityFkTableId?: string; - prefix?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; apiName?: string; privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; }; } -export interface TransferLogModulePatch { +export interface NamespaceModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - transferLogTableId?: string | null; - transferLogTableName?: string | null; - usageDailyTableId?: string | null; - usageDailyTableName?: string | null; - interval?: string | null; - retention?: string | null; - premake?: number | null; - scope?: string | null; - actorFkTableId?: string | null; - entityFkTableId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + namespacesTableId?: string | null; + namespaceEventsTableId?: string | null; + namespacesTableName?: string | null; + namespaceEventsTableName?: string | null; + apiName?: string | null; + privateApiName?: string | null; + scope?: string | null; + prefix?: string | null; + entityTableId?: string | null; + policies?: Record | null; + provisions?: Record | null; + defaultPermissions?: string[] | null; +} +export interface UpdateNamespaceModuleInput { + clientMutationId?: string; + id: string; + namespaceModulePatch: NamespaceModulePatch; +} +export interface DeleteNamespaceModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateComputeLogModuleInput { + clientMutationId?: string; + computeLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface ComputeLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + computeLogTableId?: string | null; + computeLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateTransferLogModuleInput { +export interface UpdateComputeLogModuleInput { clientMutationId?: string; id: string; - transferLogModulePatch: TransferLogModulePatch; + computeLogModulePatch: ComputeLogModulePatch; } -export interface DeleteTransferLogModuleInput { +export interface DeleteComputeLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateDbUsageModuleInput { +export interface CreateInferenceLogModuleInput { clientMutationId?: string; - dbUsageModule: { + inferenceLogModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; - tableStatsLogTableId?: string; - tableStatsLogTableName?: string; - tableStatsDailyTableId?: string; - tableStatsDailyTableName?: string; - queryStatsLogTableId?: string; - queryStatsLogTableName?: string; - queryStatsDailyTableId?: string; - queryStatsDailyTableName?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; interval?: string; retention?: string; premake?: number; scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface DbUsageModulePatch { +export interface InferenceLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableStatsLogTableId?: string | null; - tableStatsLogTableName?: string | null; - tableStatsDailyTableId?: string | null; - tableStatsDailyTableName?: string | null; - queryStatsLogTableId?: string | null; - queryStatsLogTableName?: string | null; - queryStatsDailyTableId?: string | null; - queryStatsDailyTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + inferenceLogTableId?: string | null; + inferenceLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; interval?: string | null; retention?: string | null; premake?: number | null; scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateDbUsageModuleInput { +export interface UpdateInferenceLogModuleInput { clientMutationId?: string; id: string; - dbUsageModulePatch: DbUsageModulePatch; + inferenceLogModulePatch: InferenceLogModulePatch; } -export interface DeleteDbUsageModuleInput { +export interface DeleteInferenceLogModuleInput { clientMutationId?: string; id: string; } -export interface CreateNotificationsModuleInput { +export interface CreateStorageLogModuleInput { clientMutationId?: string; - notificationsModule: { + storageLogModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; apiName?: string; privateApiName?: string; }; } -export interface NotificationsModulePatch { +export interface StorageLogModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - notificationsTableId?: string | null; - readStateTableId?: string | null; - preferencesTableId?: string | null; - channelsTableId?: string | null; - deliveryLogTableId?: string | null; - ownerTableId?: string | null; - userSettingsTableId?: string | null; - organizationSettingsTableId?: string | null; - hasChannels?: boolean | null; - hasPreferences?: boolean | null; - hasSettingsExtension?: boolean | null; - hasDigestMetadata?: boolean | null; - hasSubscriptions?: boolean | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + storageLogTableId?: string | null; + storageLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateNotificationsModuleInput { +export interface UpdateStorageLogModuleInput { clientMutationId?: string; id: string; - notificationsModulePatch: NotificationsModulePatch; + storageLogModulePatch: StorageLogModulePatch; } -export interface DeleteNotificationsModuleInput { +export interface DeleteStorageLogModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateTransferLogModuleInput { + clientMutationId?: string; + transferLogModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + }; +} +export interface TransferLogModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + transferLogTableId?: string | null; + transferLogTableName?: string | null; + usageDailyTableId?: string | null; + usageDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; + scope?: string | null; + actorFkTableId?: string | null; + entityFkTableId?: string | null; + prefix?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateTransferLogModuleInput { + clientMutationId?: string; + id: string; + transferLogModulePatch: TransferLogModulePatch; +} +export interface DeleteTransferLogModuleInput { clientMutationId?: string; id: string; } @@ -8756,6 +9177,8 @@ export interface CreatePlansModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; plansTableId?: string; plansTableName?: string; planLimitsTableId?: string; @@ -8777,6 +9200,8 @@ export interface PlansModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; plansTableId?: string | null; plansTableName?: string | null; planLimitsTableId?: string | null; @@ -8802,121 +9227,9 @@ export interface DeletePlansModuleInput { clientMutationId?: string; id: string; } -export interface CreateHierarchyModuleInput { +export interface CreateBillingProviderModuleInput { clientMutationId?: string; - hierarchyModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId: string; - usersTableId: string; - scope?: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; - }; -} -export interface HierarchyModulePatch { - databaseId?: string | null; - schemaId?: string | null; - privateSchemaId?: string | null; - chartEdgesTableId?: string | null; - chartEdgesTableName?: string | null; - hierarchySprtTableId?: string | null; - hierarchySprtTableName?: string | null; - chartEdgeGrantsTableId?: string | null; - chartEdgeGrantsTableName?: string | null; - entityTableId?: string | null; - usersTableId?: string | null; - scope?: string | null; - prefix?: string | null; - privateSchemaName?: string | null; - sprtTableName?: string | null; - rebuildHierarchyFunction?: string | null; - getSubordinatesFunction?: string | null; - getManagersFunction?: string | null; - isManagerOfFunction?: string | null; -} -export interface UpdateHierarchyModuleInput { - clientMutationId?: string; - id: string; - hierarchyModulePatch: HierarchyModulePatch; -} -export interface DeleteHierarchyModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingModuleInput { - clientMutationId?: string; - billingModule: { - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - metersTableId?: string; - metersTableName?: string; - planSubscriptionsTableId?: string; - planSubscriptionsTableName?: string; - ledgerTableId?: string; - ledgerTableName?: string; - balancesTableId?: string; - balancesTableName?: string; - meterCreditsTableId?: string; - meterCreditsTableName?: string; - meterSourcesTableId?: string; - meterSourcesTableName?: string; - meterDefaultsTableId?: string; - meterDefaultsTableName?: string; - recordUsageFunction?: string; - prefix?: string; - apiName?: string; - privateApiName?: string; - }; -} -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; - meterCreditsTableId?: string | null; - meterCreditsTableName?: string | null; - meterSourcesTableId?: string | null; - meterSourcesTableName?: string | null; - meterDefaultsTableId?: string | null; - meterDefaultsTableName?: string | null; - recordUsageFunction?: string | null; - prefix?: string | null; - apiName?: string | null; - privateApiName?: string | null; -} -export interface UpdateBillingModuleInput { - clientMutationId?: string; - id: string; - billingModulePatch: BillingModulePatch; -} -export interface DeleteBillingModuleInput { - clientMutationId?: string; - id: string; -} -export interface CreateBillingProviderModuleInput { - clientMutationId?: string; - billingProviderModule: { + billingProviderModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; @@ -8972,61 +9285,117 @@ export interface DeleteBillingProviderModuleInput { clientMutationId?: string; id: string; } -export interface CreateProfilesModuleInput { +export interface CreateDbUsageModuleInput { clientMutationId?: string; - profilesModule: { + dbUsageModule: { 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; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; scope?: string; prefix?: string; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; } -export interface ProfilesModulePatch { +export interface DbUsageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; - tableId?: string | null; - tableName?: string | null; - profilePermissionsTableId?: string | null; - profilePermissionsTableName?: string | null; - profileGrantsTableId?: string | null; - profileGrantsTableName?: string | null; - profileDefinitionGrantsTableId?: string | null; - profileDefinitionGrantsTableName?: string | null; - profileTemplatesTableId?: string | null; - profileTemplatesTableName?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + tableStatsLogTableId?: string | null; + tableStatsLogTableName?: string | null; + tableStatsDailyTableId?: string | null; + tableStatsDailyTableName?: string | null; + queryStatsLogTableId?: string | null; + queryStatsLogTableName?: string | null; + queryStatsDailyTableId?: string | null; + queryStatsDailyTableName?: string | null; + interval?: string | null; + retention?: string | null; + premake?: number | null; scope?: string | null; prefix?: string | null; - entityTableId?: string | null; - actorTableId?: string | null; - permissionsTableId?: string | null; - membershipsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } -export interface UpdateProfilesModuleInput { +export interface UpdateDbUsageModuleInput { clientMutationId?: string; id: string; - profilesModulePatch: ProfilesModulePatch; + dbUsageModulePatch: DbUsageModulePatch; } -export interface DeleteProfilesModuleInput { +export interface DeleteDbUsageModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateHierarchyModuleInput { + clientMutationId?: string; + hierarchyModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + }; +} +export interface HierarchyModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + chartEdgesTableId?: string | null; + chartEdgesTableName?: string | null; + hierarchySprtTableId?: string | null; + hierarchySprtTableName?: string | null; + chartEdgeGrantsTableId?: string | null; + chartEdgeGrantsTableName?: string | null; + entityTableId?: string | null; + usersTableId?: string | null; + scope?: string | null; + prefix?: string | null; + privateSchemaName?: string | null; + sprtTableName?: string | null; + rebuildHierarchyFunction?: string | null; + getSubordinatesFunction?: string | null; + getManagersFunction?: string | null; + isManagerOfFunction?: string | null; + defaultPermissions?: string[] | null; +} +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + hierarchyModulePatch: HierarchyModulePatch; +} +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } @@ -9036,6 +9405,8 @@ export interface CreatePermissionsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9057,6 +9428,8 @@ export interface PermissionsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9082,131 +9455,251 @@ export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface CreateRelationProvisionInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - relationProvision: { + notificationsModule: { databaseId: string; - relationType: string; - sourceTableId: string; - targetTableId: string; - fieldName?: string; - deleteAction?: string; - isRequired?: boolean; - apiRequired?: boolean; - junctionTableId?: string; - junctionTableName?: string; - junctionSchemaId?: string; - sourceFieldName?: string; - targetFieldName?: string; - useCompositeKey?: boolean; - createIndex?: boolean; - exposeInApi?: boolean; - nodes?: Record; - grants?: Record; - policies?: Record; - outFieldId?: string; - outJunctionTableId?: string; - outSourceFieldId?: string; - outTargetFieldId?: string; - }; -} -export interface RelationProvisionPatch { - databaseId?: string | null; - relationType?: string | null; - sourceTableId?: string | null; - targetTableId?: string | null; - fieldName?: string | null; - deleteAction?: string | null; - isRequired?: boolean | null; - apiRequired?: boolean | null; - junctionTableId?: string | null; - junctionTableName?: string | null; - junctionSchemaId?: string | null; - sourceFieldName?: string | null; - targetFieldName?: string | null; - useCompositeKey?: boolean | null; - createIndex?: boolean | null; - exposeInApi?: boolean | null; - nodes?: Record | null; - grants?: Record | null; - policies?: Record | null; - outFieldId?: string | null; - outJunctionTableId?: string | null; - outSourceFieldId?: string | null; - outTargetFieldId?: string | null; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; } -export interface UpdateRelationProvisionInput { +export interface NotificationsModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; + notificationsTableId?: string | null; + readStateTableId?: string | null; + preferencesTableId?: string | null; + channelsTableId?: string | null; + deliveryLogTableId?: string | null; + suppressionsTableId?: string | null; + ownerTableId?: string | null; + userSettingsTableId?: string | null; + organizationSettingsTableId?: string | null; + hasChannels?: boolean | null; + hasPreferences?: boolean | null; + hasSettingsExtension?: boolean | null; + hasDigestMetadata?: boolean | null; + hasSubscriptions?: boolean | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateNotificationsModuleInput { clientMutationId?: string; id: string; - relationProvisionPatch: RelationProvisionPatch; + notificationsModulePatch: NotificationsModulePatch; } -export interface DeleteRelationProvisionInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } -export interface CreateFunctionModuleInput { +export interface CreateProfilesModuleInput { clientMutationId?: string; - functionModule: { + profilesModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; publicSchemaName?: string; privateSchemaName?: string; - definitionsTableId?: string; - invocationsTableId?: string; - executionLogsTableId?: string; - secretDefinitionsTableId?: string; - requirementsTableId?: string; - configDefinitionsTableId?: string; - configRequirementsTableId?: string; - definitionsTableName?: string; - invocationsTableName?: string; - executionLogsTableName?: string; - secretDefinitionsTableName?: string; - requirementsTableName?: string; - configRequirementsTableName?: string; - apiName?: string; - privateApiName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; scope?: string; prefix?: string; entityTableId?: string; - policies?: Record; - provisions?: Record; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; }; } -export interface FunctionModulePatch { +export interface ProfilesModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; publicSchemaName?: string | null; privateSchemaName?: string | null; - definitionsTableId?: string | null; - invocationsTableId?: string | null; - executionLogsTableId?: string | null; - secretDefinitionsTableId?: string | null; - requirementsTableId?: string | null; - configDefinitionsTableId?: string | null; - configRequirementsTableId?: string | null; - definitionsTableName?: string | null; - invocationsTableName?: string | null; - executionLogsTableName?: string | null; - secretDefinitionsTableName?: string | null; - requirementsTableName?: string | null; - configRequirementsTableName?: string | null; - apiName?: string | null; - privateApiName?: string | null; + tableId?: string | null; + tableName?: string | null; + profilePermissionsTableId?: string | null; + profilePermissionsTableName?: string | null; + profileGrantsTableId?: string | null; + profileGrantsTableName?: string | null; + profileDefinitionGrantsTableId?: string | null; + profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; scope?: string | null; prefix?: string | null; entityTableId?: string | null; + actorTableId?: string | null; + permissionsTableId?: string | null; + membershipsTableId?: string | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + profilesModulePatch: ProfilesModulePatch; +} +export interface DeleteProfilesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateBillingModuleInput { + clientMutationId?: string; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; + }; +} +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: 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; + meterCreditsTableId?: string | null; + meterCreditsTableName?: string | null; + meterSourcesTableId?: string | null; + meterSourcesTableName?: string | null; + meterDefaultsTableId?: string | null; + meterDefaultsTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; + defaultPermissions?: string[] | null; + apiName?: string | null; + privateApiName?: string | null; +} +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + billingModulePatch: BillingModulePatch; +} +export interface DeleteBillingModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateRelationProvisionInput { + clientMutationId?: string; + relationProvision: { + databaseId: string; + relationType: string; + sourceTableId: string; + targetTableId: string; + fieldName?: string; + deleteAction?: string; + isRequired?: boolean; + apiRequired?: boolean; + junctionTableId?: string; + junctionTableName?: string; + junctionSchemaId?: string; + sourceFieldName?: string; + targetFieldName?: string; + useCompositeKey?: boolean; + createIndex?: boolean; + exposeInApi?: boolean; + nodes?: Record; + grants?: Record; + policies?: Record; + outFieldId?: string; + outJunctionTableId?: string; + outSourceFieldId?: string; + outTargetFieldId?: string; + }; +} +export interface RelationProvisionPatch { + databaseId?: string | null; + relationType?: string | null; + sourceTableId?: string | null; + targetTableId?: string | null; + fieldName?: string | null; + deleteAction?: string | null; + isRequired?: boolean | null; + apiRequired?: boolean | null; + junctionTableId?: string | null; + junctionTableName?: string | null; + junctionSchemaId?: string | null; + sourceFieldName?: string | null; + targetFieldName?: string | null; + useCompositeKey?: boolean | null; + createIndex?: boolean | null; + exposeInApi?: boolean | null; + nodes?: Record | null; + grants?: Record | null; policies?: Record | null; - provisions?: Record | null; + outFieldId?: string | null; + outJunctionTableId?: string | null; + outSourceFieldId?: string | null; + outTargetFieldId?: string | null; } -export interface UpdateFunctionModuleInput { +export interface UpdateRelationProvisionInput { clientMutationId?: string; id: string; - functionModulePatch: FunctionModulePatch; + relationProvisionPatch: RelationProvisionPatch; } -export interface DeleteFunctionModuleInput { +export interface DeleteRelationProvisionInput { clientMutationId?: string; id: string; } @@ -9286,6 +9779,8 @@ export interface CreateAgentModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; threadTableId?: string; messageTableId?: string; taskTableId?: string; @@ -9305,6 +9800,7 @@ export interface CreateAgentModuleInput { hasPlans?: boolean; hasResources?: boolean; hasAgents?: boolean; + shared?: boolean; apiName?: string; privateApiName?: string; scope?: string; @@ -9313,12 +9809,15 @@ export interface CreateAgentModuleInput { policies?: Record; resources?: Record; provisions?: Record; + defaultPermissions?: string[]; }; } export interface AgentModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; threadTableId?: string | null; messageTableId?: string | null; taskTableId?: string | null; @@ -9338,6 +9837,7 @@ export interface AgentModulePatch { hasPlans?: boolean | null; hasResources?: boolean | null; hasAgents?: boolean | null; + shared?: boolean | null; apiName?: string | null; privateApiName?: string | null; scope?: string | null; @@ -9346,6 +9846,7 @@ export interface AgentModulePatch { policies?: Record | null; resources?: Record | null; provisions?: Record | null; + defaultPermissions?: string[] | null; } export interface UpdateAgentModuleInput { clientMutationId?: string; @@ -9362,6 +9863,8 @@ export interface CreateLimitsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; tableId?: string; tableName?: string; defaultTableId?: string; @@ -9398,6 +9901,8 @@ export interface LimitsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; tableId?: string | null; tableName?: string | null; defaultTableId?: string | null; @@ -9444,6 +9949,8 @@ export interface CreateMembershipsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; membershipsTableId?: string; membershipsTableName?: string; membersTableId?: string; @@ -9475,6 +9982,8 @@ export interface CreateMembershipsModuleInput { entityIdsByPerm?: string; entityIdsFunction?: string; memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; apiName?: string; privateApiName?: string; }; @@ -9483,6 +9992,8 @@ export interface MembershipsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; membershipsTableId?: string | null; membershipsTableName?: string | null; membersTableId?: string | null; @@ -9514,6 +10025,8 @@ export interface MembershipsModulePatch { entityIdsByPerm?: string | null; entityIdsFunction?: string | null; memberProfilesTableId?: string | null; + permissionDefaultPermissionsTableId?: string | null; + permissionDefaultGrantsTableId?: string | null; apiName?: string | null; privateApiName?: string | null; } @@ -9526,12 +10039,108 @@ export interface DeleteMembershipsModuleInput { clientMutationId?: string; id: string; } +export interface CreateEntityTypeProvisionInput { + clientMutationId?: string; + entityTypeProvision: { + databaseId: string; + name: string; + prefix: string; + description?: string; + parentEntity?: string; + tableName?: string; + isVisible?: boolean; + hasLimits?: boolean; + hasProfiles?: boolean; + hasLevels?: boolean; + hasInvites?: boolean; + hasInviteAchievements?: boolean; + storage?: Record; + namespaces?: Record; + functions?: Record; + graphs?: Record; + agents?: Record; + skipEntityPolicies?: boolean; + tableProvision?: Record; + outMembershipType?: number; + outEntityTableId?: string; + outEntityTableName?: string; + outInstalledModules?: string[]; + outStorageModuleId?: string; + outBucketsTableId?: string; + outFilesTableId?: string; + outPathSharesTableId?: string; + outInvitesModuleId?: string; + outNamespaceModuleId?: string; + outNamespacesTableId?: string; + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; + }; +} +export interface EntityTypeProvisionPatch { + databaseId?: string | null; + name?: string | null; + prefix?: string | null; + description?: string | null; + parentEntity?: string | null; + tableName?: string | null; + isVisible?: boolean | null; + hasLimits?: boolean | null; + hasProfiles?: boolean | null; + hasLevels?: boolean | null; + hasInvites?: boolean | null; + hasInviteAchievements?: boolean | null; + storage?: Record | null; + namespaces?: Record | null; + functions?: Record | null; + graphs?: Record | null; + agents?: Record | null; + skipEntityPolicies?: boolean | null; + tableProvision?: Record | null; + outMembershipType?: number | null; + outEntityTableId?: string | null; + outEntityTableName?: string | null; + outInstalledModules?: string[] | null; + outStorageModuleId?: string | null; + outBucketsTableId?: string | null; + outFilesTableId?: string | null; + outPathSharesTableId?: string | null; + outInvitesModuleId?: string | null; + outNamespaceModuleId?: string | null; + outNamespacesTableId?: string | null; + outNamespaceEventsTableId?: string | null; + outFunctionModuleId?: string | null; + outDefinitionsTableId?: string | null; + outInvocationsTableId?: string | null; + outExecutionLogsTableId?: string | null; + outSecretDefinitionsTableId?: string | null; + outGraphModuleId?: string | null; + outGraphsTableId?: string | null; + outAgentModuleId?: string | null; +} +export interface UpdateEntityTypeProvisionInput { + clientMutationId?: string; + id: string; + entityTypeProvisionPatch: EntityTypeProvisionPatch; +} +export interface DeleteEntityTypeProvisionInput { + clientMutationId?: string; + id: string; +} export interface CreateStorageModuleInput { clientMutationId?: string; storageModule: { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; bucketsTableId?: string; filesTableId?: string; bucketsTableName?: string; @@ -9562,6 +10171,7 @@ export interface CreateStorageModuleInput { hasConfirmUpload?: boolean; confirmUploadDelay?: IntervalInput; fileEventsTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9570,6 +10180,8 @@ export interface StorageModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; bucketsTableName?: string | null; @@ -9600,6 +10212,7 @@ export interface StorageModulePatch { hasConfirmUpload?: boolean | null; confirmUploadDelay?: IntervalInput | null; fileEventsTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9618,6 +10231,8 @@ export interface CreateEventsModuleInput { databaseId: string; schemaId?: string; privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; eventsTableId?: string; eventsTableName?: string; eventAggregatesTableId?: string; @@ -9653,6 +10268,7 @@ export interface CreateEventsModuleInput { prefix?: string; entityTableId?: string; actorTableId?: string; + defaultPermissions?: string[]; apiName?: string; privateApiName?: string; }; @@ -9661,6 +10277,8 @@ export interface EventsModulePatch { databaseId?: string | null; schemaId?: string | null; privateSchemaId?: string | null; + publicSchemaName?: string | null; + privateSchemaName?: string | null; eventsTableId?: string | null; eventsTableName?: string | null; eventAggregatesTableId?: string | null; @@ -9696,6 +10314,7 @@ export interface EventsModulePatch { prefix?: string | null; entityTableId?: string | null; actorTableId?: string | null; + defaultPermissions?: string[] | null; apiName?: string | null; privateApiName?: string | null; } @@ -9708,104 +10327,6 @@ export interface DeleteEventsModuleInput { clientMutationId?: string; id: string; } -export interface CreateEntityTypeProvisionInput { - clientMutationId?: string; - entityTypeProvision: { - databaseId: string; - name: string; - prefix: string; - description?: string; - parentEntity?: string; - tableName?: string; - isVisible?: boolean; - hasLimits?: boolean; - hasProfiles?: boolean; - hasLevels?: boolean; - hasInvites?: boolean; - hasInviteAchievements?: boolean; - storage?: Record; - namespaces?: Record; - functions?: Record; - graphs?: Record; - agents?: Record; - skipEntityPolicies?: boolean; - tableProvision?: Record; - outMembershipType?: number; - outEntityTableId?: string; - outEntityTableName?: string; - outInstalledModules?: string[]; - outStorageModuleId?: string; - outBucketsTableId?: string; - outFilesTableId?: string; - outPathSharesTableId?: string; - outInvitesModuleId?: string; - outNamespaceModuleId?: string; - outNamespacesTableId?: string; - outNamespaceEventsTableId?: string; - outFunctionModuleId?: string; - outDefinitionsTableId?: string; - outInvocationsTableId?: string; - outExecutionLogsTableId?: string; - outSecretDefinitionsTableId?: string; - outRequirementsTableId?: string; - outConfigRequirementsTableId?: string; - outGraphModuleId?: string; - outGraphsTableId?: string; - outAgentModuleId?: string; - }; -} -export interface EntityTypeProvisionPatch { - databaseId?: string | null; - name?: string | null; - prefix?: string | null; - description?: string | null; - parentEntity?: string | null; - tableName?: string | null; - isVisible?: boolean | null; - hasLimits?: boolean | null; - hasProfiles?: boolean | null; - hasLevels?: boolean | null; - hasInvites?: boolean | null; - hasInviteAchievements?: boolean | null; - storage?: Record | null; - namespaces?: Record | null; - functions?: Record | null; - graphs?: Record | null; - agents?: Record | null; - skipEntityPolicies?: boolean | null; - tableProvision?: Record | null; - outMembershipType?: number | null; - outEntityTableId?: string | null; - outEntityTableName?: string | null; - outInstalledModules?: string[] | null; - outStorageModuleId?: string | null; - outBucketsTableId?: string | null; - outFilesTableId?: string | null; - outPathSharesTableId?: string | null; - outInvitesModuleId?: string | null; - outNamespaceModuleId?: string | null; - outNamespacesTableId?: string | null; - outNamespaceEventsTableId?: string | null; - outFunctionModuleId?: string | null; - outDefinitionsTableId?: string | null; - outInvocationsTableId?: string | null; - outExecutionLogsTableId?: string | null; - outSecretDefinitionsTableId?: string | null; - outRequirementsTableId?: string | null; - outConfigRequirementsTableId?: string | null; - outGraphModuleId?: string | null; - outGraphsTableId?: string | null; - outAgentModuleId?: string | null; -} -export interface UpdateEntityTypeProvisionInput { - clientMutationId?: string; - id: string; - entityTypeProvisionPatch: EntityTypeProvisionPatch; -} -export interface DeleteEntityTypeProvisionInput { - clientMutationId?: string; - id: string; -} // ============ Connection Fields Map ============ export const connectionFieldsMap = { Blueprint: { @@ -9967,15 +10488,6 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } -/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ -export interface MerkleStoreModuleToManyGraphModuleFilter { - /** Filters to entities where at least one related entity matches. */ - some?: GraphModuleFilter; - /** Filters to entities where every related entity matches. */ - every?: GraphModuleFilter; - /** Filters to entities where no related entity matches. */ - none?: GraphModuleFilter; -} /** A filter to be used against JSON List fields. All fields are combined with a logical ‘and.’ */ export interface JSONListFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -10015,44 +10527,1586 @@ export interface JSONListFilter { /** Any array item is greater than or equal to the specified value. */ anyGreaterThanOrEqualTo?: Record; } -/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintConstructionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `blueprintId` field. */ - blueprintId?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `schemaId` field. */ - schemaId?: UUIDFilter; - /** Filter by the object’s `status` field. */ - status?: StringFilter; - /** Filter by the object’s `errorDetails` field. */ - errorDetails?: StringFilter; - /** Filter by the object’s `tableMap` field. */ - tableMap?: JSONFilter; - /** Filter by the object’s `constructedDefinition` field. */ - constructedDefinition?: JSONFilter; - /** Filter by the object’s `constructedAt` field. */ - constructedAt?: DatetimeFilter; - /** 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?: BlueprintConstructionFilter[]; - /** Checks for any expressions in this list. */ - or?: BlueprintConstructionFilter[]; - /** Negates the expression. */ - not?: BlueprintConstructionFilter; - /** Filter by the object’s `blueprint` relation. */ - blueprint?: BlueprintFilter; +/** A filter to be used against many `GraphModule` object types. All fields are combined with a logical ‘and.’ */ +export interface MerkleStoreModuleToManyGraphModuleFilter { + /** Filters to entities where at least one related entity matches. */ + some?: GraphModuleFilter; + /** Filters to entities where every related entity matches. */ + every?: GraphModuleFilter; + /** Filters to entities where no related entity matches. */ + none?: GraphModuleFilter; } -/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ -export interface BlueprintTemplateFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ +/** An input for mutations affecting `DefaultIdsModule` */ +export interface DefaultIdsModuleInput { + id?: string; + databaseId: string; +} +/** An input for mutations affecting `MembershipTypesModule` */ +export interface MembershipTypesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `UserStateModule` */ +export interface UserStateModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; +} +/** An input for mutations affecting `SessionSecretsModule` */ +export interface SessionSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + /** Resolved reference to sessions_module.sessions_table, used to FK session_secrets.session_id with ON DELETE CASCADE. */ + sessionsTableId?: string; +} +/** An input for mutations affecting `ConfigSecretsOrgModule` */ +export interface ConfigSecretsOrgModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DevicesModule` */ +export interface DevicesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; +} +/** An input for mutations affecting `I18NModule` */ +export interface I18NModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + settingsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserCredentialsModule` */ +export interface UserCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `UserSettingsModule` */ +export interface UserSettingsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; +} +/** An input for mutations affecting `ConfigSecretsUserModule` */ +export interface ConfigSecretsUserModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + configDefinitionsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ConnectedAccountsModule` */ +export interface ConnectedAccountsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EmailsModule` */ +export interface EmailsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PhoneNumbersModule` */ +export interface PhoneNumbersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RateLimitsModule` */ +export interface RateLimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + rateLimitSettingsTableId?: string; + ipRateLimitsTableId?: string; + rateLimitsTableId?: string; + rateLimitSettingsTable?: string; + ipRateLimitsTable?: string; + rateLimitsTable?: string; +} +/** An input for mutations affecting `UsersModule` */ +export interface UsersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + tableId?: string; + tableName?: string; + typeTableId?: string; + typeTableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnCredentialsModule` */ +export interface WebauthnCredentialsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER helpers which write to webauthn_credentials (registration / counter-bump / delete). */ + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `CryptoAddressesModule` */ +export interface CryptoAddressesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + ownerTableId?: string; + tableName: string; + cryptoNetwork?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DenormalizedTableField` */ +export interface DenormalizedTableFieldInput { + id?: string; + databaseId: string; + tableId: string; + fieldId: string; + setIds?: string[]; + refTableId: string; + refFieldId: string; + refIds?: string[]; + useUpdates?: boolean; + updateDefaults?: boolean; + funcName?: string; + funcOrder?: number; +} +/** An input for mutations affecting `IdentityProvidersModule` */ +export interface IdentityProvidersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + /** Private schema that hosts SECURITY DEFINER admin helpers which write to identity_providers (create / update / enable / disable / rotate-secret / delete) and the per-app quota check. */ + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; +} +/** An input for mutations affecting `RlsModule` */ +export interface RlsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + sessionCredentialsTableId?: string; + sessionsTableId?: string; + usersTableId?: string; + authenticate?: string; + authenticateStrict?: string; + currentRole?: string; + currentRoleId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `Blueprint` */ +export interface BlueprintInput { + /** Unique identifier for this blueprint. */ + id?: string; + /** The user who owns this blueprint. */ + ownerId: string; + /** The database this blueprint is scoped to. Tables created by construct_blueprint() are provisioned in this database. */ + databaseId: string; + /** Machine-readable name for the blueprint. Must be unique per database. */ + name: string; + /** Human-readable display name for the blueprint. */ + displayName: string; + /** Optional description of the blueprint. */ + description?: string; + /** The blueprint definition as a JSONB document. Contains tables[] (each with table_name, optional schema_name, nodes[] for data behaviors, fields[], grants[], and policies[] using $type), relations[] (using $type with source_table/target_table and optional source_schema/target_schema), indexes[] (using table_name + column), and full_text_searches[] (using table_name + field + sources[]). Everything is name-based — no UUIDs in the definition. */ + definition: Record; + /** If this blueprint was created by copying a template, the ID of the source template. NULL if built from scratch. */ + templateId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication and provenance tracking. Backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table names to their individual UUIDv5 content hashes. Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across blueprints and templates. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this blueprint was created. */ + createdAt?: string; + /** Timestamp when this blueprint was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintTemplate` */ +export interface BlueprintTemplateInput { + /** Unique identifier for this template. */ + id?: string; + /** Machine-readable name for the template (e.g. e_commerce_basic). Must be unique per owner + version. */ + name: string; + /** Semantic version string. Defaults to 1.0.0. */ + version?: string; + /** Human-readable display name for the template (e.g. E-Commerce Basic). */ + displayName: string; + /** Optional description of what the template provisions. */ + description?: string; + /** The user who created or published this template. */ + ownerId: string; + /** Access control for the template. private: only the owner can see and copy. public: anyone can browse and copy from the marketplace. Defaults to private. */ + visibility?: string; + /** Domain categories for marketplace browsing (e.g. e-commerce, healthcare, social). Defaults to empty array. */ + categories?: string[]; + /** Freeform tags for search and discovery (e.g. products, orders, payments). Defaults to empty array. */ + tags?: string[]; + /** The blueprint definition as a JSONB document. Contains tables[] (each with nodes[] for data behaviors via string shorthand or {"$type": "...", "data": {...}} objects, fields[], grants[], and policies[] using {"$type": "...", "data": {...}}), and relations[] (using $type for relation_type with junction config in data). This is the core payload that gets copied into a blueprint for execution. */ + definition: Record; + /** Version of the definition format schema. Used for forward-compatible parsing. Defaults to 1. */ + definitionSchemaVersion?: string; + /** Provenance of the template. user: manually created by a human. system: official curated template from the Constructive team. agent: AI-generated. Defaults to user. */ + source?: string; + /** Complexity indicator for marketplace filtering. simple: 3-5 tables. moderate: 6-12 tables. complex: 13+ tables. NULL if not categorized. */ + complexity?: string; + /** Denormalized count of how many blueprints have been created from this template via copy_template_to_blueprint(). Incremented automatically. Defaults to 0. */ + copyCount?: number; + /** Denormalized count of how many derivative templates have been forked from this template. Defaults to 0. */ + forkCount?: number; + /** If this template was forked from another template, the ID of the parent. NULL for original templates. */ + forkedFromId?: string; + /** UUIDv5 Merkle root hash of the definition. Computed automatically via trigger from the ordered table_hashes. Used for content-addressable deduplication, provenance tracking, and cross-blueprint structural comparison. NULL columns are backend-computed — clients should never set this directly. */ + definitionHash?: string; + /** JSONB map of table ref names to their individual UUIDv5 content hashes (e.g. {"products": "uuid", "categories": "uuid"}). Each table hash is computed from the canonical jsonb::text of the table entry. Enables structural comparison at the table level across different blueprints. Backend-computed via trigger. */ + tableHashes?: Record; + /** Timestamp when this template was created. */ + createdAt?: string; + /** Timestamp when this template was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `BlueprintConstruction` */ +export interface BlueprintConstructionInput { + /** Unique identifier for this construction attempt. */ + id?: string; + /** The blueprint that was constructed. */ + blueprintId: string; + /** The database the blueprint was constructed into. */ + databaseId: string; + /** The default schema used for tables that did not specify an explicit schema_name. NULL if not yet resolved. */ + schemaId?: string; + /** Execution state of this construction attempt. pending: created but not yet started. constructing: currently executing. constructed: successfully completed. failed: execution failed (see error_details). */ + status?: string; + /** Error message from a failed construction attempt. NULL unless status is failed. */ + errorDetails?: string; + /** Mapping of table names to created table UUIDs, populated after successful construction. Format: {"products": "uuid", "categories": "uuid", ...}. Defaults to empty object. */ + tableMap?: Record; + /** Immutable snapshot of the definition at construct-time. Preserved so the exact definition that was executed is recorded even if the user later modifies the blueprint definition. */ + constructedDefinition?: Record; + /** Timestamp when construction successfully completed. NULL until constructed. */ + constructedAt?: string; + /** Timestamp when this construction attempt was created. */ + createdAt?: string; + /** Timestamp when this construction attempt was last modified. */ + updatedAt?: string; +} +/** An input for mutations affecting `CryptoAuthModule` */ +export interface CryptoAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + secretsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + addressesTableId?: string; + userField: string; + cryptoNetwork?: string; + signInRequestChallenge?: string; + signInRecordFailure?: string; + signUpWithKey?: string; + signInWithChallenge?: string; +} +/** An input for mutations affecting `SessionsModule` */ +export interface SessionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + authSettingsTableId?: string; + usersTableId?: string; + sessionsDefaultExpiration?: IntervalInput; + sessionsTable?: string; + sessionCredentialsTable?: string; + authSettingsTable?: string; +} +/** 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; +} +/** 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?: Record; + /** 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?: Record[]; + /** 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?: Record; + /** 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?: Record; + /** 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[]; +} +/** An input for mutations affecting `MerkleStoreModule` */ +export interface MerkleStoreModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + objectTableId?: string; + storeTableId?: string; + commitTableId?: string; + refTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + functionPrefix?: string; + createdAt?: string; +} +/** An input for mutations affecting `GraphModule` */ +export interface GraphModuleInput { + id?: string; + databaseId: string; + publicSchemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + scope?: string; + prefix?: string; + merkleStoreModuleId: string; + graphsTableId?: string; + executionsTableId?: string; + outputsTableId?: string; + apiName?: string; + privateApiName?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `DatabaseProvisionModule` */ +export interface DatabaseProvisionModuleInput { + id?: string; + /** The name for the new database */ + databaseName: string; + /** UUID of the user who owns this database */ + ownerId: string; + /** Subdomain prefix for the database. If null, auto-generated using unique_names + random chars */ + subdomain?: string; + /** Base domain for the database (e.g., example.com) */ + domain: string; + /** JSONB array of modules to install. Each element is either a string ("users_module") or a [name, options] tuple (["permissions_module", {"scope": "app"}]) */ + modules?: Record; + /** Additional configuration options for provisioning */ + options?: Record; + /** When true, copies the owner user and password hash from source database to the newly provisioned database */ + bootstrapUser?: boolean; + /** Current status: pending, in_progress, completed, or failed */ + status?: string; + errorMessage?: string; + /** The ID of the provisioned database (set by trigger before RLS check) */ + databaseId?: string; + createdAt?: string; + updatedAt?: string; + completedAt?: string; +} +/** An input for mutations affecting `ConfigSecretsModule` */ +export interface ConfigSecretsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + configDefinitionsTableId?: string; + tableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + hasConfig?: boolean; +} +/** An input for mutations affecting `RateLimitMetersModule` */ +export interface RateLimitMetersModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + rateLimitStateTableId?: string; + rateLimitStateTableName?: string; + rateLimitOverridesTableId?: string; + rateLimitOverridesTableName?: string; + rateWindowLimitsTableId?: string; + rateWindowLimitsTableName?: string; + checkRateLimitFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RealtimeModule` */ +export interface RealtimeModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + subscriptionsSchemaId?: string; + changeLogTableId?: string; + listenerNodeTableId?: string; + sourceRegistryTableId?: string; + retentionHours?: number; + premake?: number; + interval?: string; + notifyChannel?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `WebauthnAuthModule` */ +export interface WebauthnAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + usersTableId?: string; + credentialsTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + sessionSecretsTableId?: string; + authSettingsTableId?: string; + rpId?: string; + rpName?: string; + originAllowlist?: string[]; + attestationType?: string; + requireUserVerification?: boolean; + residentKey?: string; + challengeExpiry?: IntervalInput; +} +/** An input for mutations affecting `FunctionInvocationModule` */ +export interface FunctionInvocationModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + invocationsTableId?: string; + executionLogsTableId?: string; + invocationsTableName?: string; + executionLogsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `FunctionModule` */ +export interface FunctionModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + definitionsTableId?: string; + secretDefinitionsTableId?: string; + definitionsTableName?: string; + secretDefinitionsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `InvitesModule` */ +export interface InvitesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + emailsTableId?: string; + usersTableId?: string; + invitesTableId?: string; + claimedInvitesTableId?: string; + invitesTableName?: string; + claimedInvitesTableName?: string; + submitInviteCodeFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NamespaceModule` */ +export interface NamespaceModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + namespacesTableId?: string; + namespaceEventsTableId?: string; + namespacesTableName?: string; + namespaceEventsTableName?: string; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `ComputeLogModule` */ +export interface ComputeLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + computeLogTableId?: string; + computeLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `InferenceLogModule` */ +export interface InferenceLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + inferenceLogTableId?: string; + inferenceLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `StorageLogModule` */ +export interface StorageLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + storageLogTableId?: string; + storageLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `TransferLogModule` */ +export interface TransferLogModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + transferLogTableId?: string; + transferLogTableName?: string; + usageDailyTableId?: string; + usageDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + actorFkTableId?: string; + entityFkTableId?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + planPricingTableId?: string; + planOverridesTableId?: string; + planMeterLimitsTableId?: string; + planCapsTableId?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + applyBillingPlanFunction?: string; + applyPlanCapsFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingProviderModule` */ +export interface BillingProviderModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + provider?: string; + productsTableId?: string; + pricesTableId?: string; + subscriptionsTableId?: string; + billingCustomersTableId?: string; + billingCustomersTableName?: string; + billingProductsTableId?: string; + billingProductsTableName?: string; + billingPricesTableId?: string; + billingPricesTableName?: string; + billingSubscriptionsTableId?: string; + billingSubscriptionsTableName?: string; + billingWebhookEventsTableId?: string; + billingWebhookEventsTableName?: string; + processBillingEventFunction?: string; + prefix?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `DbUsageModule` */ +export interface DbUsageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableStatsLogTableId?: string; + tableStatsLogTableName?: string; + tableStatsDailyTableId?: string; + tableStatsDailyTableName?: string; + queryStatsLogTableId?: string; + queryStatsLogTableName?: string; + queryStatsDailyTableId?: string; + queryStatsDailyTableName?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `HierarchyModule` */ +export interface HierarchyModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId: string; + usersTableId: string; + scope?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + defaultPermissions?: string[]; + createdAt?: string; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + suppressionsTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + meterCreditsTableId?: string; + meterCreditsTableName?: string; + meterSourcesTableId?: string; + meterSourcesTableName?: string; + meterDefaultsTableId?: string; + meterDefaultsTableName?: string; + recordUsageFunction?: string; + prefix?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `RelationProvision` */ +export interface RelationProvisionInput { + /** Unique identifier for this relation provision row. */ + id?: string; + /** The database this relation belongs to. Required. Must match the database of both source_table_id and target_table_id. */ + databaseId: string; + /** + * The type of relation to create. Uses SuperCase naming: + * - RelationBelongsTo: creates a FK field on source_table referencing target_table (e.g., tasks belongs to projects -> tasks.project_id). Field name auto-derived from target table. + * - RelationHasMany: creates a FK field on target_table referencing source_table (e.g., projects has many tasks -> tasks.project_id). Field name auto-derived from source table. Inverse of BelongsTo — same FK, different perspective. + * - RelationHasOne: creates a FK field + unique constraint on source_table referencing target_table (e.g., user_settings has one user -> user_settings.user_id with UNIQUE). Also supports shared-primary-key patterns (e.g., user_profiles.id = users.id) by setting field_name to the existing PK field. + * - RelationManyToMany: creates a junction table with FK fields to both tables (e.g., projects and tags -> project_tags table). + * Each relation type uses a different subset of columns on this table. Required. + */ + relationType: string; + /** + * The source table in the relation. Required. + * - RelationBelongsTo: the table that receives the FK field (e.g., tasks in "tasks belongs to projects"). + * - RelationHasMany: the parent table being referenced (e.g., projects in "projects has many tasks"). The FK field is created on the target table. + * - RelationHasOne: the table that receives the FK field + unique constraint (e.g., user_settings in "user_settings has one user"). + * - RelationManyToMany: one of the two tables being joined (e.g., projects in "projects and tags"). The junction table will have a FK field referencing this table. + */ + sourceTableId: string; + /** + * The target table in the relation. Required. + * - RelationBelongsTo: the table being referenced by the FK (e.g., projects in "tasks belongs to projects"). + * - RelationHasMany: the table that receives the FK field (e.g., tasks in "projects has many tasks"). + * - RelationHasOne: the table being referenced by the FK (e.g., users in "user_settings has one user"). + * - RelationManyToMany: the other table being joined (e.g., tags in "projects and tags"). The junction table will have a FK field referencing this table. + */ + targetTableId: string; + /** + * FK field name for RelationBelongsTo, RelationHasOne, and RelationHasMany. + * - RelationBelongsTo/RelationHasOne: if NULL, auto-derived from the target table name (e.g., target "projects" derives "project_id"). + * - RelationHasMany: if NULL, auto-derived from the source table name (e.g., source "projects" derives "project_id"). + * For RelationHasOne shared-primary-key patterns, set field_name to the existing PK field (e.g., "id") so the FK reuses it. + * Ignored for RelationManyToMany — use source_field_name/target_field_name instead. + */ + fieldName?: string; + /** FK delete action for RelationBelongsTo, RelationHasOne, and RelationHasMany. One of: c (CASCADE), r (RESTRICT), n (SET NULL), d (SET DEFAULT), a (NO ACTION). Required — the trigger raises an error if not provided. The caller must explicitly choose the cascade behavior; there is no default. Ignored for RelationManyToMany (junction FK fields always use CASCADE). */ + deleteAction?: string; + /** + * Whether the FK field is NOT NULL. Defaults to true. + * - RelationBelongsTo: set to false for optional associations (e.g., tasks.assignee_id that can be NULL). + * - RelationHasMany: set to false if the child can exist without a parent. + * - RelationHasOne: typically true. + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + isRequired?: boolean; + /** + * Whether the FK field should be required at the API level even though it is nullable at the database level. Defaults to false. + * When true and is_required is false, the field is created as nullable (allowing SET NULL cascade) but a @requiredInput smart tag is added so PostGraphile treats it as non-null in create/update input types. + * When is_required is true, api_required is ignored (the field is already required at both levels). + * Ignored for RelationManyToMany (junction FK fields are always required). + */ + apiRequired?: boolean; + /** + * For RelationManyToMany: an existing junction table to use. Defaults to uuid_nil(). + * - When uuid_nil(): the trigger creates a new junction table via secure_table_provision using junction_table_name. + * - When set to a valid table UUID: the trigger skips table creation and only adds FK fields, composite key (if use_composite_key is true), and security to the existing table. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + junctionTableId?: string; + /** For RelationManyToMany: name of the junction table to create or look up. If NULL, auto-derived from source and target table names using inflection_db (e.g., "projects" + "tags" derives "project_tags"). Only used when junction_table_id is uuid_nil(). Ignored for RelationBelongsTo/RelationHasOne. */ + junctionTableName?: string; + /** For RelationManyToMany: schema for the junction table. If NULL, defaults to the source table's schema. Ignored for RelationBelongsTo/RelationHasOne. */ + junctionSchemaId?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the source table. If NULL, auto-derived from the source table name using inflection_db.get_foreign_key_field_name() (e.g., source table "projects" derives "project_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + sourceFieldName?: string; + /** For RelationManyToMany: FK field name on the junction table referencing the target table. If NULL, auto-derived from the target table name using inflection_db.get_foreign_key_field_name() (e.g., target table "tags" derives "tag_id"). Ignored for RelationBelongsTo/RelationHasOne. */ + targetFieldName?: string; + /** + * For RelationManyToMany: whether to create a composite primary key from the two FK fields (source + target) on the junction table. Defaults to false. + * - When true: the trigger calls metaschema.pk() with ARRAY[source_field_id, target_field_id] to create a composite PK. No separate id column is created. This enforces uniqueness of the pair and is suitable for simple junction tables. + * - When false: no primary key is created by the trigger. The caller should provide node_type='DataId' to create a UUID primary key, or handle the PK strategy via a separate secure_table_provision row. + * use_composite_key and node_type='DataId' are mutually exclusive — using both would create two conflicting PKs. + * Ignored for RelationBelongsTo/RelationHasOne. + */ + useCompositeKey?: boolean; + /** + * Whether to create a btree index on FK fields created by this relation. Defaults to true. + * PostgreSQL does not automatically index foreign key columns (only the referenced PK side is indexed). + * Without indexes on FK columns, JOINs, CASCADE deletes, and RLS policy lookups perform sequential scans. + * - RelationBelongsTo: creates an index on the FK field on the source table. + * - RelationHasMany: creates an index on the FK field on the target table. + * - RelationHasOne: skipped — the unique constraint already creates an implicit index. + * - RelationManyToMany: creates indexes on both FK fields on the junction table. + * Set to false only for very small tables or write-heavy tables where index maintenance cost outweighs read performance. + */ + createIndex?: boolean; + /** + * For RelationManyToMany: whether to expose the M:N shortcut fields in the GraphQL API. Defaults to true. + * When true, sets @behavior +manyToMany on the junction table smart_tags so PostGraphile generates + * clean M:N connection fields (e.g., event.contacts instead of event.contactEventsByEventId). + * When false (or toggled off via UPDATE), the behavior tag is removed and the M:N fields disappear from GraphQL. + * Toggling is supported: UPDATE expose_in_api to true/false and the smart tag is added/removed automatically. + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + exposeInApi?: boolean; + /** + * For RelationManyToMany: array of node objects to apply to the junction table. Each element is a jsonb object with a required "$type" key and an optional "data" key. Forwarded to provision_table as-is. The trigger does not interpret or validate this value. + * Examples: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. + * Defaults to '[]' (no node processing beyond the FK fields and composite key if use_composite_key is true). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + nodes?: Record; + /** For RelationManyToMany: array of grant objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "roles" (text[], required), "privileges" (jsonb[], required — array of [privilege, columns] tuples). Example: [{"roles":["authenticated"],"privileges":[["select","*"],["insert","*"],["delete","*"]]}]. Defaults to '[]' (no grants). Ignored for RelationBelongsTo/RelationHasOne. */ + grants?: Record; + /** + * For RelationManyToMany: array of policy objects for the junction table. Forwarded to provision_table as-is. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type), "data" (jsonb, optional — opaque config), "privileges" (text[], optional — e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — falls back to first role in first grants[] entry, or 'authenticated'), "permissive" (boolean, optional, defaults to true), "policy_name" (text, optional). Supports multiple policies per row. + * Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "entity_id", "membership_type": 2}, "privileges": ["select", "insert", "delete"]}]. + * Defaults to '[]' (no policies — the junction table will have RLS enabled but no policies unless added separately). + * Ignored for RelationBelongsTo/RelationHasOne/RelationHasMany. + */ + policies?: Record; + /** Output column for RelationBelongsTo/RelationHasOne/RelationHasMany: the UUID of the FK field created (or found). For BelongsTo/HasOne this is on the source table; for HasMany this is on the target table. Populated by the trigger. NULL for RelationManyToMany. Callers should not set this directly. */ + outFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the junction table created (or found). Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outJunctionTableId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the source table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outSourceFieldId?: string; + /** Output column for RelationManyToMany: the UUID of the FK field on the junction table referencing the target table. Populated by the trigger. NULL for RelationBelongsTo/RelationHasOne. Callers should not set this directly. */ + outTargetFieldId?: string; +} +/** An input for mutations affecting `UserAuthModule` */ +export interface UserAuthModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + emailsTableId?: string; + usersTableId?: string; + secretsTableId?: string; + encryptedTableId?: string; + sessionsTableId?: string; + sessionCredentialsTableId?: string; + auditsTableId?: string; + auditsTableName?: string; + signInFunction?: string; + signUpFunction?: string; + signOutFunction?: string; + setPasswordFunction?: string; + resetPasswordFunction?: string; + forgotPasswordFunction?: string; + sendVerificationEmailFunction?: string; + verifyEmailFunction?: string; + verifyPasswordFunction?: string; + checkPasswordFunction?: string; + sendAccountDeletionEmailFunction?: string; + deleteAccountFunction?: string; + signInCrossOriginFunction?: string; + requestCrossOriginTokenFunction?: string; + extendTokenExpires?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `AgentModule` */ +export interface AgentModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + threadTableId?: string; + messageTableId?: string; + taskTableId?: string; + promptsTableId?: string; + planTableId?: string; + agentTableId?: string; + personaTableId?: string; + resourceTableId?: string; + threadTableName?: string; + messageTableName?: string; + taskTableName?: string; + promptsTableName?: string; + planTableName?: string; + agentTableName?: string; + personaTableName?: string; + resourceTableName?: string; + hasPlans?: boolean; + hasResources?: boolean; + hasAgents?: boolean; + shared?: boolean; + apiName?: string; + privateApiName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + policies?: Record; + resources?: Record; + provisions?: Record; + defaultPermissions?: string[]; +} +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + limitCreditsTableId?: string; + eventsTableId?: string; + creditCodesTableId?: string; + creditCodeItemsTableId?: string; + creditRedemptionsTableId?: string; + aggregateTableId?: string; + limitCapsTableId?: string; + limitCapsDefaultsTableId?: string; + capCheckTrigger?: string; + resolveCapFunction?: string; + limitWarningsTableId?: string; + limitWarningStateTableId?: string; + limitCheckSoftFunction?: string; + limitAggregateCheckSoftFunction?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `MembershipsModule` */ +export interface MembershipsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + membershipsTableId?: string; + membershipsTableName?: string; + membersTableId?: string; + membersTableName?: string; + membershipDefaultsTableId?: string; + membershipDefaultsTableName?: string; + membershipSettingsTableId?: string; + membershipSettingsTableName?: string; + grantsTableId?: string; + grantsTableName?: string; + actorTableId?: string; + limitsTableId?: string; + defaultLimitsTableId?: string; + permissionsTableId?: string; + defaultPermissionsTableId?: string; + sprtTableId?: string; + adminGrantsTableId?: string; + adminGrantsTableName?: string; + ownerGrantsTableId?: string; + ownerGrantsTableName?: string; + scope?: string; + prefix?: string; + entityTableId?: string; + entityTableOwnerId?: string; + getOrgFn?: string; + actorMaskCheck?: string; + actorPermCheck?: string; + entityIdsByMask?: string; + entityIdsByPerm?: string; + entityIdsFunction?: string; + memberProfilesTableId?: string; + permissionDefaultPermissionsTableId?: string; + permissionDefaultGrantsTableId?: string; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EntityTypeProvision` */ +export interface EntityTypeProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database to provision this entity type in. Required. */ + databaseId: string; + /** + * Human-readable name for this entity type, e.g. 'Data Room', 'Team Channel'. Required. + * Stored in the entity_types registry table. + */ + name: string; + /** + * SQL prefix used for table and module naming, e.g. 'data_room', 'team_channel'. Required. + * Drives entity table name (prefix || 's' by default), module labels (permissions_module:prefix), + * and membership table names (prefix_memberships, prefix_members, etc.). + * Must be unique per database — the (database_id, prefix) constraint ensures graceful ON CONFLICT DO NOTHING. + */ + prefix: string; + /** Description of this entity type. Stored in the entity_types registry table. Defaults to empty string. */ + description?: string; + /** + * Prefix of the parent entity type. The trigger resolves this to a membership_type integer + * by looking up memberships_module WHERE prefix = parent_entity. + * Defaults to 'org' (the organization-level type). For nested types, set to the parent's prefix + * (e.g. 'data_room' for a team_channel nested under data_room). + * The parent type must already be provisioned before this INSERT. + */ + parentEntity?: string; + /** + * Override the entity table name. When NULL (default), the table name is derived as prefix || 's' + * (e.g. prefix 'data_room' produces table 'data_rooms'). + * Set this when the pluralization rule doesn't apply (e.g. prefix 'staff' should produce 'staff' not 'staffs'). + */ + tableName?: string; + /** + * Whether members of the parent entity can see child entities. Defaults to true. + * When true: a SELECT policy allows parent members to list child entities (e.g. org members can see all data rooms). + * When false: only direct members of the entity itself can see it (private entity mode). + * Controls whether the parent_member SELECT policy is created on the entity table. + * Only meaningful on the defaults path — ignored (no-op) when table_provision is non-NULL or + * skip_entity_policies=true, since no default policies are being applied in those cases. + */ + isVisible?: boolean; + /** + * Whether to apply limits_module security for this type. Defaults to false. + * The limits_module table structure is always created (memberships_module requires it), + * but when false, no RLS policies are applied to the limits tables. + * Set to true if this entity type needs configurable resource limits per membership. + */ + hasLimits?: boolean; + /** + * Whether to provision profiles_module for this type. Defaults to false. + * Profiles provide named permission roles (e.g. 'Editor', 'Viewer') with pre-configured permission bitmasks. + * When true, creates profile tables and applies profiles security. + */ + hasProfiles?: boolean; + /** + * Whether to provision events_module for this type. Defaults to false. + * Levels provide gamification/achievement tracking for members. + * When true, creates level steps, achievements, and level tables with security. + */ + hasLevels?: boolean; + /** + * Whether to provision invites_module for this type. Defaults to false. + * When true, the trigger inserts a row into invites_module which in turn + * (via insert_invites_module BEFORE INSERT) creates {prefix}_invites and + * {prefix}_claimed_invites tables plus the submit_{prefix}_invite_code() function. + * Re-provisioning is idempotent: the UNIQUE (database_id, membership_type) constraint + * on invites_module combined with ON CONFLICT DO NOTHING in the fan-out makes + * repeated INSERTs safe. + */ + hasInvites?: boolean; + /** + * Whether to auto-attach an EventTracker to the claimed_invites table for invite-based + * achievements. Defaults to false. Requires has_invites=true AND has_levels=true. + * When true, the trigger calls event_tracker() on the claimed_invites table with + * event_name='invite_claimed', actor_field='sender_id', events=['INSERT'], + * crediting the SENDER (inviter) when someone claims their invite code. + * Developers can then define achievements in the blueprint achievements[] section + * that reference the 'invite_claimed' event (e.g., "Invite 5 friends" = count: 5). + */ + hasInviteAchievements?: boolean; + /** + * Optional JSON array of storage module definitions. Presence triggers provisioning + * (same inference model as namespaces, functions, agents). + * Each element provisions a separate storage module with its own tables + * ({prefix}_{key}_buckets/files), RLS policies, and feature flags. + * NULL = do not provision storage. '[{}]' = provision one default storage module. + * Each array element recognizes (all optional): + * - key (text) module discriminator, max 16 chars, lowercase snake_case. + * Defaults to 'default' (omitted from table names). + * Non-default keys become infixes: {prefix}_{key}_buckets. + * (storage_key accepted for backward compat) + * - upload_url_expiry_seconds (integer) presigned PUT URL expiry override + * - download_url_expiry_seconds (integer) presigned GET URL expiry override + * - default_max_file_size (bigint) global max file size in bytes for this module + * - allowed_origins (text[]) default CORS origins for all buckets in this module + * - restrict_reads (boolean) require read_files permission for SELECT on files + * - has_path_shares (boolean) enable virtual filesystem + path share policies + * - has_versioning (boolean) enable file version chains + * - has_content_hash (boolean) enable content hash for dedup + * - has_custom_keys (boolean) allow client-provided S3 keys + * - has_audit_log (boolean) enable file events audit table + * - has_confirm_upload (boolean) enable HeadObject confirmation flow + * - confirm_upload_delay (interval) delay before first confirmation attempt + * - buckets (jsonb[]) array of initial bucket definitions to seed. + * Each bucket: { name (required), description, is_public, allowed_mime_types, max_file_size, allowed_origins } + * - provisions (jsonb object) per-table customization keyed by "files" or "buckets". + * Each value: { nodes, fields, grants, use_rls, policies }. + * Example (single module, backward compat): + * storage := '[{"buckets": [{"name": "documents"}]}]'::jsonb + * Example (multi-module): + * storage := '[{"has_path_shares": true, "buckets": [{"name": "documents"}]}, {"key": "fn", "has_custom_keys": true, "buckets": [{"name": "functions"}]}]'::jsonb + */ + storage?: Record; + /** + * Optional JSON array of namespace module definitions. Presence triggers provisioning. + * NULL = do not provision namespaces. '[{}]' = provision one default namespace module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_namespace_security(). + * Creates {prefix}_namespaces (or {prefix}_{key}_namespaces for non-default keys) + * with entity-scoped RLS (AuthzEntityMembership) and a rename proxy trigger. + * Registers manage_namespaces permission bit on first provision. + * Example: namespaces := '[{}]'::jsonb + */ + namespaces?: Record; + /** + * Optional JSON array of function module definitions. Presence triggers provisioning. + * NULL = do not provision functions. '[{}]' = provision one default function module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_function_security(). + * Creates {prefix}_function_definitions (or {prefix}_{key}_function_definitions for non-default keys) + * with entity-scoped RLS and a job trigger dispatching function:provision tasks. + * Registers manage_functions + invoke_functions permission bits on first provision. + * Example: functions := '[{}]'::jsonb + */ + functions?: Record; + /** + * Optional JSON array of graph module definitions. Presence triggers provisioning. + * NULL = do not provision graphs. '[{}]' = provision one default graph module. + * Each element recognizes (all optional): + * - key (text) module discriminator. Defaults to 'default'. + * - policies (jsonb array) RLS policy overrides. NULL = apply defaults from apply_graph_security(). + * Registers manage_graphs + execute_graphs permission bits on first provision. + * Graph module requires a merkle_store_module_id dependency, so entity_type_provision + * only registers permissions here. The graph module itself must be provisioned + * separately with the merkle store dependency resolved. + * Example: graphs := '[{}]'::jsonb + */ + graphs?: Record; + agents?: Record; + /** + * Escape hatch: when true, apply zero RLS policies to the entity table. Defaults to false. + * Use this only when you want the entity table provisioned with zero policies (e.g. because you + * plan to insert secure_table_provision rows yourself later). In most cases, prefer leaving this + * false and either accepting the five defaults (table_provision=NULL) or overriding them via + * table_provision. + * Defaults (applied when table_provision IS NULL and skip_entity_policies=false): + * - SELECT (parent_member): parent entity members can see child entities (only when is_visible=true) + * - SELECT (self_member): direct members of the entity can see it + * - INSERT: create_entity permission on the parent entity + * - UPDATE: admin_entity permission on the entity itself + * - DELETE: owner of the entity can delete it + */ + skipEntityPolicies?: boolean; + /** + * Single jsonb object describing the full security setup to apply to the entity table. + * Uses the same vocabulary as metaschema_modules_public.provision_table() and blueprint tables[] + * entries, so an entity table is configured the same way an ordinary blueprint table is. + * Defaults to NULL; when non-NULL, the five default policies are implicitly replaced by + * table_provision.policies[] (is_visible becomes a no-op on this path). + * Recognized keys (all optional): + * - use_rls (boolean, default true) + * - nodes (jsonb array of {"$type","data"} Data* module entries) + * - fields (jsonb array of field objects: name,type,is_required,default,min,max,regexp,index) + * - grants (jsonb array of grant objects; each with roles[] and privileges[]) + * - policies (jsonb array of policy objects; each with $type, privileges, data, name, role, permissive) + * The trigger forwards all setup (nodes/fields/grants/policies) as a single secure_table_provision row + * against the newly created entity table. + * Example — override with two SELECT policies: + * table_provision := jsonb_build_object( + * 'policies', jsonb_build_array( + * jsonb_build_object( + * '$type', 'AuthzEntityMembership', + * 'privileges', jsonb_build_array('select'), + * 'data', jsonb_build_object('entity_field', 'id', 'membership_type', 3), + * 'name', 'self_member' + * ), + * jsonb_build_object( + * '$type', 'AuthzDirectOwner', + * 'privileges', jsonb_build_array('select', 'update'), + * 'data', jsonb_build_object('owner_field', 'owner_id') + * ) + * ) + * ) + */ + tableProvision?: Record; + /** + * Output: the auto-assigned integer membership type ID. Populated by the trigger after successful provisioning. + * This is the ID used in entity_types, memberships_module, and all module tables. + */ + outMembershipType?: number; + /** + * Output: the UUID of the created entity table. Populated by the trigger. + * Use this to reference the entity table in subsequent relation_provision or secure_table_provision rows. + */ + outEntityTableId?: string; + /** Output: the name of the created entity table (e.g. 'data_rooms'). Populated by the trigger. */ + outEntityTableName?: string; + /** + * Output: array of installed module labels (e.g. ARRAY['permissions_module:data_room', 'memberships_module:data_room', 'invites_module:data_room']). + * Populated by the trigger. Useful for verifying which modules were provisioned. + */ + outInstalledModules?: string[]; + /** Output: the UUID of the storage_module row created for this entity type. Populated by the trigger when storage is non-NULL and non-empty. */ + outStorageModuleId?: string; + /** Output: the UUID of the generated buckets table (e.g. data_room_buckets). Populated by the trigger when storage is non-NULL and non-empty. */ + outBucketsTableId?: string; + /** Output: the UUID of the generated files table (e.g. data_room_files). Populated by the trigger when storage is non-NULL and non-empty. */ + outFilesTableId?: string; + outPathSharesTableId?: string; + /** + * Output: the UUID of the invites_module row created for this entity type. Populated by the trigger when has_invites=true. + * NULL when has_invites=false, or when re-provisioning hits ON CONFLICT DO NOTHING + * (i.e. the invites_module row was created in a previous run). + */ + outInvitesModuleId?: string; + /** + * Output: the UUID of the namespace_module row created (or found) for this entity type. + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceModuleId?: string; + /** + * Output: the UUID of the generated namespaces table (e.g. data_room_namespaces). + * Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespacesTableId?: string; + /** + * Output: the UUID of the generated namespace_events partitioned table (e.g. data_room_namespace_events). + * Monthly partitioned, 12-month retention. Populated by the trigger when namespaces is non-NULL. NULL otherwise. + */ + outNamespaceEventsTableId?: string; + outFunctionModuleId?: string; + outDefinitionsTableId?: string; + outInvocationsTableId?: string; + outExecutionLogsTableId?: string; + outSecretDefinitionsTableId?: string; + outGraphModuleId?: string; + outGraphsTableId?: string; + outAgentModuleId?: string; +} +/** An input for mutations affecting `StorageModule` */ +export interface StorageModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + bucketsTableId?: string; + filesTableId?: string; + bucketsTableName?: string; + filesTableName?: string; + scope?: string; + prefix?: string; + policies?: Record; + provisions?: Record; + entityTableId?: string; + endpoint?: string; + publicUrlPrefix?: string; + provider?: string; + allowedOrigins?: string[]; + restrictReads?: boolean; + hasPathShares?: boolean; + pathSharesTableId?: string; + uploadUrlExpirySeconds?: number; + downloadUrlExpirySeconds?: number; + defaultMaxFileSize?: string; + maxFilenameLength?: number; + cacheTtlSeconds?: number; + maxBulkFiles?: number; + maxBulkTotalSize?: string; + hasVersioning?: boolean; + hasContentHash?: boolean; + hasCustomKeys?: boolean; + hasAuditLog?: boolean; + hasConfirmUpload?: boolean; + confirmUploadDelay?: IntervalInput; + fileEventsTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** An input for mutations affecting `EventsModule` */ +export interface EventsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + publicSchemaName?: string; + privateSchemaName?: string; + eventsTableId?: string; + eventsTableName?: string; + eventAggregatesTableId?: string; + eventAggregatesTableName?: string; + eventTypesTableId?: string; + eventTypesTableName?: string; + levelsTableId?: string; + levelsTableName?: string; + levelRequirementsTableId?: string; + levelRequirementsTableName?: string; + levelGrantsTableId?: string; + levelGrantsTableName?: string; + achievementRewardsTableId?: string; + achievementRewardsTableName?: string; + recordEvent?: string; + removeEvent?: string; + tgEvent?: string; + tgEventToggle?: string; + tgEventToggleBool?: string; + tgEventBool?: string; + upsertAggregate?: string; + tgUpdateAggregates?: string; + pruneEvents?: string; + stepsRequired?: string; + levelAchieved?: string; + tgCheckAchievements?: string; + grantAchievement?: string; + tgAchievementReward?: string; + interval?: string; + retention?: string; + premake?: number; + scope?: string; + prefix?: string; + entityTableId?: string; + actorTableId?: string; + defaultPermissions?: string[]; + apiName?: string; + privateApiName?: string; +} +/** A filter to be used against `BlueprintConstruction` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintConstructionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `blueprintId` field. */ + blueprintId?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Filter by the object’s `errorDetails` field. */ + errorDetails?: StringFilter; + /** Filter by the object’s `tableMap` field. */ + tableMap?: JSONFilter; + /** Filter by the object’s `constructedDefinition` field. */ + constructedDefinition?: JSONFilter; + /** Filter by the object’s `constructedAt` field. */ + constructedAt?: DatetimeFilter; + /** 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?: BlueprintConstructionFilter[]; + /** Checks for any expressions in this list. */ + or?: BlueprintConstructionFilter[]; + /** Negates the expression. */ + not?: BlueprintConstructionFilter; + /** Filter by the object’s `blueprint` relation. */ + blueprint?: BlueprintFilter; +} +/** A filter to be used against `BlueprintTemplate` object types. All fields are combined with a logical ‘and.’ */ +export interface BlueprintTemplateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `version` field. */ version?: StringFilter; @@ -10150,25 +12204,6 @@ export interface BlueprintFilter { /** `blueprintConstructions` exist. */ blueprintConstructionsExist?: boolean; } -/** 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 `GraphModule` object types. All fields are combined with a logical ‘and.’ */ export interface GraphModuleFilter { /** Filter by the object’s `id` field. */ @@ -10205,6 +12240,8 @@ export interface GraphModuleFilter { policies?: JSONFilter; /** Filter by the object’s `provisions` field. */ provisions?: JSONFilter; + /** Filter by the object’s `defaultPermissions` field. */ + defaultPermissions?: StringListFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -10472,6 +12509,8 @@ export interface MerkleStoreModuleFilter { privateApiName?: StringFilter; /** Filter by the object’s `scope` field. */ scope?: StringFilter; + /** Filter by the object’s `functionPrefix` field. */ + functionPrefix?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Checks for all expressions in this list. */ @@ -11326,68 +13365,23 @@ export type UpdateCryptoAddressesModulePayloadSelect = { cryptoAddressesModule?: { select: CryptoAddressesModuleSelect; }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface DeleteCryptoAddressesModulePayload { - clientMutationId?: string | null; - /** The `CryptoAddressesModule` that was deleted by this mutation. */ - cryptoAddressesModule?: CryptoAddressesModule | null; - cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; -} -export type DeleteCryptoAddressesModulePayloadSelect = { - clientMutationId?: boolean; - cryptoAddressesModule?: { - select: CryptoAddressesModuleSelect; - }; - cryptoAddressesModuleEdge?: { - select: CryptoAddressesModuleEdgeSelect; - }; -}; -export interface CreateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was created by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type CreateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; -}; -export interface UpdateIdentityProvidersModulePayload { - clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was updated by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; -} -export type UpdateIdentityProvidersModulePayloadSelect = { - clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; - }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; - }; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; + }; }; -export interface DeleteIdentityProvidersModulePayload { +export interface DeleteCryptoAddressesModulePayload { clientMutationId?: string | null; - /** The `IdentityProvidersModule` that was deleted by this mutation. */ - identityProvidersModule?: IdentityProvidersModule | null; - identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; + /** The `CryptoAddressesModule` that was deleted by this mutation. */ + cryptoAddressesModule?: CryptoAddressesModule | null; + cryptoAddressesModuleEdge?: CryptoAddressesModuleEdge | null; } -export type DeleteIdentityProvidersModulePayloadSelect = { +export type DeleteCryptoAddressesModulePayloadSelect = { clientMutationId?: boolean; - identityProvidersModule?: { - select: IdentityProvidersModuleSelect; + cryptoAddressesModule?: { + select: CryptoAddressesModuleSelect; }; - identityProvidersModuleEdge?: { - select: IdentityProvidersModuleEdgeSelect; + cryptoAddressesModuleEdge?: { + select: CryptoAddressesModuleEdgeSelect; }; }; export interface CreateDenormalizedTableFieldPayload { @@ -11435,6 +13429,51 @@ export type DeleteDenormalizedTableFieldPayloadSelect = { select: DenormalizedTableFieldEdgeSelect; }; }; +export interface CreateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was created by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type CreateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface UpdateIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was updated by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type UpdateIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; +export interface DeleteIdentityProvidersModulePayload { + clientMutationId?: string | null; + /** The `IdentityProvidersModule` that was deleted by this mutation. */ + identityProvidersModule?: IdentityProvidersModule | null; + identityProvidersModuleEdge?: IdentityProvidersModuleEdge | null; +} +export type DeleteIdentityProvidersModulePayloadSelect = { + clientMutationId?: boolean; + identityProvidersModule?: { + select: IdentityProvidersModuleSelect; + }; + identityProvidersModuleEdge?: { + select: IdentityProvidersModuleEdgeSelect; + }; +}; export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -11660,51 +13699,6 @@ export type DeleteCryptoAuthModulePayloadSelect = { select: CryptoAuthModuleEdgeSelect; }; }; -export interface CreateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was created by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type CreateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface UpdateRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was updated by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type UpdateRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitMetersModulePayload { - clientMutationId?: string | null; - /** The `RateLimitMetersModule` that was deleted by this mutation. */ - rateLimitMetersModule?: RateLimitMetersModule | null; - rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; -} -export type DeleteRateLimitMetersModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitMetersModule?: { - select: RateLimitMetersModuleSelect; - }; - rateLimitMetersModuleEdge?: { - select: RateLimitMetersModuleEdgeSelect; - }; -}; export interface CreateSessionsModulePayload { clientMutationId?: string | null; /** The `SessionsModule` that was created by this mutation. */ @@ -11750,49 +13744,49 @@ export type DeleteSessionsModulePayloadSelect = { select: SessionsModuleEdgeSelect; }; }; -export interface CreateConfigSecretsModulePayload { +export interface CreateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was created by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type CreateConfigSecretsModulePayloadSelect = { +export type CreateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface UpdateConfigSecretsModulePayload { +export interface UpdateSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was updated by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type UpdateConfigSecretsModulePayloadSelect = { +export type UpdateSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; -export interface DeleteConfigSecretsModulePayload { +export interface DeleteSecureTableProvisionPayload { clientMutationId?: string | null; - /** The `ConfigSecretsModule` that was deleted by this mutation. */ - configSecretsModule?: ConfigSecretsModule | null; - configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; } -export type DeleteConfigSecretsModulePayloadSelect = { +export type DeleteSecureTableProvisionPayloadSelect = { clientMutationId?: boolean; - configSecretsModule?: { - select: ConfigSecretsModuleSelect; + secureTableProvision?: { + select: SecureTableProvisionSelect; }; - configSecretsModuleEdge?: { - select: ConfigSecretsModuleEdgeSelect; + secureTableProvisionEdge?: { + select: SecureTableProvisionEdgeSelect; }; }; export interface CreateMerkleStoreModulePayload { @@ -11879,100 +13873,10 @@ export interface DeleteGraphModulePayload { export type DeleteGraphModulePayloadSelect = { clientMutationId?: boolean; graphModule?: { - select: GraphModuleSelect; - }; - graphModuleEdge?: { - select: GraphModuleEdgeSelect; - }; -}; -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type CreateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type UpdateSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export type DeleteSecureTableProvisionPayloadSelect = { - clientMutationId?: boolean; - secureTableProvision?: { - select: SecureTableProvisionSelect; - }; - secureTableProvisionEdge?: { - select: SecureTableProvisionEdgeSelect; - }; -}; -export interface CreateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was created by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type CreateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface UpdateInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was updated by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type UpdateInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; - }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; - }; -}; -export interface DeleteInvitesModulePayload { - clientMutationId?: string | null; - /** The `InvitesModule` that was deleted by this mutation. */ - invitesModule?: InvitesModule | null; - invitesModuleEdge?: InvitesModuleEdge | null; -} -export type DeleteInvitesModulePayloadSelect = { - clientMutationId?: boolean; - invitesModule?: { - select: InvitesModuleSelect; + select: GraphModuleSelect; }; - invitesModuleEdge?: { - select: InvitesModuleEdgeSelect; + graphModuleEdge?: { + select: GraphModuleEdgeSelect; }; }; export interface CreateDatabaseProvisionModulePayload { @@ -12020,49 +13924,94 @@ export type DeleteDatabaseProvisionModulePayloadSelect = { select: DatabaseProvisionModuleEdgeSelect; }; }; -export interface CreateNamespaceModulePayload { +export interface CreateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was created by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was created by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type CreateNamespaceModulePayloadSelect = { +export type CreateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface UpdateNamespaceModulePayload { +export interface UpdateConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was updated by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was updated by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type UpdateNamespaceModulePayloadSelect = { +export type UpdateConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; }; }; -export interface DeleteNamespaceModulePayload { +export interface DeleteConfigSecretsModulePayload { clientMutationId?: string | null; - /** The `NamespaceModule` that was deleted by this mutation. */ - namespaceModule?: NamespaceModule | null; - namespaceModuleEdge?: NamespaceModuleEdge | null; + /** The `ConfigSecretsModule` that was deleted by this mutation. */ + configSecretsModule?: ConfigSecretsModule | null; + configSecretsModuleEdge?: ConfigSecretsModuleEdge | null; } -export type DeleteNamespaceModulePayloadSelect = { +export type DeleteConfigSecretsModulePayloadSelect = { clientMutationId?: boolean; - namespaceModule?: { - select: NamespaceModuleSelect; + configSecretsModule?: { + select: ConfigSecretsModuleSelect; }; - namespaceModuleEdge?: { - select: NamespaceModuleEdgeSelect; + configSecretsModuleEdge?: { + select: ConfigSecretsModuleEdgeSelect; + }; +}; +export interface CreateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was created by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type CreateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was updated by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type UpdateRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitMetersModulePayload { + clientMutationId?: string | null; + /** The `RateLimitMetersModule` that was deleted by this mutation. */ + rateLimitMetersModule?: RateLimitMetersModule | null; + rateLimitMetersModuleEdge?: RateLimitMetersModuleEdge | null; +} +export type DeleteRateLimitMetersModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitMetersModule?: { + select: RateLimitMetersModuleSelect; + }; + rateLimitMetersModuleEdge?: { + select: RateLimitMetersModuleEdgeSelect; }; }; export interface CreateRealtimeModulePayload { @@ -12112,47 +14061,227 @@ export type DeleteRealtimeModulePayloadSelect = { }; export interface CreateWebauthnAuthModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was created by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `WebauthnAuthModule` that was created by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type CreateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface UpdateWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was updated by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type UpdateWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface DeleteWebauthnAuthModulePayload { + clientMutationId?: string | null; + /** The `WebauthnAuthModule` that was deleted by this mutation. */ + webauthnAuthModule?: WebauthnAuthModule | null; + webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; +} +export type DeleteWebauthnAuthModulePayloadSelect = { + clientMutationId?: boolean; + webauthnAuthModule?: { + select: WebauthnAuthModuleSelect; + }; + webauthnAuthModuleEdge?: { + select: WebauthnAuthModuleEdgeSelect; + }; +}; +export interface CreateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was created by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type CreateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface UpdateFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was updated by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type UpdateFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface DeleteFunctionInvocationModulePayload { + clientMutationId?: string | null; + /** The `FunctionInvocationModule` that was deleted by this mutation. */ + functionInvocationModule?: FunctionInvocationModule | null; + functionInvocationModuleEdge?: FunctionInvocationModuleEdge | null; +} +export type DeleteFunctionInvocationModulePayloadSelect = { + clientMutationId?: boolean; + functionInvocationModule?: { + select: FunctionInvocationModuleSelect; + }; + functionInvocationModuleEdge?: { + select: FunctionInvocationModuleEdgeSelect; + }; +}; +export interface CreateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was created by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type CreateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface UpdateFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was updated by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type UpdateFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface DeleteFunctionModulePayload { + clientMutationId?: string | null; + /** The `FunctionModule` that was deleted by this mutation. */ + functionModule?: FunctionModule | null; + functionModuleEdge?: FunctionModuleEdge | null; +} +export type DeleteFunctionModulePayloadSelect = { + clientMutationId?: boolean; + functionModule?: { + select: FunctionModuleSelect; + }; + functionModuleEdge?: { + select: FunctionModuleEdgeSelect; + }; +}; +export interface CreateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was created by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type CreateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface UpdateInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was updated by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type UpdateInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface DeleteInvitesModulePayload { + clientMutationId?: string | null; + /** The `InvitesModule` that was deleted by this mutation. */ + invitesModule?: InvitesModule | null; + invitesModuleEdge?: InvitesModuleEdge | null; +} +export type DeleteInvitesModulePayloadSelect = { + clientMutationId?: boolean; + invitesModule?: { + select: InvitesModuleSelect; + }; + invitesModuleEdge?: { + select: InvitesModuleEdgeSelect; + }; +}; +export interface CreateNamespaceModulePayload { + clientMutationId?: string | null; + /** The `NamespaceModule` that was created by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type CreateWebauthnAuthModulePayloadSelect = { +export type CreateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface UpdateWebauthnAuthModulePayload { +export interface UpdateNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was updated by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was updated by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type UpdateWebauthnAuthModulePayloadSelect = { +export type UpdateNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; -export interface DeleteWebauthnAuthModulePayload { +export interface DeleteNamespaceModulePayload { clientMutationId?: string | null; - /** The `WebauthnAuthModule` that was deleted by this mutation. */ - webauthnAuthModule?: WebauthnAuthModule | null; - webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; + /** The `NamespaceModule` that was deleted by this mutation. */ + namespaceModule?: NamespaceModule | null; + namespaceModuleEdge?: NamespaceModuleEdge | null; } -export type DeleteWebauthnAuthModulePayloadSelect = { +export type DeleteNamespaceModulePayloadSelect = { clientMutationId?: boolean; - webauthnAuthModule?: { - select: WebauthnAuthModuleSelect; + namespaceModule?: { + select: NamespaceModuleSelect; }; - webauthnAuthModuleEdge?: { - select: WebauthnAuthModuleEdgeSelect; + namespaceModuleEdge?: { + select: NamespaceModuleEdgeSelect; }; }; export interface CreateComputeLogModulePayload { @@ -12335,139 +14464,139 @@ export type DeleteTransferLogModulePayloadSelect = { select: TransferLogModuleEdgeSelect; }; }; -export interface CreateDbUsageModulePayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was created by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateDbUsageModulePayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateDbUsageModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was updated by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type UpdateDbUsageModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface DeleteDbUsageModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `DbUsageModule` that was deleted by this mutation. */ - dbUsageModule?: DbUsageModule | null; - dbUsageModuleEdge?: DbUsageModuleEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteDbUsageModulePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - dbUsageModule?: { - select: DbUsageModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - dbUsageModuleEdge?: { - select: DbUsageModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateNotificationsModulePayload { +export interface CreateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was created by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type CreateNotificationsModulePayloadSelect = { +export type CreateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface UpdateNotificationsModulePayload { +export interface UpdateBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was updated by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type UpdateNotificationsModulePayloadSelect = { +export type UpdateBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface DeleteNotificationsModulePayload { +export interface DeleteBillingProviderModulePayload { clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; + /** The `BillingProviderModule` that was deleted by this mutation. */ + billingProviderModule?: BillingProviderModule | null; + billingProviderModuleEdge?: BillingProviderModuleEdge | null; } -export type DeleteNotificationsModulePayloadSelect = { +export type DeleteBillingProviderModulePayloadSelect = { clientMutationId?: boolean; - notificationsModule?: { - select: NotificationsModuleSelect; + billingProviderModule?: { + select: BillingProviderModuleSelect; }; - notificationsModuleEdge?: { - select: NotificationsModuleEdgeSelect; + billingProviderModuleEdge?: { + select: BillingProviderModuleEdgeSelect; }; }; -export interface CreatePlansModulePayload { +export interface CreateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was created by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was created by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type CreatePlansModulePayloadSelect = { +export type CreateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface UpdatePlansModulePayload { +export interface UpdateDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was updated by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was updated by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type UpdatePlansModulePayloadSelect = { +export type UpdateDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; -export interface DeletePlansModulePayload { +export interface DeleteDbUsageModulePayload { clientMutationId?: string | null; - /** The `PlansModule` that was deleted by this mutation. */ - plansModule?: PlansModule | null; - plansModuleEdge?: PlansModuleEdge | null; + /** The `DbUsageModule` that was deleted by this mutation. */ + dbUsageModule?: DbUsageModule | null; + dbUsageModuleEdge?: DbUsageModuleEdge | null; } -export type DeletePlansModulePayloadSelect = { +export type DeleteDbUsageModulePayloadSelect = { clientMutationId?: boolean; - plansModule?: { - select: PlansModuleSelect; + dbUsageModule?: { + select: DbUsageModuleSelect; }; - plansModuleEdge?: { - select: PlansModuleEdgeSelect; + dbUsageModuleEdge?: { + select: DbUsageModuleEdgeSelect; }; }; export interface CreateHierarchyModulePayload { @@ -12515,94 +14644,94 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -export interface CreateBillingModulePayload { +export interface CreatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was created by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type CreateBillingModulePayloadSelect = { +export type CreatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface UpdateBillingModulePayload { +export interface UpdatePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was updated by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type UpdateBillingModulePayloadSelect = { +export type UpdatePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface DeleteBillingModulePayload { +export interface DeletePermissionsModulePayload { clientMutationId?: string | null; - /** The `BillingModule` that was deleted by this mutation. */ - billingModule?: BillingModule | null; - billingModuleEdge?: BillingModuleEdge | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; } -export type DeleteBillingModulePayloadSelect = { +export type DeletePermissionsModulePayloadSelect = { clientMutationId?: boolean; - billingModule?: { - select: BillingModuleSelect; + permissionsModule?: { + select: PermissionsModuleSelect; }; - billingModuleEdge?: { - select: BillingModuleEdgeSelect; + permissionsModuleEdge?: { + select: PermissionsModuleEdgeSelect; }; }; -export interface CreateBillingProviderModulePayload { +export interface CreateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was created by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type CreateBillingProviderModulePayloadSelect = { +export type CreateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface UpdateBillingProviderModulePayload { +export interface UpdateNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was updated by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type UpdateBillingProviderModulePayloadSelect = { +export type UpdateNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; -export interface DeleteBillingProviderModulePayload { +export interface DeleteNotificationsModulePayload { clientMutationId?: string | null; - /** The `BillingProviderModule` that was deleted by this mutation. */ - billingProviderModule?: BillingProviderModule | null; - billingProviderModuleEdge?: BillingProviderModuleEdge | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; } -export type DeleteBillingProviderModulePayloadSelect = { +export type DeleteNotificationsModulePayloadSelect = { clientMutationId?: boolean; - billingProviderModule?: { - select: BillingProviderModuleSelect; + notificationsModule?: { + select: NotificationsModuleSelect; }; - billingProviderModuleEdge?: { - select: BillingProviderModuleEdgeSelect; + notificationsModuleEdge?: { + select: NotificationsModuleEdgeSelect; }; }; export interface CreateProfilesModulePayload { @@ -12650,49 +14779,49 @@ export type DeleteProfilesModulePayloadSelect = { select: ProfilesModuleEdgeSelect; }; }; -export interface CreatePermissionsModulePayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreatePermissionsModulePayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdatePermissionsModulePayload { +export interface UpdateBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdatePermissionsModulePayloadSelect = { +export type UpdateBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeletePermissionsModulePayload { +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type DeletePermissionsModulePayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - permissionsModule?: { - select: PermissionsModuleSelect; + billingModule?: { + select: BillingModuleSelect; }; - permissionsModuleEdge?: { - select: PermissionsModuleEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; export interface CreateRelationProvisionPayload { @@ -12740,51 +14869,6 @@ export type DeleteRelationProvisionPayloadSelect = { select: RelationProvisionEdgeSelect; }; }; -export interface CreateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was created by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type CreateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface UpdateFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was updated by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type UpdateFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; -export interface DeleteFunctionModulePayload { - clientMutationId?: string | null; - /** The `FunctionModule` that was deleted by this mutation. */ - functionModule?: FunctionModule | null; - functionModuleEdge?: FunctionModuleEdge | null; -} -export type DeleteFunctionModulePayloadSelect = { - clientMutationId?: boolean; - functionModule?: { - select: FunctionModuleSelect; - }; - functionModuleEdge?: { - select: FunctionModuleEdgeSelect; - }; -}; export interface CreateUserAuthModulePayload { clientMutationId?: string | null; /** The `UserAuthModule` that was created by this mutation. */ @@ -12965,6 +15049,51 @@ export type DeleteMembershipsModulePayloadSelect = { select: MembershipsModuleEdgeSelect; }; }; +export interface CreateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was created by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type CreateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface UpdateEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was updated by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type UpdateEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; +export interface DeleteEntityTypeProvisionPayload { + clientMutationId?: string | null; + /** The `EntityTypeProvision` that was deleted by this mutation. */ + entityTypeProvision?: EntityTypeProvision | null; + entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; +} +export type DeleteEntityTypeProvisionPayloadSelect = { + clientMutationId?: boolean; + entityTypeProvision?: { + select: EntityTypeProvisionSelect; + }; + entityTypeProvisionEdge?: { + select: EntityTypeProvisionEdgeSelect; + }; +}; export interface CreateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was created by this mutation. */ @@ -13046,58 +15175,13 @@ export interface DeleteEventsModulePayload { eventsModule?: EventsModule | null; eventsModuleEdge?: EventsModuleEdge | null; } -export type DeleteEventsModulePayloadSelect = { - clientMutationId?: boolean; - eventsModule?: { - select: EventsModuleSelect; - }; - eventsModuleEdge?: { - select: EventsModuleEdgeSelect; - }; -}; -export interface CreateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was created by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type CreateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface UpdateEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was updated by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type UpdateEntityTypeProvisionPayloadSelect = { - clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; - }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; - }; -}; -export interface DeleteEntityTypeProvisionPayload { - clientMutationId?: string | null; - /** The `EntityTypeProvision` that was deleted by this mutation. */ - entityTypeProvision?: EntityTypeProvision | null; - entityTypeProvisionEdge?: EntityTypeProvisionEdge | null; -} -export type DeleteEntityTypeProvisionPayloadSelect = { +export type DeleteEventsModulePayloadSelect = { clientMutationId?: boolean; - entityTypeProvision?: { - select: EntityTypeProvisionSelect; + eventsModule?: { + select: EventsModuleSelect; }; - entityTypeProvisionEdge?: { - select: EntityTypeProvisionEdgeSelect; + eventsModuleEdge?: { + select: EventsModuleEdgeSelect; }; }; export interface ProvisionTableRecord { @@ -13324,18 +15408,6 @@ export type CryptoAddressesModuleEdgeSelect = { select: CryptoAddressesModuleSelect; }; }; -/** A `IdentityProvidersModule` edge in the connection. */ -export interface IdentityProvidersModuleEdge { - cursor?: string | null; - /** The `IdentityProvidersModule` at the end of the edge. */ - node?: IdentityProvidersModule | null; -} -export type IdentityProvidersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: IdentityProvidersModuleSelect; - }; -}; /** A `DenormalizedTableField` edge in the connection. */ export interface DenormalizedTableFieldEdge { cursor?: string | null; @@ -13348,6 +15420,18 @@ export type DenormalizedTableFieldEdgeSelect = { select: DenormalizedTableFieldSelect; }; }; +/** A `IdentityProvidersModule` edge in the connection. */ +export interface IdentityProvidersModuleEdge { + cursor?: string | null; + /** The `IdentityProvidersModule` at the end of the edge. */ + node?: IdentityProvidersModule | null; +} +export type IdentityProvidersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: IdentityProvidersModuleSelect; + }; +}; /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -13408,18 +15492,6 @@ export type CryptoAuthModuleEdgeSelect = { select: CryptoAuthModuleSelect; }; }; -/** A `RateLimitMetersModule` edge in the connection. */ -export interface RateLimitMetersModuleEdge { - cursor?: string | null; - /** The `RateLimitMetersModule` at the end of the edge. */ - node?: RateLimitMetersModule | null; -} -export type RateLimitMetersModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: RateLimitMetersModuleSelect; - }; -}; /** A `SessionsModule` edge in the connection. */ export interface SessionsModuleEdge { cursor?: string | null; @@ -13432,16 +15504,16 @@ export type SessionsModuleEdgeSelect = { select: SessionsModuleSelect; }; }; -/** A `ConfigSecretsModule` edge in the connection. */ -export interface ConfigSecretsModuleEdge { +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { cursor?: string | null; - /** The `ConfigSecretsModule` at the end of the edge. */ - node?: ConfigSecretsModule | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; } -export type ConfigSecretsModuleEdgeSelect = { +export type SecureTableProvisionEdgeSelect = { cursor?: boolean; node?: { - select: ConfigSecretsModuleSelect; + select: SecureTableProvisionSelect; }; }; /** A `MerkleStoreModule` edge in the connection. */ @@ -13468,30 +15540,6 @@ export type GraphModuleEdgeSelect = { select: GraphModuleSelect; }; }; -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} -export type SecureTableProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: SecureTableProvisionSelect; - }; -}; -/** A `InvitesModule` edge in the connection. */ -export interface InvitesModuleEdge { - cursor?: string | null; - /** The `InvitesModule` at the end of the edge. */ - node?: InvitesModule | null; -} -export type InvitesModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: InvitesModuleSelect; - }; -}; /** A `DatabaseProvisionModule` edge in the connection. */ export interface DatabaseProvisionModuleEdge { cursor?: string | null; @@ -13504,16 +15552,28 @@ export type DatabaseProvisionModuleEdgeSelect = { select: DatabaseProvisionModuleSelect; }; }; -/** A `NamespaceModule` edge in the connection. */ -export interface NamespaceModuleEdge { +/** A `ConfigSecretsModule` edge in the connection. */ +export interface ConfigSecretsModuleEdge { cursor?: string | null; - /** The `NamespaceModule` at the end of the edge. */ - node?: NamespaceModule | null; + /** The `ConfigSecretsModule` at the end of the edge. */ + node?: ConfigSecretsModule | null; } -export type NamespaceModuleEdgeSelect = { +export type ConfigSecretsModuleEdgeSelect = { cursor?: boolean; node?: { - select: NamespaceModuleSelect; + select: ConfigSecretsModuleSelect; + }; +}; +/** A `RateLimitMetersModule` edge in the connection. */ +export interface RateLimitMetersModuleEdge { + cursor?: string | null; + /** The `RateLimitMetersModule` at the end of the edge. */ + node?: RateLimitMetersModule | null; +} +export type RateLimitMetersModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: RateLimitMetersModuleSelect; }; }; /** A `RealtimeModule` edge in the connection. */ @@ -13540,6 +15600,54 @@ export type WebauthnAuthModuleEdgeSelect = { select: WebauthnAuthModuleSelect; }; }; +/** A `FunctionInvocationModule` edge in the connection. */ +export interface FunctionInvocationModuleEdge { + cursor?: string | null; + /** The `FunctionInvocationModule` at the end of the edge. */ + node?: FunctionInvocationModule | null; +} +export type FunctionInvocationModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionInvocationModuleSelect; + }; +}; +/** A `FunctionModule` edge in the connection. */ +export interface FunctionModuleEdge { + cursor?: string | null; + /** The `FunctionModule` at the end of the edge. */ + node?: FunctionModule | null; +} +export type FunctionModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: FunctionModuleSelect; + }; +}; +/** A `InvitesModule` edge in the connection. */ +export interface InvitesModuleEdge { + cursor?: string | null; + /** The `InvitesModule` at the end of the edge. */ + node?: InvitesModule | null; +} +export type InvitesModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: InvitesModuleSelect; + }; +}; +/** A `NamespaceModule` edge in the connection. */ +export interface NamespaceModuleEdge { + cursor?: string | null; + /** The `NamespaceModule` at the end of the edge. */ + node?: NamespaceModule | null; +} +export type NamespaceModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: NamespaceModuleSelect; + }; +}; /** A `ComputeLogModule` edge in the connection. */ export interface ComputeLogModuleEdge { cursor?: string | null; @@ -13588,40 +15696,40 @@ export type TransferLogModuleEdgeSelect = { select: TransferLogModuleSelect; }; }; -/** A `DbUsageModule` edge in the connection. */ -export interface DbUsageModuleEdge { +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { cursor?: string | null; - /** The `DbUsageModule` at the end of the edge. */ - node?: DbUsageModule | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; } -export type DbUsageModuleEdgeSelect = { +export type PlansModuleEdgeSelect = { cursor?: boolean; node?: { - select: DbUsageModuleSelect; + select: PlansModuleSelect; }; }; -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { +/** A `BillingProviderModule` edge in the connection. */ +export interface BillingProviderModuleEdge { cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; + /** The `BillingProviderModule` at the end of the edge. */ + node?: BillingProviderModule | null; } -export type NotificationsModuleEdgeSelect = { +export type BillingProviderModuleEdgeSelect = { cursor?: boolean; node?: { - select: NotificationsModuleSelect; + select: BillingProviderModuleSelect; }; }; -/** A `PlansModule` edge in the connection. */ -export interface PlansModuleEdge { +/** A `DbUsageModule` edge in the connection. */ +export interface DbUsageModuleEdge { cursor?: string | null; - /** The `PlansModule` at the end of the edge. */ - node?: PlansModule | null; + /** The `DbUsageModule` at the end of the edge. */ + node?: DbUsageModule | null; } -export type PlansModuleEdgeSelect = { +export type DbUsageModuleEdgeSelect = { cursor?: boolean; node?: { - select: PlansModuleSelect; + select: DbUsageModuleSelect; }; }; /** A `HierarchyModule` edge in the connection. */ @@ -13636,28 +15744,28 @@ export type HierarchyModuleEdgeSelect = { select: HierarchyModuleSelect; }; }; -/** A `BillingModule` edge in the connection. */ -export interface BillingModuleEdge { +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { cursor?: string | null; - /** The `BillingModule` at the end of the edge. */ - node?: BillingModule | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; } -export type BillingModuleEdgeSelect = { +export type PermissionsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingModuleSelect; + select: PermissionsModuleSelect; }; }; -/** A `BillingProviderModule` edge in the connection. */ -export interface BillingProviderModuleEdge { +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { cursor?: string | null; - /** The `BillingProviderModule` at the end of the edge. */ - node?: BillingProviderModule | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; } -export type BillingProviderModuleEdgeSelect = { +export type NotificationsModuleEdgeSelect = { cursor?: boolean; node?: { - select: BillingProviderModuleSelect; + select: NotificationsModuleSelect; }; }; /** A `ProfilesModule` edge in the connection. */ @@ -13672,16 +15780,16 @@ export type ProfilesModuleEdgeSelect = { select: ProfilesModuleSelect; }; }; -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type PermissionsModuleEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: PermissionsModuleSelect; + select: BillingModuleSelect; }; }; /** A `RelationProvision` edge in the connection. */ @@ -13696,18 +15804,6 @@ export type RelationProvisionEdgeSelect = { select: RelationProvisionSelect; }; }; -/** A `FunctionModule` edge in the connection. */ -export interface FunctionModuleEdge { - cursor?: string | null; - /** The `FunctionModule` at the end of the edge. */ - node?: FunctionModule | null; -} -export type FunctionModuleEdgeSelect = { - cursor?: boolean; - node?: { - select: FunctionModuleSelect; - }; -}; /** A `UserAuthModule` edge in the connection. */ export interface UserAuthModuleEdge { cursor?: string | null; @@ -13756,6 +15852,18 @@ export type MembershipsModuleEdgeSelect = { select: MembershipsModuleSelect; }; }; +/** A `EntityTypeProvision` edge in the connection. */ +export interface EntityTypeProvisionEdge { + cursor?: string | null; + /** The `EntityTypeProvision` at the end of the edge. */ + node?: EntityTypeProvision | null; +} +export type EntityTypeProvisionEdgeSelect = { + cursor?: boolean; + node?: { + select: EntityTypeProvisionSelect; + }; +}; /** A `StorageModule` edge in the connection. */ export interface StorageModuleEdge { cursor?: string | null; @@ -13780,15 +15888,3 @@ export type EventsModuleEdgeSelect = { select: EventsModuleSelect; }; }; -/** A `EntityTypeProvision` edge in the connection. */ -export interface EntityTypeProvisionEdge { - cursor?: string | null; - /** The `EntityTypeProvision` at the end of the edge. */ - node?: EntityTypeProvision | null; -} -export type EntityTypeProvisionEdgeSelect = { - cursor?: boolean; - node?: { - select: EntityTypeProvisionSelect; - }; -}; diff --git a/sdk/constructive-sdk/src/modules/orm/models/functionInvocationModule.ts b/sdk/constructive-sdk/src/modules/orm/models/functionInvocationModule.ts new file mode 100644 index 0000000000..f8b9e92fc1 --- /dev/null +++ b/sdk/constructive-sdk/src/modules/orm/models/functionInvocationModule.ts @@ -0,0 +1,246 @@ +/** + * FunctionInvocationModule 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 { + FunctionInvocationModule, + FunctionInvocationModuleWithRelations, + FunctionInvocationModuleSelect, + FunctionInvocationModuleFilter, + FunctionInvocationModuleOrderBy, + CreateFunctionInvocationModuleInput, + UpdateFunctionInvocationModuleInput, + FunctionInvocationModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class FunctionInvocationModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModules: ConnectionResult< + InferSelectResult + >; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + 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, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindFirstDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + functionInvocationModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'FunctionInvocationModule', + 'functionInvocationModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'FunctionInvocationModuleFilter', + 'FunctionInvocationModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'FunctionInvocationModule', + fieldName: 'functionInvocationModule', + document, + variables, + transform: (data: { + functionInvocationModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + functionInvocationModule: data.functionInvocationModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'FunctionInvocationModule', + 'createFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.data, + 'CreateFunctionInvocationModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'createFunctionInvocationModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + FunctionInvocationModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'FunctionInvocationModule', + 'updateFunctionInvocationModule', + 'functionInvocationModule', + args.select, + args.where.id, + args.data, + 'UpdateFunctionInvocationModuleInput', + 'id', + 'functionInvocationModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'updateFunctionInvocationModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteFunctionInvocationModule: { + functionInvocationModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'FunctionInvocationModule', + 'deleteFunctionInvocationModule', + 'functionInvocationModule', + { + id: args.where.id, + }, + 'DeleteFunctionInvocationModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'FunctionInvocationModule', + fieldName: 'deleteFunctionInvocationModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/modules/orm/models/index.ts b/sdk/constructive-sdk/src/modules/orm/models/index.ts index 7afef56c9e..f478d2642f 100644 --- a/sdk/constructive-sdk/src/modules/orm/models/index.ts +++ b/sdk/constructive-sdk/src/modules/orm/models/index.ts @@ -20,42 +20,43 @@ export { RateLimitsModuleModel } from './rateLimitsModule'; export { UsersModuleModel } from './usersModule'; export { WebauthnCredentialsModuleModel } from './webauthnCredentialsModule'; export { CryptoAddressesModuleModel } from './cryptoAddressesModule'; -export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { DenormalizedTableFieldModel } from './denormalizedTableField'; +export { IdentityProvidersModuleModel } from './identityProvidersModule'; export { RlsModuleModel } from './rlsModule'; export { BlueprintModel } from './blueprint'; export { BlueprintTemplateModel } from './blueprintTemplate'; export { BlueprintConstructionModel } from './blueprintConstruction'; export { CryptoAuthModuleModel } from './cryptoAuthModule'; -export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { SessionsModuleModel } from './sessionsModule'; -export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { SecureTableProvisionModel } from './secureTableProvision'; export { MerkleStoreModuleModel } from './merkleStoreModule'; export { GraphModuleModel } from './graphModule'; -export { SecureTableProvisionModel } from './secureTableProvision'; -export { InvitesModuleModel } from './invitesModule'; export { DatabaseProvisionModuleModel } from './databaseProvisionModule'; -export { NamespaceModuleModel } from './namespaceModule'; +export { ConfigSecretsModuleModel } from './configSecretsModule'; +export { RateLimitMetersModuleModel } from './rateLimitMetersModule'; export { RealtimeModuleModel } from './realtimeModule'; export { WebauthnAuthModuleModel } from './webauthnAuthModule'; +export { FunctionInvocationModuleModel } from './functionInvocationModule'; +export { FunctionModuleModel } from './functionModule'; +export { InvitesModuleModel } from './invitesModule'; +export { NamespaceModuleModel } from './namespaceModule'; export { ComputeLogModuleModel } from './computeLogModule'; export { InferenceLogModuleModel } from './inferenceLogModule'; export { StorageLogModuleModel } from './storageLogModule'; export { TransferLogModuleModel } from './transferLogModule'; -export { DbUsageModuleModel } from './dbUsageModule'; -export { NotificationsModuleModel } from './notificationsModule'; export { PlansModuleModel } from './plansModule'; -export { HierarchyModuleModel } from './hierarchyModule'; -export { BillingModuleModel } from './billingModule'; export { BillingProviderModuleModel } from './billingProviderModule'; -export { ProfilesModuleModel } from './profilesModule'; +export { DbUsageModuleModel } from './dbUsageModule'; +export { HierarchyModuleModel } from './hierarchyModule'; export { PermissionsModuleModel } from './permissionsModule'; +export { NotificationsModuleModel } from './notificationsModule'; +export { ProfilesModuleModel } from './profilesModule'; +export { BillingModuleModel } from './billingModule'; export { RelationProvisionModel } from './relationProvision'; -export { FunctionModuleModel } from './functionModule'; export { UserAuthModuleModel } from './userAuthModule'; export { AgentModuleModel } from './agentModule'; export { LimitsModuleModel } from './limitsModule'; export { MembershipsModuleModel } from './membershipsModule'; +export { EntityTypeProvisionModel } from './entityTypeProvision'; export { StorageModuleModel } from './storageModule'; export { EventsModuleModel } from './eventsModule'; -export { EntityTypeProvisionModel } from './entityTypeProvision'; diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index c68287aede..5b07f40d3b 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -680,6 +680,68 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** An input for mutations affecting `Ref` */ +export interface RefInput { + /** Unique ref identifier */ + id?: string; + /** Ref name (e.g. HEAD, main) */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this ref belongs to */ + storeId: string; + /** Commit this ref points to */ + commitId?: string; +} +/** An input for mutations affecting `Store` */ +export interface StoreInput { + /** Unique store identifier */ + id?: string; + /** Human-readable store name */ + name: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Current root object hash of this store */ + hash?: string; + /** Timestamp of store creation */ + createdAt?: string; +} +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + /** Content-addressed UUID v5 — deterministic hash of (data, kids, ktree) */ + id: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Ordered array of child object IDs */ + kids?: string[]; + /** Ordered array of child path names (parallel to kids) */ + ktree?: string[]; + /** Payload data for this object node */ + data?: Record; + /** Timestamp of object creation */ + createdAt?: string; +} +/** An input for mutations affecting `Commit` */ +export interface CommitInput { + /** Unique commit identifier */ + id?: string; + /** Optional commit message */ + message?: string; + /** Database scope for multi-tenant isolation */ + databaseId: string; + /** Store this commit belongs to */ + storeId: string; + /** Parent commit IDs (supports merge commits) */ + parentIds?: string[]; + /** User who authored the changes */ + authorId?: string; + /** User who committed (may differ from author) */ + committerId?: string; + /** Root object ID of the tree snapshot at this commit */ + treeId?: string; + /** Commit timestamp */ + date?: string; +} // ============ Payload/Return Types (for custom operations) ============ export interface InitEmptyRepoPayload { clientMutationId?: string | null; diff --git a/sdk/constructive-sdk/src/usage/orm/input-types.ts b/sdk/constructive-sdk/src/usage/orm/input-types.ts index 8c8382f866..095012a4be 100644 --- a/sdk/constructive-sdk/src/usage/orm/input-types.ts +++ b/sdk/constructive-sdk/src/usage/orm/input-types.ts @@ -2194,6 +2194,320 @@ export interface IntervalFilter { /** Greater than or equal to the specified value. */ greaterThanOrEqualTo?: IntervalInput; } +/** An input for mutations affecting `AppLimitCapsDefault` */ +export interface AppLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCapsDefault` */ +export interface OrgLimitCapsDefaultInput { + id?: string; + /** Name identifier of the cap (e.g. max_file_upload_size, advanced_analytics) */ + name: string; + /** Default cap value. For feature flags: 0=disabled, 1=enabled. For size caps: the limit in bytes/units. */ + max?: string; +} +/** An input for mutations affecting `AppLimitCap` */ +export interface AppLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** An input for mutations affecting `OrgLimitCap` */ +export interface OrgLimitCapInput { + id?: string; + /** Name identifier of the cap being overridden */ + name: string; + /** Entity this cap override applies to */ + entityId: string; + /** Override cap value for this entity */ + max?: string; +} +/** 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; +} +/** An input for mutations affecting `AppLimitCredit` */ +export interface AppLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitCreditCodeItem` */ +export interface AppLimitCreditCodeItemInput { + id?: string; + /** FK to credit_codes — which code this item belongs to */ + creditCodeId: string; + /** FK to default_limits — which limit this item grants credits for */ + defaultLimitId: string; + /** Number of credits this item grants per redemption */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; +} +/** An input for mutations affecting `AppLimitCreditRedemption` */ +export interface AppLimitCreditRedemptionInput { + id?: string; + /** FK to credit_codes — which code is being redeemed */ + creditCodeId: string; + /** Entity receiving the credits (personal org user_id or org entity_id) */ + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; +} +/** 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; +} +/** An input for mutations affecting `OrgLimitCredit` */ +export interface OrgLimitCreditInput { + id?: string; + /** FK to default_limits — which limit definition this credit applies to */ + defaultLimitId: string; + /** User this credit is for; NULL for aggregate entity-level credits */ + actorId?: string; + /** Entity this credit applies to; NULL for actor-only credits */ + entityId?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Membership prefix identifying the entity kind (org, team, app) */ + entityType?: string; + /** Number of credits to grant (positive to add, negative to revoke) */ + amount: string; + /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */ + creditType?: string; + /** Optional reason for the credit grant (promo code, admin grant, etc.) */ + reason?: string; +} +/** An input for mutations affecting `AppLimitWarning` */ +export interface AppLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; +} +/** An input for mutations affecting `OrgLimitWarning` */ +export interface OrgLimitWarningInput { + id?: string; + /** Limit name this warning applies to (must match a default_limits entry) */ + name: string; + /** Threshold type: absolute (fixed count) or percentage (of max) */ + warningType: string; + /** Threshold value — either an absolute count or a percentage (1-100) depending on warning_type */ + thresholdValue: string; + /** Job task name to enqueue when warning fires (e.g. email:limit_warning, notification:approaching_limit) */ + taskIdentifier: string; + /** Per-entity override (NULL = scope default for all entities) */ + entityId?: string; +} +/** An input for mutations affecting `AppLimitCreditCode` */ +export interface AppLimitCreditCodeInput { + id?: string; + /** Human-readable credit code (case-insensitive, unique) */ + code: string; + /** Maximum total redemptions allowed; NULL for unlimited */ + maxRedemptions?: number; + /** Current number of redemptions (incremented by trigger on credit_redemptions) */ + currentRedemptions?: number; + /** Expiration timestamp; NULL for no expiry */ + expiresAt?: string; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + createdAt?: string; + /** Unique identifier for each limit event */ + id?: string; + /** 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; + /** Resolved billable organization via get_organization_id; NULL for app-level events */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: 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; +} +/** 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?: 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + /** Capacity reserved by child entities in budgeted allocation mode. Available = max - num - reserved. */ + reserved?: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} +/** 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; + /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */ + planMax?: string; + /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */ + purchasedCredits?: string; + /** Temporary credits for the current billing window. Resets to 0 on window expiry. */ + periodCredits?: string; + entityId: string; + /** Resolved billable organization via get_organization_id */ + organizationId?: string; + /** Entity type prefix (org, team, app, etc.) for interpreting entity_id */ + entityType?: string; +} /** A filter to be used against `AppLimitCredit` object types. All fields are combined with a logical ‘and.’ */ export interface AppLimitCreditFilter { /** Filter by the object’s `id` field. */ @@ -2290,25 +2604,6 @@ export interface AppLimitCreditRedemptionFilter { /** Filter by the object’s `creditCode` relation. */ creditCode?: AppLimitCreditCodeFilter; } -/** 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 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). */ diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index bea5c265b7..745ff03df3 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -284,6 +284,7 @@ type SqlAction { revert: String verify: String createdAt: Datetime + category: String action: String actionId: UUID actorId: UUID @@ -343,6 +344,9 @@ input SqlActionFilter { """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter + """Filter by the object’s `category` field.""" + category: StringFilter + """Filter by the object’s `action` field.""" action: StringFilter @@ -666,6 +670,8 @@ enum SqlActionOrderBy { VERIFY_DESC CREATED_AT_ASC CREATED_AT_DESC + CATEGORY_ASC + CATEGORY_DESC ACTION_ASC ACTION_DESC ACTION_ID_ASC @@ -1042,6 +1048,7 @@ input SqlActionInput { revert: String verify: String createdAt: Datetime + category: String action: String actionId: UUID actorId: UUID @@ -1152,6 +1159,7 @@ input SqlActionPatch { revert: String verify: String createdAt: Datetime + category: String action: String actionId: UUID actorId: UUID diff --git a/sdk/migrate-client/src/migrate/orm/README.md b/sdk/migrate-client/src/migrate/orm/README.md index c10c839e81..80d58ea9f3 100644 --- a/sdk/migrate-client/src/migrate/orm/README.md +++ b/sdk/migrate-client/src/migrate/orm/README.md @@ -75,6 +75,7 @@ CRUD operations for SqlAction records. | `revert` | String | Yes | | `verify` | String | Yes | | `createdAt` | Datetime | No | +| `category` | String | Yes | | `action` | String | Yes | | `actionId` | UUID | Yes | | `actorId` | UUID | Yes | @@ -83,13 +84,13 @@ CRUD operations for SqlAction records. ```typescript // List all sqlAction records -const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const items = await db.sqlAction.findMany({ select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, category: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.sqlAction.findOne({ id: '', select: { id: true, name: true, databaseId: true, deploy: true, deps: true, payload: true, content: true, revert: true, verify: true, createdAt: true, category: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.sqlAction.create({ data: { name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', category: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update const updated = await db.sqlAction.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); diff --git a/sdk/migrate-client/src/migrate/orm/input-types.ts b/sdk/migrate-client/src/migrate/orm/input-types.ts index 2f1a803225..6983ca4b0a 100644 --- a/sdk/migrate-client/src/migrate/orm/input-types.ts +++ b/sdk/migrate-client/src/migrate/orm/input-types.ts @@ -249,6 +249,7 @@ export interface SqlAction { revert?: string | null; verify?: string | null; createdAt?: string | null; + category?: string | null; action?: string | null; actionId?: string | null; actorId?: string | null; @@ -288,6 +289,7 @@ export type SqlActionSelect = { revert?: boolean; verify?: boolean; createdAt?: boolean; + category?: boolean; action?: boolean; actionId?: boolean; actorId?: boolean; @@ -326,6 +328,8 @@ export interface SqlActionFilter { verify?: StringFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; /** Filter by the object’s `action` field. */ action?: StringFilter; /** Filter by the object’s `actionId` field. */ @@ -374,6 +378,8 @@ export type SqlActionOrderBy = | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' | 'ACTION_ASC' | 'ACTION_DESC' | 'ACTION_ID_ASC' @@ -413,6 +419,7 @@ export interface CreateSqlActionInput { content?: string; revert?: string; verify?: string; + category?: string; action?: string; actionId?: string; actorId?: string; @@ -427,6 +434,7 @@ export interface SqlActionPatch { content?: string | null; revert?: string | null; verify?: string | null; + category?: string | null; action?: string | null; actionId?: string | null; actorId?: string | null; @@ -497,6 +505,29 @@ export interface ConstructiveInternalTypeUploadFilter { /** Contained by the specified JSON. */ containedBy?: ConstructiveInternalTypeUpload; } +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; +} +/** An input for mutations affecting `SqlAction` */ +export interface SqlActionInput { + id?: number; + name?: string; + databaseId?: string; + deploy?: string; + deps?: string[]; + payload?: Record; + content?: string; + revert?: string; + verify?: string; + createdAt?: string; + category?: string; + action?: string; + actionId?: string; + actorId?: string; +} // ============ Payload/Return Types (for custom operations) ============ export interface ExecuteSqlPayload { clientMutationId?: string | null;